Baum\Node::isSelfOrDescendantOf PHP Метод

isSelfOrDescendantOf() публичный Метод

Returns true if node is self or a descendant.
public isSelfOrDescendantOf ( $other ) : boolean
Результат boolean
    public function isSelfOrDescendantOf($other)
    {
        return $this->getLeft() >= $other->getLeft() && $this->getLeft() < $other->getRight() && $this->inSameScope($other);
    }