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

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

Returns true if this is a leaf node (end of a branch).
public isLeaf ( ) : boolean
Результат boolean
    public function isLeaf()
    {
        return $this->exists && $this->getRight() - $this->getLeft() == 1;
    }