Skip to content

Commit af979f6

Browse files
authored
Update ide.json
1 parent 478e7a8 commit af979f6

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

ide.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
3-
"codeGenerations": [
2+
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
3+
"codeGenerations": [
4+
{
5+
"id": "webfox.create-string-backed-enum",
6+
"name": "Create Backed Enum",
7+
"classSuffix": "Enum",
8+
"parameters": [
49
{
5-
"id": "webfox.create-string-backed-enum",
6-
"name": "Create Backed Enum",
7-
"classSuffix": "Enum",
8-
"parameters": [
9-
{
10-
"id": "webfox.create-string-backed-enum:type",
11-
"name": "Type",
12-
"type": "combobox",
13-
"options": {
14-
"string": "string",
15-
"int": "int"
16-
},
17-
"variable": "TYPE"
18-
}
19-
],
20-
"files": [
21-
{
22-
"appNamespace": "Enums",
23-
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
24-
"template": {
25-
"type": "stub",
26-
"path": "/stubs/laravel-backed-enum.stub",
27-
"fallbackPath": "stubs/laravel-backed-enum.stub",
28-
"parameters": {
29-
"{{ class }}": "${INPUT_CLASS|className|upperCamelCase}",
30-
"{{ namespace }}": "${INPUT_FQN|namespace}",
31-
"{{ value }}": "'standard'",
32-
"{{ type }}": "${TYPE}"
33-
}
34-
}
35-
}
36-
]
10+
"id": "webfox.create-string-backed-enum:type",
11+
"name": "Type",
12+
"type": "combobox",
13+
"options": {
14+
"string": "string",
15+
"int": "int"
16+
},
17+
"variable": "TYPE"
3718
}
38-
]
19+
],
20+
"files": [
21+
{
22+
"appNamespace": "Enums",
23+
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
24+
"template": {
25+
"type": "stub",
26+
"path": "/stubs/laravel-backed-enum.stub",
27+
"fallbackPath": "stubs/laravel-backed-enum.stub",
28+
"parameters": {
29+
"{{ class }}": "${INPUT_CLASS|className|upperCamelCase}",
30+
"{{ namespace }}": "${INPUT_FQN|namespace}",
31+
"{{ value }}": "${TYPE|replace:string,'standard'|replace:int,0}",
32+
"{{ type }}": "${TYPE}"
33+
}
34+
}
35+
}
36+
]
37+
}
38+
]
3939
}

0 commit comments

Comments
 (0)