/** * Adds the new node to the repository * @param NodeInterface $node */ public function add(NodeInterface $node) { $max = $this->getMax(); $node->setLeftValue($max + 1); $node->setRightValue($max + 2); $node->setLevel(0); }
/** * Adds the new node to the repository * @param NodeInterface $node */ public function add(NodeInterface $node) { $max = $this->getMax(); $node->setLeftValue($max + 1); $node->setRightValue($max + 2); $node->setLevel(0); }