public function addAuthor($author)
    {
        if (!is_array($author)) {
            $author = ['name' => $author];
        }

        $this->authors->add((object) $author);
    }
public function addAuthor($author)
    {
        if (!is_array($author)) {
            $author = ['name' => $author];
        }

        $this->authors->add((object) $author);
    }
public function addAuthor ( $ author ) { if ( ! is_array ( $ author ) ) { $ author = [ 'name' => $ author ] ; } $ this -> authors -> add ( ( object ) $ author ) ; }
Add an Author to the feed

@param mixed $author It can be an array with name, email and uri,
or just and string with the name.
Add an Author to the feed