Baum\Node::getRightSibling PHP Method

getRightSibling() public method

Returns the first sibling to the right.
public getRightSibling ( ) : NestedSet
return NestedSet
    public function getRightSibling()
    {
        return $this->siblings()->where($this->getLeftColumnName(), '>', $this->getLeft())->first();
    }