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

CloneableFinalInstantiable
ExtendsphpDocumentor\Reflection\DocBlock\Tags\BaseTag
ImplementsphpDocumentor\Reflection\DocBlock\Tag
phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod
Constants
public phpDocumentor\Reflection\DocBlock\Tags\Version::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.

Assumes the "x" modifier.

Methods
public __construct( $version = NULL, ?phpDocumentor\Reflection\DocBlock\Description $description = NULL)
public __toString()
 
Returns a string representation for this tag.

  • return string
public static create( $body, ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL)
 


  • return static
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getDescription()
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::getName()
 
Gets the name of this tag.

  • return string The name of this tag.
public getVersion()
 
Gets the version section of the tag.

  • return string
public phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render(?phpDocumentor\Reflection\DocBlock\Tags\Formatter $formatter = NULL)
Properties
protected phpDocumentor\Reflection\DocBlock\Tags\BaseTag::$description
 


  • var Description|null Description of the tag.
protected $name
Properties
private $version
 


  • var string The version vector.
Methods
public static create( $body, ?phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL, ?phpDocumentor\Reflection\Types\Context $context = NULL)
 


  • return static
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only