src/Assetter/Assetter.php
public function setCollection(array $collection)
    {
        list($collection) = $this->fireEvent('collection.set', [ $collection ]);

        $this->collection = [];

        foreach($collection as $asset)
        {
            $this->appendToCollection($asset);
        }

        return $this;
    }
public function setCollection(array $collection)
    {
        list($collection) = $this->fireEvent('collection.set', [ $collection ]);

        $this->collection = [];

        foreach($collection as $asset)
        {
            $this->appendToCollection($asset);
        }

        return $this;
    }
public function setCollection ( array $ collection ) { list ( $ collection ) = $ this -> fireEvent ( 'collection.set' , [ $ collection ] ) ; $ this -> collection = [ ] ; foreach ( $ collection as $ asset ) { $ this -> appendToCollection ( $ asset ) ; } return $ this ; }
Sets collection of assets.
@param  array $collection
@return self
Sets collection of assets .