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

getChild() public method

Returns the child at the given index.
public getChild ( integer $index ) : PDepend\Source\AST\ASTNode
$index integer
return PDepend\Source\AST\ASTNode
    public function getChild($index)
    {
        if (isset($this->nodes[$index])) {
            return $this->nodes[$index];
        }
        throw new \OutOfBoundsException(sprintf('No node found at index %d in node of type: %s', $index, get_class($this)));
    }