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

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

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