forked from spatie/laravel-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ide.json
119 lines (119 loc) · 4.42 KB
/
ide.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"$schema": "https://laravel-ide.com/schema/laravel-ide-v2.json",
"completions": [
{
"complete": "classFields",
"options": {
"fieldsFilter": {
"fetch": "all",
"modifier": ["public"]
}
},
"condition": [
{
"methodNames": ["from", "optional"],
"classFqn": ["\\Spatie\\LaravelData\\Concerns\\BaseData"],
"place": "arrayKey"
},
{
"methodNames": ["collection"],
"classFqn": ["\\Spatie\\LaravelData\\Concerns\\BaseData"],
"place": "arrayInArrayKey"
},
{
"methodNames": ["include", "exclude", "only", "except"],
"classFqn": ["\\Spatie\\LaravelData\\Concerns\\IncludeableData"],
"place": "parameter"
},
{
"methodNames": ["includeWhen", "excludeWhen", "onlyWhen", "exceptWhen"],
"classFqn": ["\\Spatie\\LaravelData\\Concerns\\IncludeableData"],
"place": "parameter",
"parameters": [1]
}
]
}
],
"codeGenerations": [
{
"id": "spatie.create-laravel-data",
"name": "Create Data",
"classSuffix": "Data",
"files": [
{
"appNamespace": "Data",
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
"template": {
"type": "stub",
"path": "/stubs/data.stub",
"fallbackPath": "stubs/data.stub",
"parameters": {
"DummyClass": "${INPUT_CLASS|className|upperCamelCase}",
"DummyNamespace": "${INPUT_FQN|namespace}"
}
}
}
]
},
{
"id": "spatie.create-laravel-data-cast",
"name": "Create Data Cast",
"classSuffix": "Cast",
"files": [
{
"appNamespace": "Data\\Casts",
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
"template": {
"type": "stub",
"path": "/stubs/data-cast.stub",
"fallbackPath": "stubs/data-cast.stub",
"parameters": {
"DummyClass": "${INPUT_CLASS|className|upperCamelCase}",
"DummyNamespace": "${INPUT_FQN|namespace}"
}
}
}
]
},
{
"id": "spatie.create-laravel-data-transformer",
"name": "Create Data Transformer",
"classSuffix": "Transformer",
"files": [
{
"appNamespace": "Data\\Transformers",
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
"template": {
"type": "stub",
"path": "/stubs/data-transformer.stub",
"fallbackPath": "stubs/data-transformer.stub",
"parameters": {
"DummyClass": "${INPUT_CLASS|className|upperCamelCase}",
"DummyNamespace": "${INPUT_FQN|namespace}"
}
}
}
]
},
{
"id": "spatie.create-laravel-data-rule",
"name": "Create Data Rule",
"classSuffix": "Rule",
"files": [
{
"appNamespace": "Data\\Rules",
"name": "${INPUT_CLASS|className|upperCamelCase}.php",
"template": {
"type": "stub",
"path": "/stubs/data-rule.stub",
"fallbackPath": "stubs/data-rule.stub",
"parameters": {
"DummyClass": "${INPUT_CLASS|className|upperCamelCase}",
"DummyNamespace": "${INPUT_FQN|namespace}"
}
}
}
]
}
]
}