PDepend\Source\AST\ASTNode::getChild PHP Method

getChild() public method

Returns the node instance for the given index or throws an exception.
public getChild ( integer $index ) : PDepend\Source\AST\ASTNode
$index integer
return PDepend\Source\AST\ASTNode
    public function getChild($index);

Usage Example

Exemplo n.º 1
0
 /**
  * Returns a child node at the given index.
  *
  * @param integer $index The child offset.
  *
  * @return \PHPMD\Node\ASTNode
  */
 public function getChild($index)
 {
     return new ASTNode($this->node->getChild($index), $this->getFileName());
 }
All Usage Examples Of PDepend\Source\AST\ASTNode::getChild