src/NestableTrait.php
public static function nested($to = 1)
    {
        static::$to = $to;
        static::$nested = is_numeric($to) ? $to : false;

        return new self();
    }
public static function nested($to = 1)
    {
        static::$to = $to;
        static::$nested = is_numeric($to) ? $to : false;

        return new self();
    }
public static function nested ( $ to = 1 ) { static :: $ to = $ to ; static :: $ nested = is_numeric ( $ to ) ? $ to : false ; return new self ( ) ; }
Set the nest type.

@param int $to

@return object
Set the nest type .