Baum\Node::root PHP Method

root() public static method

Returns the first root node.
public static root ( ) : NestedSet
return NestedSet
    public static function root()
    {
        return static::roots()->first();
    }