Baum\Node::isDescendantOf PHP Méthode

isDescendantOf() public méthode

Returns true if node is a descendant.
public isDescendantOf ( $other ) : boolean
Résultat boolean
    public function isDescendantOf($other)
    {
        return $this->getLeft() > $other->getLeft() && $this->getLeft() < $other->getRight() && $this->inSameScope($other);
    }