PDepend\Source\AST\ASTAnonymousClass::prependChild PHP Method

prependChild() public method

This method adds a new child node at the first position of the children.
public prependChild ( PDepend\Source\AST\ASTNode $node ) : void
$node PDepend\Source\AST\ASTNode
return void
    public function prependChild(ASTNode $node)
    {
        array_unshift($this->nodes, $node);
        $node->setParent($this);
    }