src/Mpociot/Reflection/DocBlock/Tag/VersionTag.php
public function setVersion($version)
    {
        $this->version
            = preg_match('/^' . self::REGEX_VECTOR . '$/ux', $version)
            ? $version
            : '';

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

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

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

@return $this
Sets the version section of the tag .