public static function createDefault(): self
    {
        return new self([
            new Type("any", "[^/]+"),
            new Type("alnum", "[a-zA-Z0-9]+"),
            new Type("alpha", "[a-zA-Z]+"),
            new Type("date", "\d{4}-\d{2}-\d{2}"),
            new Type("digit", "\d"),
            new Type("number", "\d+"),
            new Type("word", "\w+"),
        ]);
    }
public static function createDefault(): self
    {
        return new self([
            new Type("any", "[^/]+"),
            new Type("alnum", "[a-zA-Z0-9]+"),
            new Type("alpha", "[a-zA-Z]+"),
            new Type("date", "\d{4}-\d{2}-\d{2}"),
            new Type("digit", "\d"),
            new Type("number", "\d+"),
            new Type("word", "\w+"),
        ]);
    }
public static function createDefault ( ) : self { return new self ( [ new Type ( "any" , "[^/]+" ) , new Type ( "alnum" , "[a-zA-Z0-9]+" ) , new Type ( "alpha" , "[a-zA-Z]+" ) , new Type ( "date" , "\d{4}-\d{2}-\d{2}" ) , new Type ( "digit" , "\d" ) , new Type ( "number" , "\d+" ) , new Type ( "word" , "\w+" ) , ] ) ; }
Creates a collection with the default types.

@return TypeCollection
@throws InvalidTypes
Creates a collection with the default types .