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