src/Mpociot/Reflection/DocBlock/Tag.php
public function setName($name)
    {
        if (!preg_match('/^' . self::REGEX_TAGNAME . '$/u', $name)) {
            throw new \InvalidArgumentException(
                'Invalid tag name supplied: ' . $name
            );
        }

        $this->tag = $name;

        return $this;
    }
public function setName($name)
    {
        if (!preg_match('/^' . self::REGEX_TAGNAME . '$/u', $name)) {
            throw new \InvalidArgumentException(
                'Invalid tag name supplied: ' . $name
            );
        }

        $this->tag = $name;

        return $this;
    }
public function setName ( $ name ) { if ( ! preg_match ( '/^' . self :: REGEX_TAGNAME . '$/u' , $ name ) ) { throw new \ InvalidArgumentException ( 'Invalid tag name supplied: ' . $ name ) ; } $ this -> tag = $ name ; return $ this ; }
Sets the name of this tag.

@param string $name The new name of this tag.

@return $this
@throws \InvalidArgumentException When an invalid tag name is provided.
Sets the name of this tag .