Baum\Node::isAncestorOf PHP 메소드

isAncestorOf() 공개 메소드

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