src/Mpociot/Reflection/DocBlock/Tag/AuthorTag.php
public function setAuthorName($authorName)
    {
        $this->content = null;
        $this->authorName
            = preg_match('/^' . self::REGEX_AUTHOR_NAME . '$/u', $authorName)
            ? $authorName : '';

        return $this;
    }
public function setAuthorName($authorName)
    {
        $this->content = null;
        $this->authorName
            = preg_match('/^' . self::REGEX_AUTHOR_NAME . '$/u', $authorName)
            ? $authorName : '';

        return $this;
    }
public function setAuthorName ( $ authorName ) { $ this -> content = null ; $ this -> authorName = preg_match ( '/^' . self :: REGEX_AUTHOR_NAME . '$/u' , $ authorName ) ? $ authorName : '' ; return $ this ; }
Sets the author's name.

@param string $authorName The new author name.
An invalid value will set an empty string.

@return $this
Sets the author s name .