Baum\Move::resolveNode PHP Method

resolveNode() protected method

Resolves suplied node. Basically returns the node unchanged if supplied parameter is an instance of \Baum\Node. Otherwise it will try to find the node in the database.
protected resolveNode ( $node ) : Node
return Node
    protected function resolveNode($node)
    {
        if ($node instanceof \Baum\Node) {
            return $node->reload();
        }
        return $this->node->newNestedSetQuery()->find($node);
    }