Baum\Move::resolveNode PHP 메소드

resolveNode() 보호된 메소드

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
리턴 Node
    protected function resolveNode($node)
    {
        if ($node instanceof \Baum\Node) {
            return $node->reload();
        }
        return $this->node->newNestedSetQuery()->find($node);
    }