Reflection class for a {@}since tag in a Docblock.
Cloneable
Final
Instantiable
Constants |
public
phpDocumentor\Reflection\DocBlock\Tags\Since
::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 ( ? string $version = NULL , ? phpDocumentor\Reflection\DocBlock\Description $description = NULL ) |
public
__toString
() :
string
Returns a string representation for this tag. |
public static create ( ? string $body , ? phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL , ? phpDocumentor\Reflection\Types\Context $context = NULL ) : ? self |
public
getVersion
() : ?
string
Gets the version section of the tag. |
Properties |
protected
$name
|
Properties |
private
$version
|
Methods |
public static create ( ? string $body , ? phpDocumentor\Reflection\DocBlock\DescriptionFactory $descriptionFactory = NULL , ? phpDocumentor\Reflection\Types\Context $context = NULL ) : ? self |