Baum\Node::isLeaf PHP Method

isLeaf() public method

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