Baum\Node::getLeftSibling PHP Method

getLeftSibling() public method

Returns the first sibling to the left.
public getLeftSibling ( ) : NestedSet
return NestedSet
    public function getLeftSibling()
    {
        return $this->siblings()->where($this->getLeftColumnName(), '<', $this->getLeft())->orderBy($this->getOrderColumnName(), 'desc')->get()->last();
    }