public isSelfOrDescendantOf ( $other ) : boolean | ||
return | boolean |
public function isSelfOrDescendantOf($other)
{
return $this->getLeft() >= $other->getLeft() && $this->getLeft() < $other->getRight() && $this->inSameScope($other);
}