Baum\Node::isDescendantOf PHP Method

isDescendantOf() public method

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