Completed
Pull Request — master (#6005)
by Javier
02:45
created
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -936,6 +936,7 @@  discard block
 block discarded – undo
936 936
 
937 937
     /**
938 938
      * NEXT_MAJOR: remove this method.
939
+     * @param string $subClass
939 940
      */
940 941
     public function addSubClass($subClass): void
941 942
     {
@@ -1064,6 +1065,9 @@  discard block
 block discarded – undo
1064 1065
         return $this->routeGenerator->hasAdminRoute($this, $name);
1065 1066
     }
1066 1067
 
1068
+    /**
1069
+     * @param string $adminCode
1070
+     */
1067 1071
     public function isCurrentRoute(string $name, ?string $adminCode = null): bool
1068 1072
     {
1069 1073
         if (!$this->hasRequest()) {
@@ -1309,6 +1313,9 @@  discard block
 block discarded – undo
1309 1313
         return $this->baseControllerName;
1310 1314
     }
1311 1315
 
1316
+    /**
1317
+     * @param string $label
1318
+     */
1312 1319
     public function setLabel(?string $label): void
1313 1320
     {
1314 1321
         $this->label = $label;
@@ -1809,6 +1816,7 @@  discard block
 block discarded – undo
1809 1816
      *
1810 1817
      * NEXT_MAJOR: remove this method
1811 1818
      *
1819
+     * @param string $domain
1812 1820
      * @return string the translated string
1813 1821
      *
1814 1822
      * @deprecated since sonata-project/admin-bundle 3.9, to be removed with 4.0
@@ -1989,6 +1997,9 @@  discard block
 block discarded – undo
1989 1997
         return $this->managerType;
1990 1998
     }
1991 1999
 
2000
+    /**
2001
+     * @param string $type
2002
+     */
1992 2003
     public function setManagerType(?string $type): void
1993 2004
     {
1994 2005
         $this->managerType = $type;
@@ -2399,6 +2410,7 @@  discard block
 block discarded – undo
2399 2410
 
2400 2411
     /**
2401 2412
      * {@inheritdoc}
2413
+     * @param boolean $isShown
2402 2414
      */
2403 2415
     final public function showMosaicButton($isShown): void
2404 2416
     {
@@ -2528,6 +2540,7 @@  discard block
 block discarded – undo
2528 2540
      * NEXT_MAJOR: remove this method.
2529 2541
      *
2530 2542
      * @deprecated Use configureTabMenu instead
2543
+     * @param string $action
2531 2544
      */
2532 2545
     protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void
2533 2546
     {
Please login to merge, or discard this patch.
src/Admin/AdminInterface.php 1 patch
Doc Comments   +117 added lines patch added patch discarded remove patch
@@ -37,26 +37,59 @@  discard block
 block discarded – undo
37 37
  */
38 38
 interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface
39 39
 {
40
+    /**
41
+     * @return void
42
+     */
40 43
     public function setMenuFactory(MenuFactoryInterface $menuFactory): void;
41 44
 
45
+    /**
46
+     * @return MenuFactoryInterface
47
+     */
42 48
     public function getMenuFactory(): ?MenuFactoryInterface;
43 49
 
50
+    /**
51
+     * @return void
52
+     */
44 53
     public function setFormContractor(FormContractorInterface $formContractor): void;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function setListBuilder(ListBuilderInterface $listBuilder): void;
47 59
 
60
+    /**
61
+     * @return ListBuilderInterface
62
+     */
48 63
     public function getListBuilder(): ?ListBuilderInterface;
49 64
 
65
+    /**
66
+     * @return void
67
+     */
50 68
     public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void;
51 69
 
70
+    /**
71
+     * @return DatagridBuilderInterface
72
+     */
52 73
     public function getDatagridBuilder(): ?DatagridBuilderInterface;
53 74
 
75
+    /**
76
+     * @return void
77
+     */
54 78
     public function setTranslator(TranslatorInterface $translator): void;
55 79
 
80
+    /**
81
+     * @return TranslatorInterface
82
+     */
56 83
     public function getTranslator(): ?TranslatorInterface;
57 84
 
85
+    /**
86
+     * @return void
87
+     */
58 88
     public function setRequest(Request $request): void;
59 89
 
90
+    /**
91
+     * @return void
92
+     */
60 93
     public function setConfigurationPool(Pool $pool): void;
61 94
 
62 95
     /**
@@ -67,12 +100,19 @@  discard block
 block discarded – undo
67 100
      */
68 101
     public function getClass(): string;
69 102
 
103
+    /**
104
+     * @return void
105
+     */
70 106
     public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void;
71 107
 
108
+    /**
109
+     * @return DatagridInterface|null
110
+     */
72 111
     public function getDatagrid(): ?DatagridInterface;
73 112
 
74 113
     /**
75 114
      * Set base controller name.
115
+     * @return void
76 116
      */
77 117
     public function setBaseControllerName(string $baseControllerName): void;
78 118
 
@@ -83,6 +123,7 @@  discard block
 block discarded – undo
83 123
 
84 124
     /**
85 125
      * Sets a list of templates.
126
+     * @return void
86 127
      */
87 128
     public function setTemplates(array $templates): void;
88 129
 
@@ -91,9 +132,13 @@  discard block
 block discarded – undo
91 132
      *
92 133
      * @param string $name
93 134
      * @param string $template
135
+     * @return void
94 136
      */
95 137
     public function setTemplate($name, $template): void;
96 138
 
139
+    /**
140
+     * @return ModelManagerInterface
141
+     */
97 142
     public function getModelManager(): ?ModelManagerInterface;
98 143
 
99 144
     /**
@@ -113,6 +158,7 @@  discard block
 block discarded – undo
113 158
 
114 159
     /**
115 160
      * Returns a form depend on the given $object.
161
+     * @return \Symfony\Component\Form\Form|null
116 162
      */
117 163
     public function getForm(): ?FormInterface;
118 164
 
@@ -143,6 +189,9 @@  discard block
 block discarded – undo
143 189
      */
144 190
     public function getSecurityInformation(): array;
145 191
 
192
+    /**
193
+     * @return void
194
+     */
146 195
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void;
147 196
 
148 197
     /**
@@ -184,8 +233,14 @@  discard block
 block discarded – undo
184 233
      */
185 234
     public function hasRoute(string $name): bool;
186 235
 
236
+    /**
237
+     * @return void
238
+     */
187 239
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void;
188 240
 
241
+    /**
242
+     * @return SecurityHandlerInterface
243
+     */
189 244
     public function getSecurityHandler(): ?SecurityHandlerInterface;
190 245
 
191 246
     /**
@@ -204,15 +259,28 @@  discard block
 block discarded – undo
204 259
      * Shorthand method for templating.
205 260
      *
206 261
      * @param object $entity
262
+     * @return string
207 263
      */
208 264
     public function id($entity): ?string;
209 265
 
266
+    /**
267
+     * @return void
268
+     */
210 269
     public function setValidator(ValidatorInterface $validator): void;
211 270
 
271
+    /**
272
+     * @return ValidatorInterface
273
+     */
212 274
     public function getValidator(): ?ValidatorInterface;
213 275
 
276
+    /**
277
+     * @return FieldDescriptionCollection|null
278
+     */
214 279
     public function getShow(): ?FieldDescriptionCollection;
215 280
 
281
+    /**
282
+     * @return void
283
+     */
216 284
     public function setFormTheme(array $formTheme): void;
217 285
 
218 286
     /**
@@ -220,6 +288,9 @@  discard block
 block discarded – undo
220 288
      */
221 289
     public function getFormTheme(): array;
222 290
 
291
+    /**
292
+     * @return void
293
+     */
223 294
     public function setFilterTheme(array $filterTheme): void;
224 295
 
225 296
     /**
@@ -227,6 +298,9 @@  discard block
 block discarded – undo
227 298
      */
228 299
     public function getFilterTheme(): array;
229 300
 
301
+    /**
302
+     * @return void
303
+     */
230 304
     public function addExtension(AdminExtensionInterface $extension): void;
231 305
 
232 306
     /**
@@ -236,8 +310,14 @@  discard block
 block discarded – undo
236 310
      */
237 311
     public function getExtensions(): array;
238 312
 
313
+    /**
314
+     * @return void
315
+     */
239 316
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void;
240 317
 
318
+    /**
319
+     * @return RouteBuilderInterface
320
+     */
241 321
     public function getRouteBuilder(): ?RouteBuilderInterface;
242 322
 
243 323
     /**
@@ -245,8 +325,14 @@  discard block
 block discarded – undo
245 325
      */
246 326
     public function toString($object): string;
247 327
 
328
+    /**
329
+     * @return void
330
+     */
248 331
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void;
249 332
 
333
+    /**
334
+     * @return LabelTranslatorStrategyInterface
335
+     */
250 336
     public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface;
251 337
 
252 338
     /**
@@ -263,6 +349,7 @@  discard block
 block discarded – undo
263 349
 
264 350
     /**
265 351
      * @param string $uniqId
352
+     * @return void
266 353
      */
267 354
     public function setUniqid($uniqId): void;
268 355
 
@@ -285,6 +372,7 @@  discard block
 block discarded – undo
285 372
 
286 373
     /**
287 374
      * @param object|null $subject
375
+     * @return void
288 376
      */
289 377
     public function setSubject($subject): void;
290 378
 
@@ -324,6 +412,7 @@  discard block
 block discarded – undo
324 412
 
325 413
     /**
326 414
      * Call before the batch action, allow you to alter the query and the idx.
415
+     * @return void
327 416
      */
328 417
     public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void;
329 418
 
@@ -346,6 +435,7 @@  discard block
 block discarded – undo
346 435
      *
347 436
      * @deprecated this feature cannot be stable, use a custom validator,
348 437
      *             the feature will be removed with Symfony 2.2
438
+     * @return void
349 439
      */
350 440
     public function validate(ErrorElement $errorElement, $object): void;
351 441
 
@@ -355,11 +445,18 @@  discard block
 block discarded – undo
355 445
      * Add object security, fe. make the current user owner of the object.
356 446
      *
357 447
      * @param object $object
448
+     * @return void
358 449
      */
359 450
     public function createObjectSecurity($object): void;
360 451
 
452
+    /**
453
+     * @return AdminInterface|null
454
+     */
361 455
     public function getParent(): ?self;
362 456
 
457
+    /**
458
+     * @return void
459
+     */
363 460
     public function setParent(self $admin): void;
364 461
 
365 462
     /**
@@ -371,6 +468,7 @@  discard block
 block discarded – undo
371 468
      * Set the translation domain.
372 469
      *
373 470
      * @param string $translationDomain the translation domain
471
+     * @return void
374 472
      */
375 473
     public function setTranslationDomain(string $translationDomain): void;
376 474
 
@@ -390,21 +488,29 @@  discard block
 block discarded – undo
390 488
 
391 489
     /**
392 490
      * Set the form groups.
491
+     * @return void
393 492
      */
394 493
     public function setFormGroups(array $formGroups): void;
395 494
 
396 495
     public function getFormTabs();
397 496
 
497
+    /**
498
+     * @return void
499
+     */
398 500
     public function setFormTabs(array $formTabs): void;
399 501
 
400 502
     public function getShowTabs();
401 503
 
504
+    /**
505
+     * @return void
506
+     */
402 507
     public function setShowTabs(array $showTabs): void;
403 508
 
404 509
     /**
405 510
      * Remove a form group field.
406 511
      *
407 512
      * @param string $key
513
+     * @return void
408 514
      */
409 515
     public function removeFieldFromFormGroup($key): void;
410 516
 
@@ -417,11 +523,13 @@  discard block
 block discarded – undo
417 523
 
418 524
     /**
419 525
      * Set the show groups.
526
+     * @return void
420 527
      */
421 528
     public function setShowGroups(array $showGroups): void;
422 529
 
423 530
     /**
424 531
      * Reorder items in showGroup.
532
+     * @return void
425 533
      */
426 534
     public function reorderShowGroup(string $group, array $keys): void;
427 535
 
@@ -429,6 +537,7 @@  discard block
 block discarded – undo
429 537
      * add a FieldDescription.
430 538
      *
431 539
      * @param string $name
540
+     * @return void
432 541
      */
433 542
     public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription): void;
434 543
 
@@ -436,6 +545,7 @@  discard block
 block discarded – undo
436 545
      * Remove a FieldDescription.
437 546
      *
438 547
      * @param string $name
548
+     * @return void
439 549
      */
440 550
     public function removeFormFieldDescription($name): void;
441 551
 
@@ -453,11 +563,13 @@  discard block
 block discarded – undo
453 563
      * Adds a new class to a list of supported sub classes.
454 564
      *
455 565
      * @param $subClass
566
+     * @return void
456 567
      */
457 568
     public function addSubClass($subClass): void;
458 569
 
459 570
     /**
460 571
      * Sets the list of supported sub classes.
572
+     * @return void
461 573
      */
462 574
     public function setSubClasses(array $subClasses): void;
463 575
 
@@ -496,6 +608,7 @@  discard block
 block discarded – undo
496 608
 
497 609
     /**
498 610
      * Returns Admin`s label.
611
+     * @return string
499 612
      */
500 613
     public function getLabel(): ?string;
501 614
 
@@ -510,6 +623,7 @@  discard block
 block discarded – undo
510 623
 
511 624
     /**
512 625
      * Set the current child status.
626
+     * @return void
513 627
      */
514 628
     public function setCurrentChild(bool $currentChild): void;
515 629
 
@@ -535,6 +649,7 @@  discard block
 block discarded – undo
535 649
 
536 650
     /**
537 651
      * @param string $mode
652
+     * @return void
538 653
      */
539 654
     public function setListMode($mode): void;
540 655
 
@@ -560,12 +675,14 @@  discard block
 block discarded – undo
560 675
 
561 676
     /**
562 677
      * Returns the result link for an object.
678
+     * @return string|null
563 679
      */
564 680
     public function getSearchResultLink(object $object): ?string;
565 681
 
566 682
     /**
567 683
      * Setting to true will enable mosaic button for the admin screen.
568 684
      * Setting to false will hide mosaic button for the admin screen.
685
+     * @return void
569 686
      */
570 687
     public function showMosaicButton(bool $isShown): void;
571 688
 
Please login to merge, or discard this patch.