Nestable\NestableTrait::nested PHP Method

nested() public static method

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