phpDocumentor\Reflection\DocBlock\Tag::setName PHP Method

setName() public method

Sets the name of this tag.
public setName ( string $name )
$name string The new name of this tag.
    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;
    }