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