Baum\Node::isSelfOrAncestorOf PHP 메소드

isSelfOrAncestorOf() 공개 메소드

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