public function addNode(AbstractNode $node) {
        $node->parent           = $this;
        $this->index[$node->id] = count($this->nodes);
        $this->nodes[]          = $node;
        return $this;
    }
public function addNode(AbstractNode $node) {
        $node->parent           = $this;
        $this->index[$node->id] = count($this->nodes);
        $this->nodes[]          = $node;
        return $this;
    }
public function addNode ( AbstractNode $ node ) { $ node -> parent = $ this ; $ this -> index [ $ node -> id ] = count ( $ this -> nodes ) ; $ this -> nodes [ ] = $ node ; return $ this ; }
Add a children node.

@param AbstractNode $node The children node.
@return AbstractNode Returns this node.
Add a children node .