Beispiel #1
0
 /**
  * Returns the parent of this node or <b>null</b> when no parent node
  * exists.
  *
  * @return PHP_PMD_AbstractNode
  */
 public function getParent()
 {
     if (($node = $this->_node->getParent()) === null) {
         return null;
     }
     return new PHP_PMD_Node_ASTNode($node, $this->getFileName());
 }