public function getNamespaceNames($absolute = FALSE) {
    $iterator = function(NamespaceNode $ns) use ($absolute) {
      $name = $ns->getName();
      return $absolute ? $name->getAbsolutePath() : $name->getPath();
    };
    return array_map($iterator, $this->getNamespaces()->toArray());
  }
public function getNamespaceNames($absolute = FALSE) {
    $iterator = function(NamespaceNode $ns) use ($absolute) {
      $name = $ns->getName();
      return $absolute ? $name->getAbsolutePath() : $name->getPath();
    };
    return array_map($iterator, $this->getNamespaces()->toArray());
  }
public function getNamespaceNames ( $ absolute = FALSE ) { $ iterator = function ( NamespaceNode $ ns ) use ( $ absolute ) { $ name = $ ns -> getName ( ) ; return $ absolute ? $ name -> getAbsolutePath ( ) : $ name -> getPath ( ) ; } ; return array_map ( $ iterator , $ this -> getNamespaces ( ) -> toArray ( ) ) ; }
Returns the name of every namespace in this document.

@param boolean $absolute

@return string[]
Returns the name of every namespace in this document .