public function insertNodeAsFirstChildOf(AbstractNestedNode $node, AbstractNestedNode $parent)
    {
        return $this->_insertNode($node, $parent, $parent->getLeftnode() + 1);
    }
public function insertNodeAsFirstChildOf(AbstractNestedNode $node, AbstractNestedNode $parent)
    {
        return $this->_insertNode($node, $parent, $parent->getLeftnode() + 1);
    }
public function insertNodeAsFirstChildOf ( AbstractNestedNode $ node , AbstractNestedNode $ parent ) { return $ this -> _insertNode ( $ node , $ parent , $ parent -> getLeftnode ( ) + 1 ) ; }
Inserts a leaf node in a tree as first child of the provided parent node.

@param  \BackBee\NestedNode\AbstractNestedNode                   $node   The node to be inserted
@param  \BackBee\NestedNode\AbstractNestedNode             $parent The parent node
@return \BackBee\NestedNode\AbstractNestedNode             The inserted node
@throws \BackBee\Exception\InvalidArgumentException Occurs if the node is not a leaf or $parent is not flushed yet
Inserts a leaf node in a tree as first child of the provided parent node .