public function setNamespaces(array $namespaces)
    {
        $this->namespaces = array();

        foreach ($namespaces as $prefix => $uri) {
            $this->addNamespace($uri, $prefix);
        }

        return $this;
    }
public function setNamespaces(array $namespaces)
    {
        $this->namespaces = array();

        foreach ($namespaces as $prefix => $uri) {
            $this->addNamespace($uri, $prefix);
        }

        return $this;
    }
public function setNamespaces ( array $ namespaces ) { $ this -> namespaces = array ( ) ; foreach ( $ namespaces as $ prefix => $ uri ) { $ this -> addNamespace ( $ uri , $ prefix ) ; } return $ this ; }
Sets namespaces.

@param array $namespaces

@return Feed
Sets namespaces .