public function addAssets(array $assets)
    {
        foreach ($assets as $asset) {
            if (!is_array($asset)) {
                throw new \InvalidArgumentException('Each element needs to be an array.');
            }
            $this->addAsset($asset);
        }
    }
public function addAssets(array $assets)
    {
        foreach ($assets as $asset) {
            if (!is_array($asset)) {
                throw new \InvalidArgumentException('Each element needs to be an array.');
            }
            $this->addAsset($asset);
        }
    }
public function addAssets ( array $ assets ) { foreach ( $ assets as $ asset ) { if ( ! is_array ( $ asset ) ) { throw new \ InvalidArgumentException ( 'Each element needs to be an array.' ) ; } $ this -> addAsset ( $ asset ) ; } }
Adds a list of assets to be processed by the asset writer.

@param array assets the asset list
Adds a list of assets to be processed by the asset writer .