Exemplo n.º 1
0
 /**
  * Returns the first child of the given type or <b>null</b> when this node
  * has no child of the given type.
  *
  * @param string $type The searched child type.
  *
  * @return PHP_PMD_AbstractNode
  */
 public function getFirstChildOfType($type)
 {
     $node = $this->_node->getFirstChildOfType('PHP_Depend_Code_AST' . $type);
     if ($node === null) {
         return null;
     }
     return new PHP_PMD_Node_ASTNode($node, $this->getFileName());
 }