public function setEnclosures($enclosures)
    {
        $this->enclosures = array();

        foreach ($enclosures as $enclosure) {
            $this->addEnclosure($enclosure);
        }

        return $this;
    }
public function setEnclosures($enclosures)
    {
        $this->enclosures = array();

        foreach ($enclosures as $enclosure) {
            $this->addEnclosure($enclosure);
        }

        return $this;
    }
public function setEnclosures ( $ enclosures ) { $ this -> enclosures = array ( ) ; foreach ( $ enclosures as $ enclosure ) { $ this -> addEnclosure ( $ enclosure ) ; } return $ this ; }
Sets enclosures.

@param FeedItemEnclosure[] $enclosures

@return FeedItem
Sets enclosures .