25
25
* @Attributes(
26
26
* @Attribute("accessControl", type="string"),
27
27
* @Attribute("accessControlMessage", type="string"),
28
- * @Attribute("security", type="string"),
29
- * @Attribute("securityMessage", type="string"),
30
- * @Attribute("securityPostDenormalize", type="string"),
31
- * @Attribute("securityPostDenormalizeMessage", type="string"),
32
28
* @Attribute("attributes", type="array"),
33
29
* @Attribute("cacheHeaders", type="array"),
34
30
* @Attribute("collectionOperations", type="array"),
62
58
* @Attribute("paginationPartial", type="bool"),
63
59
* @Attribute("paginationViaCursor", type="array"),
64
60
* @Attribute("routePrefix", type="string"),
61
+ * @Attribute("security", type="string"),
62
+ * @Attribute("securityMessage", type="string"),
63
+ * @Attribute("securityPostDenormalize", type="string"),
64
+ * @Attribute("securityPostDenormalizeMessage", type="string"),
65
65
* @Attribute("shortName", type="string"),
66
66
* @Attribute("subresourceOperations", type="array"),
67
67
* @Attribute("sunset", type="string"),
@@ -74,83 +74,66 @@ final class ApiResource
74
74
use AttributesHydratorTrait;
75
75
76
76
/**
77
- * @var string
78
- */
79
- public $ shortName ;
80
-
81
- /**
82
- * @var string
83
- */
84
- public $ description ;
85
-
86
- /**
87
- * @var string
88
- */
89
- public $ iri ;
90
-
91
- /**
92
- * @var array
93
- */
94
- public $ itemOperations ;
95
-
96
- /**
77
+ * @see https://api-platform.com/docs/core/operations
78
+ *
97
79
* @var array
98
80
*/
99
81
public $ collectionOperations ;
100
82
101
83
/**
102
- * @var array
84
+ * @var string
103
85
*/
104
- public $ subresourceOperations ;
86
+ public $ description ;
105
87
106
88
/**
89
+ * @see https://api-platform.com/docs/core/graphql
90
+ *
107
91
* @var array
108
92
*/
109
93
public $ graphql ;
110
94
111
95
/**
112
- * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
113
- *
114
96
* @var string
115
97
*/
116
- private $ security ;
98
+ public $ iri ;
117
99
118
100
/**
119
- * @see https://github .com/Haehnchen/idea-php-annotation-plugin/issues/112
101
+ * @see https://api-platform .com/docs/core/operations
120
102
*
121
- * @var string
103
+ * @var array
122
104
*/
123
- private $ securityMessage ;
105
+ public $ itemOperations ;
124
106
125
107
/**
126
- * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
127
- *
128
108
* @var string
129
109
*/
130
- private $ securityPostDenormalize ;
110
+ public $ shortName ;
131
111
132
112
/**
133
- * @see https://github .com/Haehnchen/idea-php-annotation-plugin/issues/112
113
+ * @see https://api-platform .com/docs/core/subresources
134
114
*
135
- * @var string
115
+ * @var array
136
116
*/
137
- private $ securityPostDenormalizeMessage ;
117
+ public $ subresourceOperations ;
138
118
139
119
/**
120
+ * @see https://api-platform.com/docs/core/performance/#setting-custom-http-cache-headers
140
121
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
141
122
*
142
123
* @var array
143
124
*/
144
125
private $ cacheHeaders ;
145
126
146
127
/**
128
+ * @see https://api-platform.com/docs/core/serialization/#using-serialization-groups
147
129
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
148
130
*
149
131
* @var array
150
132
*/
151
133
private $ denormalizationContext ;
152
134
153
135
/**
136
+ * @see https://api-platform.com/docs/core/deprecations/#deprecating-resource-classes-operations-and-properties
154
137
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
155
138
*
156
139
* @var string
@@ -165,188 +148,244 @@ final class ApiResource
165
148
private $ elasticsearch ;
166
149
167
150
/**
151
+ * @see https://api-platform.com/docs/core/performance/#fetch-partial
168
152
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
169
153
*
170
154
* @var bool
171
155
*/
172
156
private $ fetchPartial ;
173
157
174
158
/**
159
+ * @see https://api-platform.com/docs/core/performance/#force-eager
175
160
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
176
161
*
177
162
* @var bool
178
163
*/
179
164
private $ forceEager ;
180
165
181
166
/**
167
+ * @see https://api-platform.com/docs/core/content-negotiation/#configuring-formats-for-a-specific-resource-or-operation
182
168
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
183
169
*
184
170
* @var array
185
171
*/
186
172
private $ formats ;
187
173
188
174
/**
175
+ * @see https://api-platform.com/docs/core/filters/#doctrine-orm-and-mongodb-odm-filters
189
176
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
190
177
*
191
178
* @var string[]
192
179
*/
193
180
private $ filters ;
194
181
195
182
/**
183
+ * @see https://api-platform.com/docs/core/extending-jsonld-context/#hydra
196
184
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
197
185
*
198
186
* @var string[]
199
187
*/
200
188
private $ hydraContext ;
201
189
202
190
/**
191
+ * @see https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation
192
+ * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
193
+ *
194
+ * @var string|false
195
+ */
196
+ private $ input ;
197
+
198
+ /**
199
+ * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
200
+ *
201
+ * @var int
202
+ *
203
+ * @deprecated - Use $paginationMaximumItemsPerPage instead
204
+ */
205
+ private $ maximumItemsPerPage ;
206
+
207
+ /**
208
+ * @see https://api-platform.com/docs/core/mercure
203
209
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
204
210
*
205
211
* @var mixed
206
212
*/
207
213
private $ mercure ;
208
214
209
215
/**
216
+ * @see https://api-platform.com/docs/core/messenger/#dispatching-a-resource-through-the-message-bus
210
217
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
211
218
*
212
219
* @var bool|string
213
220
*/
214
221
private $ messenger ;
215
222
216
223
/**
224
+ * @see https://api-platform.com/docs/core/serialization/#using-serialization-groups
217
225
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
218
226
*
219
227
* @var array
220
228
*/
221
229
private $ normalizationContext ;
222
230
223
231
/**
232
+ * @see https://api-platform.com/docs/core/swagger/#using-the-openapi-and-swagger-contexts
233
+ * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
234
+ *
235
+ * @var array
236
+ */
237
+ private $ openapiContext ;
238
+
239
+ /**
240
+ * @see https://api-platform.com/docs/core/default-order/#overriding-default-order
224
241
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
225
242
*
226
243
* @var array
227
244
*/
228
245
private $ order ;
229
246
230
247
/**
248
+ * @see https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation
249
+ * @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
250
+ *
251
+ * @var string|false
252
+ */
253
+ private $ output ;
254
+
255
+ /**
256
+ * @see https://api-platform.com/docs/core/pagination/#for-a-specific-resource-1
231
257
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
232
258
*
233
259
* @var bool
234
260
*/
235
261
private $ paginationClientEnabled ;
236
262
237
263
/**
264
+ * @see https://api-platform.com/docs/core/pagination/#for-a-specific-resource-3
238
265
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
239
266
*
240
267
* @var bool
241
268
*/
242
269
private $ paginationClientItemsPerPage ;
243
270
244
271
/**
272
+ * @see https://api-platform.com/docs/core/pagination/#for-a-specific-resource-6
245
273
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
246
274
*
247
275
* @var bool
248
276
*/
249
277
private $ paginationClientPartial ;
250
278
251
279
/**
280
+ * @see https://api-platform.com/docs/core/pagination/#cursor-based-pagination
252
281
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
253
282
*
254
- * @var bool
283
+ * @var array
255
284
*/
256
- private $ paginationEnabled ;
285
+ private $ paginationViaCursor ;
257
286
258
287
/**
288
+ * @see https://api-platform.com/docs/core/pagination/#for-a-specific-resource
259
289
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
260
290
*
261
291
* @var bool
262
292
*/
263
- private $ paginationFetchJoinCollection ;
293
+ private $ paginationEnabled ;
264
294
265
295
/**
296
+ * @see https://api-platform.com/docs/core/pagination/#controlling-the-behavior-of-the-doctrine-orm-paginator
266
297
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
267
298
*
268
- * @var int
299
+ * @var bool
269
300
*/
270
- private $ paginationItemsPerPage ;
301
+ private $ paginationFetchJoinCollection ;
271
302
272
303
/**
304
+ * @see https://api-platform.com/docs/core/pagination/#changing-the-number-of-items-per-page
273
305
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
274
306
*
275
307
* @var int
276
- *
277
- * @deprecated - Use $paginationMaximumItemsPerPage instead
278
308
*/
279
- private $ maximumItemsPerPage ;
309
+ private $ paginationItemsPerPage ;
280
310
281
311
/**
312
+ * @see https://api-platform.com/docs/core/pagination/#changing-maximum-items-per-page
282
313
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
283
314
*
284
315
* @var int
285
316
*/
286
317
private $ paginationMaximumItemsPerPage ;
287
318
288
319
/**
320
+ * @see https://api-platform.com/docs/core/performance/#partial-pagination
289
321
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
290
322
*
291
323
* @var int
292
324
*/
293
325
private $ paginationPartial ;
294
326
295
327
/**
328
+ * @see https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations
296
329
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
297
330
*
298
331
* @var string
299
332
*/
300
333
private $ routePrefix ;
301
334
302
335
/**
336
+ * @see https://api-platform.com/docs/core/security
303
337
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
304
338
*
305
- * @var array
339
+ * @var string
306
340
*/
307
- private $ swaggerContext ;
341
+ private $ security ;
308
342
309
343
/**
344
+ * @see https://api-platform.com/docs/core/security/#configuring-the-access-control-error-message
310
345
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
311
346
*
312
- * @var mixed
347
+ * @var string
313
348
*/
314
- private $ validationGroups ;
349
+ private $ securityMessage ;
315
350
316
351
/**
352
+ * @see https://api-platform.com/docs/core/security/#executing-access-control-rules-after-denormalization
317
353
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
318
354
*
319
355
* @var string
320
356
*/
321
- private $ sunset ;
357
+ private $ securityPostDenormalize ;
322
358
323
359
/**
324
360
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
325
361
*
326
- * @var string|false
362
+ * @var string
327
363
*/
328
- private $ input ;
364
+ private $ securityPostDenormalizeMessage ;
329
365
330
366
/**
367
+ * @see https://api-platform.com/docs/core/deprecations/#setting-the-sunset-http-header-to-indicate-when-a-resource-or-an-operation-will-be-removed
331
368
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
332
369
*
333
- * @var string|false
370
+ * @var string
334
371
*/
335
- private $ output ;
372
+ private $ sunset ;
336
373
337
374
/**
375
+ * @see https://api-platform.com/docs/core/swagger/#using-the-openapi-and-swagger-contexts
338
376
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
339
377
*
340
378
* @var array
341
379
*/
342
- private $ openapiContext ;
380
+ private $ swaggerContext ;
343
381
344
382
/**
383
+ * @see https://api-platform.com/docs/core/validation/#using-validation-groups
345
384
* @see https://github.com/Haehnchen/idea-php-annotation-plugin/issues/112
346
385
*
347
- * @var array
386
+ * @var mixed
348
387
*/
349
- private $ paginationViaCursor ;
388
+ private $ validationGroups ;
350
389
351
390
/**
352
391
* @throws InvalidArgumentException
0 commit comments