Baum\Node::isDescendantOf PHP 메소드

isDescendantOf() 공개 메소드

Returns true if node is a descendant.
public isDescendantOf ( $other ) : boolean
리턴 boolean
    public function isDescendantOf($other)
    {
        return $this->getLeft() > $other->getLeft() && $this->getLeft() < $other->getRight() && $this->inSameScope($other);
    }