@@ -316,6 +316,9 @@ public function getIsEmptyCallback(): ?callable
316
316
return $ this ->isEmptyCallback ;
317
317
}
318
318
319
+ /**
320
+ * @return $this
321
+ */
319
322
public function setAttribute (string $ name , mixed $ value ): static
320
323
{
321
324
if ($ this ->locked ) {
@@ -327,6 +330,9 @@ public function setAttribute(string $name, mixed $value): static
327
330
return $ this ;
328
331
}
329
332
333
+ /**
334
+ * @return $this
335
+ */
330
336
public function setAttributes (array $ attributes ): static
331
337
{
332
338
if ($ this ->locked ) {
@@ -338,6 +344,9 @@ public function setAttributes(array $attributes): static
338
344
return $ this ;
339
345
}
340
346
347
+ /**
348
+ * @return $this
349
+ */
341
350
public function setDataMapper (DataMapperInterface $ dataMapper = null ): static
342
351
{
343
352
if (1 > \func_num_args ()) {
@@ -352,6 +361,9 @@ public function setDataMapper(DataMapperInterface $dataMapper = null): static
352
361
return $ this ;
353
362
}
354
363
364
+ /**
365
+ * @return $this
366
+ */
355
367
public function setDisabled (bool $ disabled ): static
356
368
{
357
369
if ($ this ->locked ) {
@@ -363,6 +375,9 @@ public function setDisabled(bool $disabled): static
363
375
return $ this ;
364
376
}
365
377
378
+ /**
379
+ * @return $this
380
+ */
366
381
public function setEmptyData (mixed $ emptyData ): static
367
382
{
368
383
if ($ this ->locked ) {
@@ -374,6 +389,9 @@ public function setEmptyData(mixed $emptyData): static
374
389
return $ this ;
375
390
}
376
391
392
+ /**
393
+ * @return $this
394
+ */
377
395
public function setErrorBubbling (bool $ errorBubbling ): static
378
396
{
379
397
if ($ this ->locked ) {
@@ -385,6 +403,9 @@ public function setErrorBubbling(bool $errorBubbling): static
385
403
return $ this ;
386
404
}
387
405
406
+ /**
407
+ * @return $this
408
+ */
388
409
public function setRequired (bool $ required ): static
389
410
{
390
411
if ($ this ->locked ) {
@@ -396,6 +417,9 @@ public function setRequired(bool $required): static
396
417
return $ this ;
397
418
}
398
419
420
+ /**
421
+ * @return $this
422
+ */
399
423
public function setPropertyPath (string |PropertyPathInterface |null $ propertyPath ): static
400
424
{
401
425
if ($ this ->locked ) {
@@ -411,6 +435,9 @@ public function setPropertyPath(string|PropertyPathInterface|null $propertyPath)
411
435
return $ this ;
412
436
}
413
437
438
+ /**
439
+ * @return $this
440
+ */
414
441
public function setMapped (bool $ mapped ): static
415
442
{
416
443
if ($ this ->locked ) {
@@ -422,6 +449,9 @@ public function setMapped(bool $mapped): static
422
449
return $ this ;
423
450
}
424
451
452
+ /**
453
+ * @return $this
454
+ */
425
455
public function setByReference (bool $ byReference ): static
426
456
{
427
457
if ($ this ->locked ) {
@@ -433,6 +463,9 @@ public function setByReference(bool $byReference): static
433
463
return $ this ;
434
464
}
435
465
466
+ /**
467
+ * @return $this
468
+ */
436
469
public function setInheritData (bool $ inheritData ): static
437
470
{
438
471
if ($ this ->locked ) {
@@ -444,6 +477,9 @@ public function setInheritData(bool $inheritData): static
444
477
return $ this ;
445
478
}
446
479
480
+ /**
481
+ * @return $this
482
+ */
447
483
public function setCompound (bool $ compound ): static
448
484
{
449
485
if ($ this ->locked ) {
@@ -455,6 +491,9 @@ public function setCompound(bool $compound): static
455
491
return $ this ;
456
492
}
457
493
494
+ /**
495
+ * @return $this
496
+ */
458
497
public function setType (ResolvedFormTypeInterface $ type ): static
459
498
{
460
499
if ($ this ->locked ) {
@@ -466,6 +505,9 @@ public function setType(ResolvedFormTypeInterface $type): static
466
505
return $ this ;
467
506
}
468
507
508
+ /**
509
+ * @return $this
510
+ */
469
511
public function setData (mixed $ data ): static
470
512
{
471
513
if ($ this ->locked ) {
@@ -477,6 +519,9 @@ public function setData(mixed $data): static
477
519
return $ this ;
478
520
}
479
521
522
+ /**
523
+ * @return $this
524
+ */
480
525
public function setDataLocked (bool $ locked ): static
481
526
{
482
527
if ($ this ->locked ) {
@@ -488,6 +533,9 @@ public function setDataLocked(bool $locked): static
488
533
return $ this ;
489
534
}
490
535
536
+ /**
537
+ * @return $this
538
+ */
491
539
public function setFormFactory (FormFactoryInterface $ formFactory )
492
540
{
493
541
if ($ this ->locked ) {
@@ -499,6 +547,9 @@ public function setFormFactory(FormFactoryInterface $formFactory)
499
547
return $ this ;
500
548
}
501
549
550
+ /**
551
+ * @return $this
552
+ */
502
553
public function setAction (string $ action ): static
503
554
{
504
555
if ($ this ->locked ) {
@@ -510,6 +561,9 @@ public function setAction(string $action): static
510
561
return $ this ;
511
562
}
512
563
564
+ /**
565
+ * @return $this
566
+ */
513
567
public function setMethod (string $ method ): static
514
568
{
515
569
if ($ this ->locked ) {
@@ -521,6 +575,9 @@ public function setMethod(string $method): static
521
575
return $ this ;
522
576
}
523
577
578
+ /**
579
+ * @return $this
580
+ */
524
581
public function setRequestHandler (RequestHandlerInterface $ requestHandler ): static
525
582
{
526
583
if ($ this ->locked ) {
@@ -532,6 +589,9 @@ public function setRequestHandler(RequestHandlerInterface $requestHandler): stat
532
589
return $ this ;
533
590
}
534
591
592
+ /**
593
+ * @return $this
594
+ */
535
595
public function setAutoInitialize (bool $ initialize ): static
536
596
{
537
597
if ($ this ->locked ) {
@@ -556,6 +616,9 @@ public function getFormConfig(): FormConfigInterface
556
616
return $ config ;
557
617
}
558
618
619
+ /**
620
+ * @return $this
621
+ */
559
622
public function setIsEmptyCallback (?callable $ isEmptyCallback ): static
560
623
{
561
624
$ this ->isEmptyCallback = null === $ isEmptyCallback ? null : $ isEmptyCallback (...);
0 commit comments