Menu

## Version extends BaseTag
in package
implements StaticMethod

Version.php : 26

Reflection class for a {@}version tag in a Docblock.

### Interfaces, Classes and Traits

StaticMethod

### Table of Contents

REGEX_VECTOR = '(?: # Normal release vectors. \d\S* | # VCS version vectors. Per PHPCS, they are expected to # follow the form of the VCS name, followed by ":", followed # by the version vector itself. # By convention, popular VCSes like CVS, SVN and GIT use "$" # around the actual version vector. [^\s\:]+\:\s*\$[^\$]+\$ )'
  PCRE regular expression matching a version vector.
$description : Description|null
$name : string
$version : string|null
__construct() : mixed
__toString() : string
  Returns a string representation for this tag.
create() : mixed
getDescription() : Description|null
getName() : string
  Gets the name of this tag.
getVersion() : string|null
  Gets the version section of the tag.
render() : string

### Constants

#### REGEX_VECTOR

Version.php : 35

PCRE regular expression matching a version vector.

`public mixed REGEX_VECTOR = '(?: # Normal release vectors. \d\S* | # VCS version vectors. Per PHPCS, they are expected to # follow the form of the VCS name, followed by ":", followed # by the version vector itself. # By convention, popular VCSes like CVS, SVN and GIT use "$" # around the actual version vector. [^\s\:]+\:\s*\$[^\$]+\$ )'`

Assumes the "x" modifier.

### Properties

#### $description

BaseTag.php : 28
`protected Description|null $description`

Description of the tag.

#### $name

Version.php : 29
`protected string $name = 'version'`

#### $version

Version.php : 48
`private string|null $version`

The version vector.

### Methods

#### __construct()

Version.php : 50
`public __construct([string|null $version = null ][, Description|null $description = null ]) : mixed`

##### Parameters

$version : string|null = null
$description : Description|null = null

##### Return values

mixed —

#### __toString()

Version.php : 94

Returns a string representation for this tag.

`public __toString() : string`

##### Return values

string —

#### create()

Version.php : 58
`public static create(string|null $body[, DescriptionFactory|null $descriptionFactory = null ][, Context|null $context = null ]) : mixed`

##### Parameters

$body : string|null
$descriptionFactory : DescriptionFactory|null = null
$context : Context|null = null

##### Return values

mixed —

#### getDescription()

BaseTag.php : 40
`public getDescription() : Description|null`

##### Return values

Description|null —

#### getName()

BaseTag.php : 35

Gets the name of this tag.

`public getName() : string`

##### Return values

string —

The name of this tag.

#### getVersion()

Version.php : 86

Gets the version section of the tag.

`public getVersion() : string|null`

##### Return values

string|null —

#### render()

BaseTag.php : 45
`public render([Formatter|null $formatter = null ]) : string`

##### Parameters

$formatter : Formatter|null = null

##### Return values

string —

## Search results