public function getPath() {
    $path = '';
    /** @var TokenNode $child */
    $child = $this->head;
    while ($child) {
      $type = $child->getType();
      if ($type === T_NAMESPACE || $type === T_NS_SEPARATOR || $type === T_STRING) {
        $path .= $child->getText();
      }
      $child = $child->next;
    }
    return $path;
  }
public function getPath() {
    $path = '';
    /** @var TokenNode $child */
    $child = $this->head;
    while ($child) {
      $type = $child->getType();
      if ($type === T_NAMESPACE || $type === T_NS_SEPARATOR || $type === T_STRING) {
        $path .= $child->getText();
      }
      $child = $child->next;
    }
    return $path;
  }
public function getPath ( ) { $ path = '' ; /** @var TokenNode $child */ $ child = $ this -> head ; while ( $ child ) { $ type = $ child -> getType ( ) ; if ( $ type === T_NAMESPACE || $ type === T_NS_SEPARATOR || $ type === T_STRING ) { $ path .= $ child -> getText ( ) ; } $ child = $ child -> next ; } return $ path ; }
Get the namespace path.
@return string
Get the namespace path .