protected function setMappings(array $mappings = array())
    {
        foreach ($mappings as $mapping) {
            if (!$mapping instanceof ImsManifestMapping) {
                $msg = "The mappings argument must be an array composed of ImsManifestMapping objects";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->mappings = $mappings;
    }
protected function setMappings(array $mappings = array())
    {
        foreach ($mappings as $mapping) {
            if (!$mapping instanceof ImsManifestMapping) {
                $msg = "The mappings argument must be an array composed of ImsManifestMapping objects";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->mappings = $mappings;
    }
protected function setMappings ( array $ mappings = array ( ) ) { foreach ( $ mappings as $ mapping ) { if ( ! $ mapping instanceof ImsManifestMapping ) { $ msg = "The mappings argument must be an array composed of ImsManifestMapping objects" ; throw new InvalidArgumentException ( $ msg ) ; } } $ this -> mappings = $ mappings ; }
Set the ImsManifestMapping objects of this injector.

@param ImsManifestMapping[] $mappings An array of ImsManifestMapping objects.
@throws InvalidArgumentException If $mappings contains objects/values different from ImsManifestMapping.
Set the ImsManifestMapping objects of this injector .