getParent() public méthode

Returns the parent node of this node or null when this node is the root of a node tree.
public getParent ( ) : PDepend\Source\AST\ASTNode
Résultat PDepend\Source\AST\ASTNode
 /**
  * Returns the parent of this node or <b>null</b> when no parent node
  * exists.
  *
  * @return \PHPMD\AbstractNode
  */
 public function getParent()
 {
     if (($node = $this->node->getParent()) === null) {
         return null;
     }
     return new ASTNode($node, $this->getFileName());
 }