public function byAuthor(string $author): self
    {
        if (!strstr($author, '@')) {
            $this->author = 'nospam@example.com (' . $author . ')';
        } else {
            $this->author = $author;
        }

        return $this;
    }
public function byAuthor(string $author): self
    {
        if (!strstr($author, '@')) {
            $this->author = 'nospam@example.com (' . $author . ')';
        } else {
            $this->author = $author;
        }

        return $this;
    }
public function byAuthor ( string $ author ) : self { if ( ! strstr ( $ author , '@' ) ) { $ this -> author = 'nospam@example.com (' . $ author . ')' ; } else { $ this -> author = $ author ; } return $ this ; }
set the email address of the author of the item who created the item

@param   string  $author  author of rss feed item
@return  \stubbles\xml\rss\RssFeedItem
set the email address of the author of the item who created the item