Completed
Pull Request — master (#6304)
by Vincent
02:42
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,6 +98,9 @@  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;
@@ -76,6 +109,7 @@  discard block
 block discarded – undo
76 109
 
77 110
     /**
78 111
      * Set base controller name.
112
+     * @return void
79 113
      */
80 114
     public function setBaseControllerName(string $baseControllerName): void;
81 115
 
@@ -86,14 +120,19 @@  discard block
 block discarded – undo
86 120
 
87 121
     /**
88 122
      * Sets a list of templates.
123
+     * @return void
89 124
      */
90 125
     public function setTemplates(array $templates): void;
91 126
 
92 127
     /**
93 128
      * Sets a specific template.
129
+     * @return void
94 130
      */
95 131
     public function setTemplate(string $name, string $template): void;
96 132
 
133
+    /**
134
+     * @return ModelManagerInterface
135
+     */
97 136
     public function getModelManager(): ?ModelManagerInterface;
98 137
 
99 138
     /**
@@ -110,6 +149,7 @@  discard block
 block discarded – undo
110 149
 
111 150
     /**
112 151
      * Returns a form depend on the given $object.
152
+     * @return FormInterface|null
113 153
      */
114 154
     public function getForm(): ?FormInterface;
115 155
 
@@ -135,6 +175,9 @@  discard block
 block discarded – undo
135 175
      */
136 176
     public function getSecurityInformation(): array;
137 177
 
178
+    /**
179
+     * @return void
180
+     */
138 181
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void;
139 182
 
140 183
     /**
@@ -159,8 +202,14 @@  discard block
 block discarded – undo
159 202
      */
160 203
     public function hasRoute(string $name): bool;
161 204
 
205
+    /**
206
+     * @return void
207
+     */
162 208
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void;
163 209
 
210
+    /**
211
+     * @return SecurityHandlerInterface
212
+     */
164 213
     public function getSecurityHandler(): ?SecurityHandlerInterface;
165 214
 
166 215
     /**
@@ -175,14 +224,29 @@  discard block
 block discarded – undo
175 224
 
176 225
     public function id(object $model): string;
177 226
 
227
+    /**
228
+     * @return void
229
+     */
178 230
     public function setValidator(ValidatorInterface $validator): void;
179 231
 
232
+    /**
233
+     * @return ValidatorInterface
234
+     */
180 235
     public function getValidator(): ?ValidatorInterface;
181 236
 
237
+    /**
238
+     * @return FieldDescriptionCollection|null
239
+     */
182 240
     public function getShow(): ?FieldDescriptionCollection;
183 241
 
242
+    /**
243
+     * @return void
244
+     */
184 245
     public function setFormTheme(array $formTheme): void;
185 246
 
247
+    /**
248
+     * @return FieldDescriptionCollection|null
249
+     */
186 250
     public function getList(): ?FieldDescriptionCollection;
187 251
 
188 252
     /**
@@ -190,6 +254,9 @@  discard block
 block discarded – undo
190 254
      */
191 255
     public function getFormTheme(): array;
192 256
 
257
+    /**
258
+     * @return void
259
+     */
193 260
     public function setFilterTheme(array $filterTheme): void;
194 261
 
195 262
     /**
@@ -197,6 +264,9 @@  discard block
 block discarded – undo
197 264
      */
198 265
     public function getFilterTheme(): array;
199 266
 
267
+    /**
268
+     * @return void
269
+     */
200 270
     public function addExtension(AdminExtensionInterface $extension): void;
201 271
 
202 272
     /**
@@ -206,14 +276,26 @@  discard block
 block discarded – undo
206 276
      */
207 277
     public function getExtensions(): array;
208 278
 
279
+    /**
280
+     * @return void
281
+     */
209 282
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void;
210 283
 
284
+    /**
285
+     * @return RouteBuilderInterface
286
+     */
211 287
     public function getRouteBuilder(): ?RouteBuilderInterface;
212 288
 
213 289
     public function toString(object $object): string;
214 290
 
291
+    /**
292
+     * @return void
293
+     */
215 294
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void;
216 295
 
296
+    /**
297
+     * @return LabelTranslatorStrategyInterface
298
+     */
217 299
     public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface;
218 300
 
219 301
     /**
@@ -225,6 +307,9 @@  discard block
 block discarded – undo
225 307
 
226 308
     public function getNewInstance(): object;
227 309
 
310
+    /**
311
+     * @return void
312
+     */
228 313
     public function setUniqid(string $uniqId): void;
229 314
 
230 315
     /**
@@ -244,6 +329,9 @@  discard block
 block discarded – undo
244 329
      */
245 330
     public function getObject($id): ?object;
246 331
 
332
+    /**
333
+     * @return void
334
+     */
247 335
     public function setSubject(?object $subject): void;
248 336
 
249 337
     public function getSubject(): object;
@@ -267,6 +355,7 @@  discard block
 block discarded – undo
267 355
 
268 356
     /**
269 357
      * Call before the batch action, allow you to alter the query and the idx.
358
+     * @return void
270 359
      */
271 360
     public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void;
272 361
 
@@ -289,6 +378,7 @@  discard block
 block discarded – undo
289 378
      *
290 379
      * @deprecated this feature cannot be stable, use a custom validator,
291 380
      *             the feature will be removed with Symfony 2.2
381
+     * @return void
292 382
      */
293 383
     public function validate(ErrorElement $errorElement, $object): void;
294 384
 
@@ -296,11 +386,15 @@  discard block
 block discarded – undo
296 386
 
297 387
     /**
298 388
      * Add object security, fe. make the current user owner of the object.
389
+     * @return void
299 390
      */
300 391
     public function createObjectSecurity(object $object): void;
301 392
 
302 393
     public function getParent(): self;
303 394
 
395
+    /**
396
+     * @return void
397
+     */
304 398
     public function setParent(self $admin): void;
305 399
 
306 400
     /**
@@ -312,6 +406,7 @@  discard block
 block discarded – undo
312 406
      * Set the translation domain.
313 407
      *
314 408
      * @param string $translationDomain the translation domain
409
+     * @return void
315 410
      */
316 411
     public function setTranslationDomain(string $translationDomain): void;
317 412
 
@@ -331,6 +426,7 @@  discard block
 block discarded – undo
331 426
 
332 427
     /**
333 428
      * Set the form groups.
429
+     * @return void
334 430
      */
335 431
     public function setFormGroups(array $formGroups): void;
336 432
 
@@ -339,6 +435,9 @@  discard block
 block discarded – undo
339 435
      */
340 436
     public function getFormTabs(): array;
341 437
 
438
+    /**
439
+     * @return void
440
+     */
342 441
     public function setFormTabs(array $formTabs): void;
343 442
 
344 443
     /**
@@ -346,10 +445,14 @@  discard block
 block discarded – undo
346 445
      */
347 446
     public function getShowTabs(): array;
348 447
 
448
+    /**
449
+     * @return void
450
+     */
349 451
     public function setShowTabs(array $showTabs): void;
350 452
 
351 453
     /**
352 454
      * Remove a form group field.
455
+     * @return void
353 456
      */
354 457
     public function removeFieldFromFormGroup(string $key): void;
355 458
 
@@ -362,11 +465,13 @@  discard block
 block discarded – undo
362 465
 
363 466
     /**
364 467
      * Set the show groups.
468
+     * @return void
365 469
      */
366 470
     public function setShowGroups(array $showGroups): void;
367 471
 
368 472
     /**
369 473
      * Reorder items in showGroup.
474
+     * @return void
370 475
      */
371 476
     public function reorderShowGroup(string $group, array $keys): void;
372 477
 
@@ -382,6 +487,7 @@  discard block
 block discarded – undo
382 487
 
383 488
     /**
384 489
      * Sets the list of supported sub classes.
490
+     * @return void
385 491
      */
386 492
     public function setSubClasses(array $subClasses): void;
387 493
 
@@ -420,6 +526,7 @@  discard block
 block discarded – undo
420 526
 
421 527
     /**
422 528
      * Returns Admin`s label.
529
+     * @return string
423 530
      */
424 531
     public function getLabel(): ?string;
425 532
 
@@ -434,6 +541,7 @@  discard block
 block discarded – undo
434 541
 
435 542
     /**
436 543
      * Set the current child status.
544
+     * @return void
437 545
      */
438 546
     public function setCurrentChild(bool $currentChild): void;
439 547
 
@@ -454,6 +562,9 @@  discard block
 block discarded – undo
454 562
      */
455 563
     public function getListModes(): array;
456 564
 
565
+    /**
566
+     * @return void
567
+     */
457 568
     public function setListMode(string $mode): void;
458 569
 
459 570
     /**
@@ -478,12 +589,14 @@  discard block
 block discarded – undo
478 589
 
479 590
     /**
480 591
      * Returns the result link for an object.
592
+     * @return string|null
481 593
      */
482 594
     public function getSearchResultLink(object $object): ?string;
483 595
 
484 596
     /**
485 597
      * Setting to true will enable mosaic button for the admin screen.
486 598
      * Setting to false will hide mosaic button for the admin screen.
599
+     * @return void
487 600
      */
488 601
     public function showMosaicButton(bool $isShown): void;
489 602
 
@@ -504,6 +617,9 @@  discard block
 block discarded – undo
504 617
      */
505 618
     public function getRootCode(): string;
506 619
 
620
+    /**
621
+     * @return void
622
+     */
507 623
     public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void;
508 624
 
509 625
     /**
@@ -516,14 +632,24 @@  discard block
 block discarded – undo
516 632
      */
517 633
     public function getBaseRouteName(): string;
518 634
 
635
+    /**
636
+     * @param AbstractAdmin $childAdmin
637
+     */
519 638
     public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface;
520 639
 
640
+    /**
641
+     * @return void
642
+     */
521 643
     public function addParentAssociationMapping(string $code, string $value): void;
522 644
 
645
+    /**
646
+     * @return RouteGeneratorInterface|null
647
+     */
523 648
     public function getRouteGenerator(): ?RouteGeneratorInterface;
524 649
 
525 650
     /**
526 651
      * Returns the current child admin instance.
652
+     * @return AdminInterface|null
527 653
      */
528 654
     public function getCurrentChildAdmin(): ?self;
529 655
 
@@ -533,11 +659,15 @@  discard block
 block discarded – undo
533 659
      */
534 660
     public function getParentAssociationMapping(): ?string;
535 661
 
662
+    /**
663
+     * @return void
664
+     */
536 665
     public function reorderFormGroup(string $group, array $keys): void;
537 666
 
538 667
     /**
539 668
      * This method is being called by the main admin class and the child class,
540 669
      * the getFormBuilder is only call by the main admin class.
670
+     * @return void
541 671
      */
542 672
     public function defineFormBuilder(FormBuilderInterface $formBuilder): void;
543 673
 }
Please login to merge, or discard this patch.