@@ -52,6 +52,8 @@ public function __construct(?string $name, array $options = [])
52
52
/**
53
53
* Unsupported method.
54
54
*
55
+ * @return never
56
+ *
55
57
* @throws BadMethodCallException
56
58
*/
57
59
public function add (string |FormBuilderInterface $ child , string $ type = null , array $ options = []): static
@@ -62,6 +64,8 @@ public function add(string|FormBuilderInterface $child, string $type = null, arr
62
64
/**
63
65
* Unsupported method.
64
66
*
67
+ * @return never
68
+ *
65
69
* @throws BadMethodCallException
66
70
*/
67
71
public function create (string $ name , string $ type = null , array $ options = []): FormBuilderInterface
@@ -72,6 +76,8 @@ public function create(string $name, string $type = null, array $options = []):
72
76
/**
73
77
* Unsupported method.
74
78
*
79
+ * @return never
80
+ *
75
81
* @throws BadMethodCallException
76
82
*/
77
83
public function get (string $ name ): FormBuilderInterface
@@ -82,6 +88,8 @@ public function get(string $name): FormBuilderInterface
82
88
/**
83
89
* Unsupported method.
84
90
*
91
+ * @return never
92
+ *
85
93
* @throws BadMethodCallException
86
94
*/
87
95
public function remove (string $ name ): static
@@ -116,6 +124,8 @@ public function getForm(): Button
116
124
/**
117
125
* Unsupported method.
118
126
*
127
+ * @return never
128
+ *
119
129
* @throws BadMethodCallException
120
130
*/
121
131
public function addEventListener (string $ eventName , callable $ listener , int $ priority = 0 ): static
@@ -126,6 +136,8 @@ public function addEventListener(string $eventName, callable $listener, int $pri
126
136
/**
127
137
* Unsupported method.
128
138
*
139
+ * @return never
140
+ *
129
141
* @throws BadMethodCallException
130
142
*/
131
143
public function addEventSubscriber (EventSubscriberInterface $ subscriber ): static
@@ -136,6 +148,8 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber): static
136
148
/**
137
149
* Unsupported method.
138
150
*
151
+ * @return never
152
+ *
139
153
* @throws BadMethodCallException
140
154
*/
141
155
public function addViewTransformer (DataTransformerInterface $ viewTransformer , bool $ forcePrepend = false ): static
@@ -146,6 +160,8 @@ public function addViewTransformer(DataTransformerInterface $viewTransformer, bo
146
160
/**
147
161
* Unsupported method.
148
162
*
163
+ * @return never
164
+ *
149
165
* @throws BadMethodCallException
150
166
*/
151
167
public function resetViewTransformers (): static
@@ -156,6 +172,8 @@ public function resetViewTransformers(): static
156
172
/**
157
173
* Unsupported method.
158
174
*
175
+ * @return never
176
+ *
159
177
* @throws BadMethodCallException
160
178
*/
161
179
public function addModelTransformer (DataTransformerInterface $ modelTransformer , bool $ forceAppend = false ): static
@@ -166,6 +184,8 @@ public function addModelTransformer(DataTransformerInterface $modelTransformer,
166
184
/**
167
185
* Unsupported method.
168
186
*
187
+ * @return never
188
+ *
169
189
* @throws BadMethodCallException
170
190
*/
171
191
public function resetModelTransformers (): static
@@ -196,6 +216,8 @@ public function setAttributes(array $attributes): static
196
216
/**
197
217
* Unsupported method.
198
218
*
219
+ * @return never
220
+ *
199
221
* @throws BadMethodCallException
200
222
*/
201
223
public function setDataMapper (DataMapperInterface $ dataMapper = null ): static
@@ -222,6 +244,8 @@ public function setDisabled(bool $disabled): static
222
244
/**
223
245
* Unsupported method.
224
246
*
247
+ * @return never
248
+ *
225
249
* @throws BadMethodCallException
226
250
*/
227
251
public function setEmptyData (mixed $ emptyData ): static
@@ -232,6 +256,8 @@ public function setEmptyData(mixed $emptyData): static
232
256
/**
233
257
* Unsupported method.
234
258
*
259
+ * @return never
260
+ *
235
261
* @throws BadMethodCallException
236
262
*/
237
263
public function setErrorBubbling (bool $ errorBubbling ): static
@@ -242,6 +268,8 @@ public function setErrorBubbling(bool $errorBubbling): static
242
268
/**
243
269
* Unsupported method.
244
270
*
271
+ * @return never
272
+ *
245
273
* @throws BadMethodCallException
246
274
*/
247
275
public function setRequired (bool $ required ): static
@@ -252,6 +280,8 @@ public function setRequired(bool $required): static
252
280
/**
253
281
* Unsupported method.
254
282
*
283
+ * @return never
284
+ *
255
285
* @throws BadMethodCallException
256
286
*/
257
287
public function setPropertyPath (string |PropertyPathInterface |null $ propertyPath ): static
@@ -262,6 +292,8 @@ public function setPropertyPath(string|PropertyPathInterface|null $propertyPath)
262
292
/**
263
293
* Unsupported method.
264
294
*
295
+ * @return never
296
+ *
265
297
* @throws BadMethodCallException
266
298
*/
267
299
public function setMapped (bool $ mapped ): static
@@ -272,6 +304,8 @@ public function setMapped(bool $mapped): static
272
304
/**
273
305
* Unsupported method.
274
306
*
307
+ * @return never
308
+ *
275
309
* @throws BadMethodCallException
276
310
*/
277
311
public function setByReference (bool $ byReference ): static
@@ -282,6 +316,8 @@ public function setByReference(bool $byReference): static
282
316
/**
283
317
* Unsupported method.
284
318
*
319
+ * @return never
320
+ *
285
321
* @throws BadMethodCallException
286
322
*/
287
323
public function setCompound (bool $ compound ): static
@@ -304,6 +340,8 @@ public function setType(ResolvedFormTypeInterface $type): static
304
340
/**
305
341
* Unsupported method.
306
342
*
343
+ * @return never
344
+ *
307
345
* @throws BadMethodCallException
308
346
*/
309
347
public function setData (mixed $ data ): static
@@ -314,6 +352,8 @@ public function setData(mixed $data): static
314
352
/**
315
353
* Unsupported method.
316
354
*
355
+ * @return never
356
+ *
317
357
* @throws BadMethodCallException
318
358
*/
319
359
public function setDataLocked (bool $ locked ): static
@@ -324,6 +364,8 @@ public function setDataLocked(bool $locked): static
324
364
/**
325
365
* Unsupported method.
326
366
*
367
+ * @return never
368
+ *
327
369
* @throws BadMethodCallException
328
370
*/
329
371
public function setFormFactory (FormFactoryInterface $ formFactory )
@@ -334,6 +376,8 @@ public function setFormFactory(FormFactoryInterface $formFactory)
334
376
/**
335
377
* Unsupported method.
336
378
*
379
+ * @return never
380
+ *
337
381
* @throws BadMethodCallException
338
382
*/
339
383
public function setAction (string $ action ): static
@@ -344,6 +388,8 @@ public function setAction(string $action): static
344
388
/**
345
389
* Unsupported method.
346
390
*
391
+ * @return never
392
+ *
347
393
* @throws BadMethodCallException
348
394
*/
349
395
public function setMethod (string $ method ): static
@@ -354,6 +400,8 @@ public function setMethod(string $method): static
354
400
/**
355
401
* Unsupported method.
356
402
*
403
+ * @return never
404
+ *
357
405
* @throws BadMethodCallException
358
406
*/
359
407
public function setRequestHandler (RequestHandlerInterface $ requestHandler ): static
@@ -380,6 +428,8 @@ public function setAutoInitialize(bool $initialize): static
380
428
/**
381
429
* Unsupported method.
382
430
*
431
+ * @return never
432
+ *
383
433
* @throws BadMethodCallException
384
434
*/
385
435
public function setInheritData (bool $ inheritData ): static
@@ -402,6 +452,8 @@ public function getFormConfig(): FormConfigInterface
402
452
/**
403
453
* Unsupported method.
404
454
*
455
+ * @return never
456
+ *
405
457
* @throws BadMethodCallException
406
458
*/
407
459
public function setIsEmptyCallback (?callable $ isEmptyCallback ): static
@@ -412,6 +464,8 @@ public function setIsEmptyCallback(?callable $isEmptyCallback): static
412
464
/**
413
465
* Unsupported method.
414
466
*
467
+ * @return never
468
+ *
415
469
* @throws BadMethodCallException
416
470
*/
417
471
public function getEventDispatcher (): EventDispatcherInterface
@@ -570,6 +624,8 @@ public function getDataLocked(): bool
570
624
571
625
/**
572
626
* Unsupported method.
627
+ *
628
+ * @return never
573
629
*/
574
630
public function getFormFactory (): FormFactoryInterface
575
631
{
@@ -579,6 +635,8 @@ public function getFormFactory(): FormFactoryInterface
579
635
/**
580
636
* Unsupported method.
581
637
*
638
+ * @return never
639
+ *
582
640
* @throws BadMethodCallException
583
641
*/
584
642
public function getAction (): string
@@ -589,6 +647,8 @@ public function getAction(): string
589
647
/**
590
648
* Unsupported method.
591
649
*
650
+ * @return never
651
+ *
592
652
* @throws BadMethodCallException
593
653
*/
594
654
public function getMethod (): string
@@ -599,6 +659,8 @@ public function getMethod(): string
599
659
/**
600
660
* Unsupported method.
601
661
*
662
+ * @return never
663
+ *
602
664
* @throws BadMethodCallException
603
665
*/
604
666
public function getRequestHandler (): RequestHandlerInterface
@@ -649,6 +711,8 @@ public function getOption(string $name, mixed $default = null): mixed
649
711
/**
650
712
* Unsupported method.
651
713
*
714
+ * @return never
715
+ *
652
716
* @throws BadMethodCallException
653
717
*/
654
718
public function getIsEmptyCallback (): ?callable
0 commit comments