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);
    }