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