You are here

public function VersionTag::setVersion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.php \phpDocumentor\Reflection\DocBlock\Tag\VersionTag::setVersion()

Sets the version section of the tag.

Parameters

string $version The new version section of the tag.: An invalid value will set an empty string.

Return value

$this

File

vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/VersionTag.php, line 98

Class

VersionTag
Reflection class for a @version tag in a Docblock.

Namespace

phpDocumentor\Reflection\DocBlock\Tag

Code

public function setVersion($version) {
  $this->version = preg_match('/^' . self::REGEX_VECTOR . '$/ux', $version) ? $version : '';
  $this->content = null;
  return $this;
}