Baum\Node::getLeftSibling PHP Méthode

getLeftSibling() public méthode

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