public function setFeed(Feed $feed)
    {
        $author = $feed->get('author');

        if (empty($author)) {
            throw new \InvalidArgumentException('Atom formatter requires an "author" parameter in configuration.');
        }

        $this->feed = $feed;

        $this->initialize();
    }
public function setFeed(Feed $feed)
    {
        $author = $feed->get('author');

        if (empty($author)) {
            throw new \InvalidArgumentException('Atom formatter requires an "author" parameter in configuration.');
        }

        $this->feed = $feed;

        $this->initialize();
    }
public function setFeed ( Feed $ feed ) { $ author = $ feed -> get ( 'author' ) ; if ( empty ( $ author ) ) { throw new \ InvalidArgumentException ( 'Atom formatter requires an "author" parameter in configuration.' ) ; } $ this -> feed = $ feed ; $ this -> initialize ( ) ; }
Sets feed instance.

@param Feed $feed
Sets feed instance .