public function setItems($items)
    {
        $this->items = array();

        foreach ($items as $item) {
            $this->addItem($item);
        }

        return $this;
    }
public function setItems($items)
    {
        $this->items = array();

        foreach ($items as $item) {
            $this->addItem($item);
        }

        return $this;
    }
public function setItems ( $ items ) { $ this -> items = array ( ) ; foreach ( $ items as $ item ) { $ this -> addItem ( $ item ) ; } return $ this ; }
Sets items.

@param FeedItem[] $items

@return Feed
Sets items .