Completed
Pull Request — master (#6194)
by Vincent
03:04
created
src/Admin/FieldDescriptionInterface.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -26,6 +26,7 @@  discard block
 block discarded – undo
26 26
 {
27 27
     /**
28 28
      * set the field name.
29
+     * @return void
29 30
      */
30 31
     public function setFieldName(?string $fieldName): void;
31 32
 
@@ -38,6 +39,8 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * Set the name.
42
+     * @param string $name
43
+     * @return void
41 44
      */
42 45
     public function setName(?string $name): void;
43 46
 
@@ -61,6 +64,7 @@  discard block
 block discarded – undo
61 64
      * Define an option, an option is has a name and a value.
62 65
      *
63 66
      * @param mixed $value
67
+     * @return void
64 68
      */
65 69
     public function setOption(string $name, $value): void;
66 70
 
@@ -72,6 +76,7 @@  discard block
 block discarded – undo
72 76
      * Then the value are copied across to the related property value.
73 77
      *
74 78
      * @param array<string, mixed> $options
79
+     * @return void
75 80
      */
76 81
     public function setOptions(array $options): void;
77 82
 
@@ -84,6 +89,7 @@  discard block
 block discarded – undo
84 89
 
85 90
     /**
86 91
      * Sets the template used to render the field.
92
+     * @return void
87 93
      */
88 94
     public function setTemplate(string $template): void;
89 95
 
@@ -97,16 +103,19 @@  discard block
 block discarded – undo
97 103
     /**
98 104
      * Sets the field type. The type is a mandatory field as it's used to select the correct template
99 105
      * or the logic associated to the current FieldDescription object.
106
+     * @return void
100 107
      */
101 108
     public function setType(?string $type): void;
102 109
 
103 110
     /**
104 111
      * Returns the type.
112
+     * @return string
105 113
      */
106 114
     public function getType(): ?string;
107 115
 
108 116
     /**
109 117
      * set the parent Admin (only used in nested admin).
118
+     * @return void
110 119
      */
111 120
     public function setParent(AdminInterface $parent);
112 121
 
@@ -169,6 +178,7 @@  discard block
 block discarded – undo
169 178
      * set the association admin instance (only used if the field is linked to an Admin).
170 179
      *
171 180
      * @param AdminInterface $associationAdmin the associated admin
181
+     * @return void
172 182
      */
173 183
     public function setAssociationAdmin(AdminInterface $associationAdmin);
174 184
 
@@ -196,6 +206,7 @@  discard block
 block discarded – undo
196 206
 
197 207
     /**
198 208
      * set the admin class linked to this FieldDescription.
209
+     * @return void
199 210
      */
200 211
     public function setAdmin(AdminInterface $admin);
201 212
 
@@ -211,11 +222,13 @@  discard block
 block discarded – undo
211 222
      * merge option values related to the provided option name.
212 223
      *
213 224
      * @throws \RuntimeException
225
+     * @return void
214 226
      */
215 227
     public function mergeOption(string $name, array $options = []): void;
216 228
 
217 229
     /**
218 230
      * merge options values.
231
+     * @return void
219 232
      */
220 233
     public function mergeOptions(array $options = []): void;
221 234
 
@@ -223,6 +236,7 @@  discard block
 block discarded – undo
223 236
      * set the original mapping type (only used if the field is linked to an entity).
224 237
      *
225 238
      * @param string|int $mappingType
239
+     * @return void
226 240
      */
227 241
     public function setMappingType($mappingType);
228 242
 
Please login to merge, or discard this patch.
src/Security/Handler/AclSecurityHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@
 block discarded – undo
182 182
         return $acls;
183 183
     }
184 184
 
185
+    /**
186
+     * @param UserSecurityIdentity $securityIdentity
187
+     */
185 188
     public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void
186 189
     {
187 190
         if (!$acl instanceof MutableAclInterface) {
Please login to merge, or discard this patch.
src/Admin/AdminInterface.php 1 patch
Doc Comments   +135 added lines patch added patch discarded remove patch
@@ -40,26 +40,59 @@  discard block
 block discarded – undo
40 40
  */
41 41
 interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface
42 42
 {
43
+    /**
44
+     * @return void
45
+     */
43 46
     public function setMenuFactory(MenuFactoryInterface $menuFactory): void;
44 47
 
48
+    /**
49
+     * @return MenuFactoryInterface
50
+     */
45 51
     public function getMenuFactory(): ?MenuFactoryInterface;
46 52
 
53
+    /**
54
+     * @return void
55
+     */
47 56
     public function setFormContractor(FormContractorInterface $formContractor): void;
48 57
 
58
+    /**
59
+     * @return void
60
+     */
49 61
     public function setListBuilder(ListBuilderInterface $listBuilder): void;
50 62
 
63
+    /**
64
+     * @return ListBuilderInterface
65
+     */
51 66
     public function getListBuilder(): ?ListBuilderInterface;
52 67
 
68
+    /**
69
+     * @return void
70
+     */
53 71
     public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void;
54 72
 
73
+    /**
74
+     * @return DatagridBuilderInterface
75
+     */
55 76
     public function getDatagridBuilder(): ?DatagridBuilderInterface;
56 77
 
78
+    /**
79
+     * @return void
80
+     */
57 81
     public function setTranslator(TranslatorInterface $translator): void;
58 82
 
83
+    /**
84
+     * @return TranslatorInterface
85
+     */
59 86
     public function getTranslator(): ?TranslatorInterface;
60 87
 
88
+    /**
89
+     * @return void
90
+     */
61 91
     public function setRequest(Request $request): void;
62 92
 
93
+    /**
94
+     * @return void
95
+     */
63 96
     public function setConfigurationPool(Pool $pool): void;
64 97
 
65 98
     /**
@@ -70,12 +103,16 @@  discard block
 block discarded – undo
70 103
      */
71 104
     public function getClass(): string;
72 105
 
106
+    /**
107
+     * @return void
108
+     */
73 109
     public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void;
74 110
 
75 111
     public function getDatagrid(): DatagridInterface;
76 112
 
77 113
     /**
78 114
      * Set base controller name.
115
+     * @return void
79 116
      */
80 117
     public function setBaseControllerName(string $baseControllerName): void;
81 118
 
@@ -86,11 +123,13 @@  discard block
 block discarded – undo
86 123
 
87 124
     /**
88 125
      * Sets a list of templates.
126
+     * @return void
89 127
      */
90 128
     public function setTemplates(array $templates): void;
91 129
 
92 130
     /**
93 131
      * Sets a specific template.
132
+     * @return void
94 133
      */
95 134
     public function setTemplate(string $name, string $template): void;
96 135
 
@@ -113,6 +152,7 @@  discard block
 block discarded – undo
113 152
 
114 153
     /**
115 154
      * Returns a form depend on the given $object.
155
+     * @return \Symfony\Component\Form\Form|null
116 156
      */
117 157
     public function getForm(): ?FormInterface;
118 158
 
@@ -143,6 +183,9 @@  discard block
 block discarded – undo
143 183
      */
144 184
     public function getSecurityInformation(): array;
145 185
 
186
+    /**
187
+     * @return void
188
+     */
146 189
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void;
147 190
 
148 191
     /**
@@ -182,8 +225,14 @@  discard block
 block discarded – undo
182 225
      */
183 226
     public function hasRoute(string $name): bool;
184 227
 
228
+    /**
229
+     * @return void
230
+     */
185 231
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void;
186 232
 
233
+    /**
234
+     * @return SecurityHandlerInterface
235
+     */
187 236
     public function getSecurityHandler(): ?SecurityHandlerInterface;
188 237
 
189 238
     /**
@@ -202,17 +251,33 @@  discard block
 block discarded – undo
202 251
      * Shorthand method for templating.
203 252
      *
204 253
      * @param object $model
254
+     * @return string
205 255
      */
206 256
     public function id($model): ?string;
207 257
 
258
+    /**
259
+     * @return void
260
+     */
208 261
     public function setValidator(ValidatorInterface $validator): void;
209 262
 
263
+    /**
264
+     * @return ValidatorInterface
265
+     */
210 266
     public function getValidator(): ?ValidatorInterface;
211 267
 
268
+    /**
269
+     * @return FieldDescriptionCollection|null
270
+     */
212 271
     public function getShow(): ?FieldDescriptionCollection;
213 272
 
273
+    /**
274
+     * @return void
275
+     */
214 276
     public function setFormTheme(array $formTheme): void;
215 277
 
278
+    /**
279
+     * @return FieldDescriptionCollection|null
280
+     */
216 281
     public function getList(): ?FieldDescriptionCollection;
217 282
 
218 283
     /**
@@ -220,6 +285,9 @@  discard block
 block discarded – undo
220 285
      */
221 286
     public function getFormTheme(): array;
222 287
 
288
+    /**
289
+     * @return void
290
+     */
223 291
     public function setFilterTheme(array $filterTheme): void;
224 292
 
225 293
     /**
@@ -227,6 +295,9 @@  discard block
 block discarded – undo
227 295
      */
228 296
     public function getFilterTheme(): array;
229 297
 
298
+    /**
299
+     * @return void
300
+     */
230 301
     public function addExtension(AdminExtensionInterface $extension): void;
231 302
 
232 303
     /**
@@ -236,8 +307,14 @@  discard block
 block discarded – undo
236 307
      */
237 308
     public function getExtensions(): array;
238 309
 
310
+    /**
311
+     * @return void
312
+     */
239 313
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void;
240 314
 
315
+    /**
316
+     * @return RouteBuilderInterface
317
+     */
241 318
     public function getRouteBuilder(): ?RouteBuilderInterface;
242 319
 
243 320
     /**
@@ -245,8 +322,14 @@  discard block
 block discarded – undo
245 322
      */
246 323
     public function toString($object): string;
247 324
 
325
+    /**
326
+     * @return void
327
+     */
248 328
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void;
249 329
 
330
+    /**
331
+     * @return LabelTranslatorStrategyInterface
332
+     */
250 333
     public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface;
251 334
 
252 335
     /**
@@ -258,6 +341,9 @@  discard block
 block discarded – undo
258 341
 
259 342
     public function getNewInstance(): object;
260 343
 
344
+    /**
345
+     * @return void
346
+     */
261 347
     public function setUniqid(string $uniqId): void;
262 348
 
263 349
     /**
@@ -277,6 +363,9 @@  discard block
 block discarded – undo
277 363
      */
278 364
     public function getObject($id): ?object;
279 365
 
366
+    /**
367
+     * @return void
368
+     */
280 369
     public function setSubject(?object $subject): void;
281 370
 
282 371
     /**
@@ -288,6 +377,7 @@  discard block
 block discarded – undo
288 377
      * NEXT_MAJOR: Remove this method, since it's already in FieldDescriptionRegistryInterface.
289 378
      *
290 379
      * Returns a list FieldDescription.
380
+     * @return null|FieldDescriptionInterface
291 381
      */
292 382
     public function getListFieldDescription(string $name): ?FieldDescriptionInterface;
293 383
 
@@ -324,6 +414,7 @@  discard block
 block discarded – undo
324 414
 
325 415
     /**
326 416
      * Call before the batch action, allow you to alter the query and the idx.
417
+     * @return void
327 418
      */
328 419
     public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void;
329 420
 
@@ -346,6 +437,7 @@  discard block
 block discarded – undo
346 437
      *
347 438
      * @deprecated this feature cannot be stable, use a custom validator,
348 439
      *             the feature will be removed with Symfony 2.2
440
+     * @return void
349 441
      */
350 442
     public function validate(ErrorElement $errorElement, $object): void;
351 443
 
@@ -353,6 +445,7 @@  discard block
 block discarded – undo
353 445
 
354 446
     /**
355 447
      * Add object security, fe. make the current user owner of the object.
448
+     * @return void
356 449
      */
357 450
     public function createObjectSecurity(object $object): void;
358 451
 
@@ -361,6 +454,9 @@  discard block
 block discarded – undo
361 454
      */
362 455
     public function getParent(): ?self;
363 456
 
457
+    /**
458
+     * @return void
459
+     */
364 460
     public function setParent(self $admin): void;
365 461
 
366 462
     /**
@@ -372,6 +468,7 @@  discard block
 block discarded – undo
372 468
      * Set the translation domain.
373 469
      *
374 470
      * @param string $translationDomain the translation domain
471
+     * @return void
375 472
      */
376 473
     public function setTranslationDomain(string $translationDomain): void;
377 474
 
@@ -391,6 +488,7 @@  discard block
 block discarded – undo
391 488
 
392 489
     /**
393 490
      * Set the form groups.
491
+     * @return void
394 492
      */
395 493
     public function setFormGroups(array $formGroups): void;
396 494
 
@@ -399,6 +497,9 @@  discard block
 block discarded – undo
399 497
      */
400 498
     public function getFormTabs(): array;
401 499
 
500
+    /**
501
+     * @return void
502
+     */
402 503
     public function setFormTabs(array $formTabs): void;
403 504
 
404 505
     /**
@@ -406,10 +507,14 @@  discard block
 block discarded – undo
406 507
      */
407 508
     public function getShowTabs(): array;
408 509
 
510
+    /**
511
+     * @return void
512
+     */
409 513
     public function setShowTabs(array $showTabs): void;
410 514
 
411 515
     /**
412 516
      * Remove a form group field.
517
+     * @return void
413 518
      */
414 519
     public function removeFieldFromFormGroup(string $key): void;
415 520
 
@@ -422,11 +527,13 @@  discard block
 block discarded – undo
422 527
 
423 528
     /**
424 529
      * Set the show groups.
530
+     * @return void
425 531
      */
426 532
     public function setShowGroups(array $showGroups): void;
427 533
 
428 534
     /**
429 535
      * Reorder items in showGroup.
536
+     * @return void
430 537
      */
431 538
     public function reorderShowGroup(string $group, array $keys): void;
432 539
 
@@ -434,6 +541,7 @@  discard block
 block discarded – undo
434 541
      * NEXT_MAJOR: Remove this method, since it's already in FieldDescriptionRegistryInterface.
435 542
      *
436 543
      * add a FieldDescription.
544
+     * @return void
437 545
      */
438 546
     public function addFormFieldDescription(string $name, FieldDescriptionInterface $fieldDescription): void;
439 547
 
@@ -441,6 +549,7 @@  discard block
 block discarded – undo
441 549
      * NEXT_MAJOR: Remove this method, since it's already in FieldDescriptionRegistryInterface.
442 550
      *
443 551
      * Remove a FieldDescription.
552
+     * @return void
444 553
      */
445 554
     public function removeFormFieldDescription(string $name): void;
446 555
 
@@ -458,11 +567,13 @@  discard block
 block discarded – undo
458 567
      * Adds a new class to a list of supported sub classes.
459 568
      *
460 569
      * @param $subClass
570
+     * @return void
461 571
      */
462 572
     public function addSubClass($subClass): void;
463 573
 
464 574
     /**
465 575
      * Sets the list of supported sub classes.
576
+     * @return void
466 577
      */
467 578
     public function setSubClasses(array $subClasses): void;
468 579
 
@@ -501,6 +612,7 @@  discard block
 block discarded – undo
501 612
 
502 613
     /**
503 614
      * Returns Admin`s label.
615
+     * @return string
504 616
      */
505 617
     public function getLabel(): ?string;
506 618
 
@@ -515,6 +627,7 @@  discard block
 block discarded – undo
515 627
 
516 628
     /**
517 629
      * Set the current child status.
630
+     * @return void
518 631
      */
519 632
     public function setCurrentChild(bool $currentChild): void;
520 633
 
@@ -540,6 +653,9 @@  discard block
 block discarded – undo
540 653
      */
541 654
     public function getListModes(): array;
542 655
 
656
+    /**
657
+     * @return void
658
+     */
543 659
     public function setListMode(string $mode): void;
544 660
 
545 661
     /**
@@ -564,12 +680,14 @@  discard block
 block discarded – undo
564 680
 
565 681
     /**
566 682
      * Returns the result link for an object.
683
+     * @return string|null
567 684
      */
568 685
     public function getSearchResultLink(object $object): ?string;
569 686
 
570 687
     /**
571 688
      * Setting to true will enable mosaic button for the admin screen.
572 689
      * Setting to false will hide mosaic button for the admin screen.
690
+     * @return void
573 691
      */
574 692
     public function showMosaicButton(bool $isShown): void;
575 693
 
@@ -595,6 +713,9 @@  discard block
 block discarded – undo
595 713
      */
596 714
     public function getRootCode(): string;
597 715
 
716
+    /**
717
+     * @return void
718
+     */
598 719
     public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void;
599 720
 
600 721
     /**
@@ -607,14 +728,24 @@  discard block
 block discarded – undo
607 728
      */
608 729
     public function getBaseRouteName(): string;
609 730
 
731
+    /**
732
+     * @param AbstractAdmin $childAdmin
733
+     */
610 734
     public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface;
611 735
 
736
+    /**
737
+     * @return void
738
+     */
612 739
     public function addParentAssociationMapping(string $code, string $value): void;
613 740
 
741
+    /**
742
+     * @return RouteGeneratorInterface|null
743
+     */
614 744
     public function getRouteGenerator(): ?RouteGeneratorInterface;
615 745
 
616 746
     /**
617 747
      * Returns the current child admin instance.
748
+     * @return AdminInterface|null
618 749
      */
619 750
     public function getCurrentChildAdmin(): ?self;
620 751
 
@@ -624,11 +755,15 @@  discard block
 block discarded – undo
624 755
      */
625 756
     public function getParentAssociationMapping(): ?string;
626 757
 
758
+    /**
759
+     * @return void
760
+     */
627 761
     public function reorderFormGroup(string $group, array $keys): void;
628 762
 
629 763
     /**
630 764
      * This method is being called by the main admin class and the child class,
631 765
      * the getFormBuilder is only call by the main admin class.
766
+     * @return void
632 767
      */
633 768
     public function defineFormBuilder(FormBuilderInterface $formBuilder): void;
634 769
 }
Please login to merge, or discard this patch.