public function addMapping(ImsManifestMapping $mapping)
    {
        $mappings = $this->getMappings();

        $ns = $mapping->getNamespace();

        if (isset($mappings[$ns]) === false) {
            $mappings[$ns] = $mapping;
        }

        $this->setMappings($mappings);
    }
public function addMapping(ImsManifestMapping $mapping)
    {
        $mappings = $this->getMappings();

        $ns = $mapping->getNamespace();

        if (isset($mappings[$ns]) === false) {
            $mappings[$ns] = $mapping;
        }

        $this->setMappings($mappings);
    }
public function addMapping ( ImsManifestMapping $ mapping ) { $ mappings = $ this -> getMappings ( ) ; $ ns = $ mapping -> getNamespace ( ) ; if ( isset ( $ mappings [ $ ns ] ) === false ) { $ mappings [ $ ns ] = $ mapping ; } $ this -> setMappings ( $ mappings ) ; }
Add an XML mapping to this Manifest Extractor.

If a mapping with an already registered XML namespace is given as
a $mapping, it is simply ignored.

@param ImsManifestMapping $mapping An XML mapping.
Add an XML mapping to this Manifest Extractor .