Completed
Pull Request — master (#6267)
by Jordi Sala
03:05
created
src/Admin/AdminInterface.php 1 patch
Doc Comments   +130 added lines patch added patch discarded remove patch
@@ -40,24 +40,54 @@  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(FactoryInterface $menuFactory): void;
44 47
 
48
+    /**
49
+     * @return FactoryInterface
50
+     */
45 51
     public function getMenuFactory(): ?FactoryInterface;
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 void
85
+     */
59 86
     public function setRequest(Request $request): void;
60 87
 
88
+    /**
89
+     * @return void
90
+     */
61 91
     public function setConfigurationPool(Pool $pool): void;
62 92
 
63 93
     /**
@@ -68,12 +98,16 @@  discard block
 block discarded – undo
68 98
      */
69 99
     public function getClass(): string;
70 100
 
101
+    /**
102
+     * @return void
103
+     */
71 104
     public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void;
72 105
 
73 106
     public function getDatagrid(): DatagridInterface;
74 107
 
75 108
     /**
76 109
      * Set base controller name.
110
+     * @return void
77 111
      */
78 112
     public function setBaseControllerName(string $baseControllerName): void;
79 113
 
@@ -84,14 +118,19 @@  discard block
 block discarded – undo
84 118
 
85 119
     /**
86 120
      * Sets a list of templates.
121
+     * @return void
87 122
      */
88 123
     public function setTemplates(array $templates): void;
89 124
 
90 125
     /**
91 126
      * Sets a specific template.
127
+     * @return void
92 128
      */
93 129
     public function setTemplate(string $name, string $template): void;
94 130
 
131
+    /**
132
+     * @return ModelManagerInterface
133
+     */
95 134
     public function getModelManager(): ?ModelManagerInterface;
96 135
 
97 136
     /**
@@ -108,6 +147,7 @@  discard block
 block discarded – undo
108 147
 
109 148
     /**
110 149
      * Returns a form depend on the given $object.
150
+     * @return FormInterface|null
111 151
      */
112 152
     public function getForm(): ?FormInterface;
113 153
 
@@ -133,6 +173,9 @@  discard block
 block discarded – undo
133 173
      */
134 174
     public function getSecurityInformation(): array;
135 175
 
176
+    /**
177
+     * @return void
178
+     */
136 179
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void;
137 180
 
138 181
     public function getParentFieldDescription(): FieldDescriptionInterface;
@@ -152,8 +195,14 @@  discard block
 block discarded – undo
152 195
      */
153 196
     public function hasRoute(string $name): bool;
154 197
 
198
+    /**
199
+     * @return void
200
+     */
155 201
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void;
156 202
 
203
+    /**
204
+     * @return SecurityHandlerInterface
205
+     */
157 206
     public function getSecurityHandler(): ?SecurityHandlerInterface;
158 207
 
159 208
     /**
@@ -172,17 +221,33 @@  discard block
 block discarded – undo
172 221
      * Shorthand method for templating.
173 222
      *
174 223
      * @param object $model
224
+     * @return string
175 225
      */
176 226
     public function id($model): ?string;
177 227
 
228
+    /**
229
+     * @return void
230
+     */
178 231
     public function setValidator(ValidatorInterface $validator): void;
179 232
 
233
+    /**
234
+     * @return ValidatorInterface
235
+     */
180 236
     public function getValidator(): ?ValidatorInterface;
181 237
 
238
+    /**
239
+     * @return FieldDescriptionCollection|null
240
+     */
182 241
     public function getShow(): ?FieldDescriptionCollection;
183 242
 
243
+    /**
244
+     * @return void
245
+     */
184 246
     public function setFormTheme(array $formTheme): void;
185 247
 
248
+    /**
249
+     * @return FieldDescriptionCollection|null
250
+     */
186 251
     public function getList(): ?FieldDescriptionCollection;
187 252
 
188 253
     /**
@@ -190,6 +255,9 @@  discard block
 block discarded – undo
190 255
      */
191 256
     public function getFormTheme(): array;
192 257
 
258
+    /**
259
+     * @return void
260
+     */
193 261
     public function setFilterTheme(array $filterTheme): void;
194 262
 
195 263
     /**
@@ -197,6 +265,9 @@  discard block
 block discarded – undo
197 265
      */
198 266
     public function getFilterTheme(): array;
199 267
 
268
+    /**
269
+     * @return void
270
+     */
200 271
     public function addExtension(AdminExtensionInterface $extension): void;
201 272
 
202 273
     /**
@@ -206,8 +277,14 @@  discard block
 block discarded – undo
206 277
      */
207 278
     public function getExtensions(): array;
208 279
 
280
+    /**
281
+     * @return void
282
+     */
209 283
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void;
210 284
 
285
+    /**
286
+     * @return RouteBuilderInterface
287
+     */
211 288
     public function getRouteBuilder(): ?RouteBuilderInterface;
212 289
 
213 290
     /**
@@ -215,8 +292,14 @@  discard block
 block discarded – undo
215 292
      */
216 293
     public function toString($object): string;
217 294
 
295
+    /**
296
+     * @return void
297
+     */
218 298
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void;
219 299
 
300
+    /**
301
+     * @return LabelTranslatorStrategyInterface
302
+     */
220 303
     public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface;
221 304
 
222 305
     /**
@@ -228,6 +311,9 @@  discard block
 block discarded – undo
228 311
 
229 312
     public function getNewInstance(): object;
230 313
 
314
+    /**
315
+     * @return void
316
+     */
231 317
     public function setUniqid(string $uniqId): void;
232 318
 
233 319
     /**
@@ -247,6 +333,9 @@  discard block
 block discarded – undo
247 333
      */
248 334
     public function getObject($id): ?object;
249 335
 
336
+    /**
337
+     * @return void
338
+     */
250 339
     public function setSubject(?object $subject): void;
251 340
 
252 341
     public function getSubject(): object;
@@ -270,6 +359,7 @@  discard block
 block discarded – undo
270 359
 
271 360
     /**
272 361
      * Call before the batch action, allow you to alter the query and the idx.
362
+     * @return void
273 363
      */
274 364
     public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void;
275 365
 
@@ -292,6 +382,7 @@  discard block
 block discarded – undo
292 382
      *
293 383
      * @deprecated this feature cannot be stable, use a custom validator,
294 384
      *             the feature will be removed with Symfony 2.2
385
+     * @return void
295 386
      */
296 387
     public function validate(ErrorElement $errorElement, $object): void;
297 388
 
@@ -299,11 +390,15 @@  discard block
 block discarded – undo
299 390
 
300 391
     /**
301 392
      * Add object security, fe. make the current user owner of the object.
393
+     * @return void
302 394
      */
303 395
     public function createObjectSecurity(object $object): void;
304 396
 
305 397
     public function getParent(): self;
306 398
 
399
+    /**
400
+     * @return void
401
+     */
307 402
     public function setParent(self $admin): void;
308 403
 
309 404
     /**
@@ -315,6 +410,7 @@  discard block
 block discarded – undo
315 410
      * Set the translation domain.
316 411
      *
317 412
      * @param string $translationDomain the translation domain
413
+     * @return void
318 414
      */
319 415
     public function setTranslationDomain(string $translationDomain): void;
320 416
 
@@ -334,6 +430,7 @@  discard block
 block discarded – undo
334 430
 
335 431
     /**
336 432
      * Set the form groups.
433
+     * @return void
337 434
      */
338 435
     public function setFormGroups(array $formGroups): void;
339 436
 
@@ -342,6 +439,9 @@  discard block
 block discarded – undo
342 439
      */
343 440
     public function getFormTabs(): array;
344 441
 
442
+    /**
443
+     * @return void
444
+     */
345 445
     public function setFormTabs(array $formTabs): void;
346 446
 
347 447
     /**
@@ -349,10 +449,14 @@  discard block
 block discarded – undo
349 449
      */
350 450
     public function getShowTabs(): array;
351 451
 
452
+    /**
453
+     * @return void
454
+     */
352 455
     public function setShowTabs(array $showTabs): void;
353 456
 
354 457
     /**
355 458
      * Remove a form group field.
459
+     * @return void
356 460
      */
357 461
     public function removeFieldFromFormGroup(string $key): void;
358 462
 
@@ -365,11 +469,13 @@  discard block
 block discarded – undo
365 469
 
366 470
     /**
367 471
      * Set the show groups.
472
+     * @return void
368 473
      */
369 474
     public function setShowGroups(array $showGroups): void;
370 475
 
371 476
     /**
372 477
      * Reorder items in showGroup.
478
+     * @return void
373 479
      */
374 480
     public function reorderShowGroup(string $group, array $keys): void;
375 481
 
@@ -385,6 +491,7 @@  discard block
 block discarded – undo
385 491
 
386 492
     /**
387 493
      * Sets the list of supported sub classes.
494
+     * @return void
388 495
      */
389 496
     public function setSubClasses(array $subClasses): void;
390 497
 
@@ -423,6 +530,7 @@  discard block
 block discarded – undo
423 530
 
424 531
     /**
425 532
      * Returns Admin`s label.
533
+     * @return string
426 534
      */
427 535
     public function getLabel(): ?string;
428 536
 
@@ -437,6 +545,7 @@  discard block
 block discarded – undo
437 545
 
438 546
     /**
439 547
      * Set the current child status.
548
+     * @return void
440 549
      */
441 550
     public function setCurrentChild(bool $currentChild): void;
442 551
 
@@ -460,6 +569,9 @@  discard block
 block discarded – undo
460 569
      */
461 570
     public function getListModes(): array;
462 571
 
572
+    /**
573
+     * @return void
574
+     */
463 575
     public function setListMode(string $mode): void;
464 576
 
465 577
     /**
@@ -484,12 +596,14 @@  discard block
 block discarded – undo
484 596
 
485 597
     /**
486 598
      * Returns the result link for an object.
599
+     * @return string|null
487 600
      */
488 601
     public function getSearchResultLink(object $object): ?string;
489 602
 
490 603
     /**
491 604
      * Setting to true will enable mosaic button for the admin screen.
492 605
      * Setting to false will hide mosaic button for the admin screen.
606
+     * @return void
493 607
      */
494 608
     public function showMosaicButton(bool $isShown): void;
495 609
 
@@ -510,6 +624,9 @@  discard block
 block discarded – undo
510 624
      */
511 625
     public function getRootCode(): string;
512 626
 
627
+    /**
628
+     * @return void
629
+     */
513 630
     public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void;
514 631
 
515 632
     /**
@@ -522,10 +639,19 @@  discard block
 block discarded – undo
522 639
      */
523 640
     public function getBaseRouteName(): string;
524 641
 
642
+    /**
643
+     * @param AbstractAdmin $childAdmin
644
+     */
525 645
     public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface;
526 646
 
647
+    /**
648
+     * @return void
649
+     */
527 650
     public function addParentAssociationMapping(string $code, string $value): void;
528 651
 
652
+    /**
653
+     * @return RouteGeneratorInterface|null
654
+     */
529 655
     public function getRouteGenerator(): ?RouteGeneratorInterface;
530 656
 
531 657
     /**
@@ -539,11 +665,15 @@  discard block
 block discarded – undo
539 665
      */
540 666
     public function getParentAssociationMapping(): ?string;
541 667
 
668
+    /**
669
+     * @return void
670
+     */
542 671
     public function reorderFormGroup(string $group, array $keys): void;
543 672
 
544 673
     /**
545 674
      * This method is being called by the main admin class and the child class,
546 675
      * the getFormBuilder is only call by the main admin class.
676
+     * @return void
547 677
      */
548 678
     public function defineFormBuilder(FormBuilderInterface $formBuilder): void;
549 679
 }
Please login to merge, or discard this patch.
src/Form/ChoiceList/ModelChoiceLoader.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -72,6 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * @param mixed    $query
74 74
      * @param object[] $choices
75
+     * @param PropertyAccessorInterface $propertyAccessor
75 76
      */
76 77
     public function __construct(
77 78
         ModelManagerInterface $modelManager,
Please login to merge, or discard this patch.