public function setParent(RootNode $node) { $this->_parent = $node; }
public function addNode(RootNode $node = null) { if ($node === null) { return false; } $node->setParent($this); $this->_children[] = $node; ++$this->_childrenCount; return true; }