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