@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | */ |
51 | 51 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
52 | 52 | { |
53 | + /** |
|
54 | + * @return void |
|
55 | + */ |
|
53 | 56 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
54 | 57 | |
55 | 58 | /** |
@@ -57,8 +60,14 @@ discard block |
||
57 | 60 | */ |
58 | 61 | public function getMenuFactory(); |
59 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
60 | 66 | public function setFormContractor(FormContractorInterface $formContractor); |
61 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
62 | 71 | public function setListBuilder(ListBuilderInterface $listBuilder); |
63 | 72 | |
64 | 73 | /** |
@@ -66,6 +75,9 @@ discard block |
||
66 | 75 | */ |
67 | 76 | public function getListBuilder(); |
68 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
69 | 81 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
70 | 82 | |
71 | 83 | /** |
@@ -73,6 +85,9 @@ discard block |
||
73 | 85 | */ |
74 | 86 | public function getDatagridBuilder(); |
75 | 87 | |
88 | + /** |
|
89 | + * @return void |
|
90 | + */ |
|
76 | 91 | public function setTranslator(TranslatorInterface $translator); |
77 | 92 | |
78 | 93 | /** |
@@ -80,8 +95,14 @@ discard block |
||
80 | 95 | */ |
81 | 96 | public function getTranslator(); |
82 | 97 | |
98 | + /** |
|
99 | + * @return void |
|
100 | + */ |
|
83 | 101 | public function setRequest(Request $request); |
84 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
85 | 106 | public function setConfigurationPool(Pool $pool); |
86 | 107 | |
87 | 108 | /** |
@@ -94,6 +115,9 @@ discard block |
||
94 | 115 | */ |
95 | 116 | public function getClass(); |
96 | 117 | |
118 | + /** |
|
119 | + * @return void |
|
120 | + */ |
|
97 | 121 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
98 | 122 | |
99 | 123 | /** |
@@ -105,6 +129,7 @@ discard block |
||
105 | 129 | * Set base controller name. |
106 | 130 | * |
107 | 131 | * @param string $baseControllerName |
132 | + * @return void |
|
108 | 133 | */ |
109 | 134 | public function setBaseControllerName($baseControllerName); |
110 | 135 | |
@@ -179,6 +204,9 @@ discard block |
||
179 | 204 | */ |
180 | 205 | public function getSecurityInformation(); |
181 | 206 | |
207 | + /** |
|
208 | + * @return void |
|
209 | + */ |
|
182 | 210 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
183 | 211 | |
184 | 212 | /** |
@@ -260,12 +288,13 @@ discard block |
||
260 | 288 | * |
261 | 289 | * @param object $model |
262 | 290 | * |
263 | - * @return mixed |
|
291 | + * @return string |
|
264 | 292 | */ |
265 | 293 | public function id($model); |
266 | 294 | |
267 | 295 | /** |
268 | 296 | * @param ValidatorInterface $validator |
297 | + * @return void |
|
269 | 298 | */ |
270 | 299 | public function setValidator($validator); |
271 | 300 | |
@@ -282,6 +311,9 @@ discard block |
||
282 | 311 | // NEXT_MAJOR: uncomment this method in 4.0 |
283 | 312 | // public function getList(): ?FieldDescriptionCollection; |
284 | 313 | |
314 | + /** |
|
315 | + * @return void |
|
316 | + */ |
|
285 | 317 | public function setFormTheme(array $formTheme); |
286 | 318 | |
287 | 319 | /** |
@@ -289,6 +321,9 @@ discard block |
||
289 | 321 | */ |
290 | 322 | public function getFormTheme(); |
291 | 323 | |
324 | + /** |
|
325 | + * @return void |
|
326 | + */ |
|
292 | 327 | public function setFilterTheme(array $filterTheme); |
293 | 328 | |
294 | 329 | /** |
@@ -296,6 +331,9 @@ discard block |
||
296 | 331 | */ |
297 | 332 | public function getFilterTheme(); |
298 | 333 | |
334 | + /** |
|
335 | + * @return void |
|
336 | + */ |
|
299 | 337 | public function addExtension(AdminExtensionInterface $extension); |
300 | 338 | |
301 | 339 | /** |
@@ -305,6 +343,9 @@ discard block |
||
305 | 343 | */ |
306 | 344 | public function getExtensions(); |
307 | 345 | |
346 | + /** |
|
347 | + * @return void |
|
348 | + */ |
|
308 | 349 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
309 | 350 | |
310 | 351 | /** |
@@ -319,6 +360,9 @@ discard block |
||
319 | 360 | */ |
320 | 361 | public function toString($object); |
321 | 362 | |
363 | + /** |
|
364 | + * @return void |
|
365 | + */ |
|
322 | 366 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
323 | 367 | |
324 | 368 | /** |
@@ -342,6 +386,7 @@ discard block |
||
342 | 386 | |
343 | 387 | /** |
344 | 388 | * @param string $uniqId |
389 | + * @return void |
|
345 | 390 | */ |
346 | 391 | public function setUniqid($uniqId); |
347 | 392 | |
@@ -361,6 +406,7 @@ discard block |
||
361 | 406 | |
362 | 407 | /** |
363 | 408 | * @param object|null $subject |
409 | + * @return void |
|
364 | 410 | */ |
365 | 411 | public function setSubject($subject); |
366 | 412 | |
@@ -398,7 +444,7 @@ discard block |
||
398 | 444 | * |
399 | 445 | * Returns the collection of list FieldDescriptions. |
400 | 446 | * |
401 | - * @return array |
|
447 | + * @return FieldDescriptionInterface[] |
|
402 | 448 | */ |
403 | 449 | public function getListFieldDescriptions(); |
404 | 450 | |
@@ -416,6 +462,9 @@ discard block |
||
416 | 462 | */ |
417 | 463 | public function getDataSourceIterator(); |
418 | 464 | |
465 | + /** |
|
466 | + * @return void |
|
467 | + */ |
|
419 | 468 | public function configure(); |
420 | 469 | |
421 | 470 | /** |
@@ -423,6 +472,7 @@ discard block |
||
423 | 472 | * |
424 | 473 | * @param string $actionName |
425 | 474 | * @param bool $allElements |
475 | + * @return void |
|
426 | 476 | */ |
427 | 477 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
428 | 478 | |
@@ -447,6 +497,7 @@ discard block |
||
447 | 497 | * |
448 | 498 | * @deprecated this feature cannot be stable, use a custom validator, |
449 | 499 | * the feature will be removed with Symfony 2.2 |
500 | + * @return void |
|
450 | 501 | */ |
451 | 502 | public function validate(ErrorElement $errorElement, $object); |
452 | 503 | |
@@ -461,6 +512,7 @@ discard block |
||
461 | 512 | * Add object security, fe. make the current user owner of the object. |
462 | 513 | * |
463 | 514 | * @param object $object |
515 | + * @return void |
|
464 | 516 | */ |
465 | 517 | public function createObjectSecurity($object); |
466 | 518 | |
@@ -469,6 +521,9 @@ discard block |
||
469 | 521 | */ |
470 | 522 | public function getParent(); |
471 | 523 | |
524 | + /** |
|
525 | + * @return void |
|
526 | + */ |
|
472 | 527 | public function setParent(self $admin); |
473 | 528 | |
474 | 529 | /** |
@@ -493,6 +548,7 @@ discard block |
||
493 | 548 | * Set the translation domain. |
494 | 549 | * |
495 | 550 | * @param string $translationDomain the translation domain |
551 | + * @return void |
|
496 | 552 | */ |
497 | 553 | public function setTranslationDomain($translationDomain); |
498 | 554 | |
@@ -514,6 +570,7 @@ discard block |
||
514 | 570 | |
515 | 571 | /** |
516 | 572 | * Set the form groups. |
573 | + * @return void |
|
517 | 574 | */ |
518 | 575 | public function setFormGroups(array $formGroups); |
519 | 576 | |
@@ -522,6 +579,9 @@ discard block |
||
522 | 579 | */ |
523 | 580 | public function getFormTabs(); |
524 | 581 | |
582 | + /** |
|
583 | + * @return void |
|
584 | + */ |
|
525 | 585 | public function setFormTabs(array $formTabs); |
526 | 586 | |
527 | 587 | /** |
@@ -529,12 +589,16 @@ discard block |
||
529 | 589 | */ |
530 | 590 | public function getShowTabs(); |
531 | 591 | |
592 | + /** |
|
593 | + * @return void |
|
594 | + */ |
|
532 | 595 | public function setShowTabs(array $showTabs); |
533 | 596 | |
534 | 597 | /** |
535 | 598 | * Remove a form group field. |
536 | 599 | * |
537 | 600 | * @param string $key |
601 | + * @return void |
|
538 | 602 | */ |
539 | 603 | public function removeFieldFromFormGroup($key); |
540 | 604 | |
@@ -549,6 +613,7 @@ discard block |
||
549 | 613 | |
550 | 614 | /** |
551 | 615 | * Set the show groups. |
616 | + * @return void |
|
552 | 617 | */ |
553 | 618 | public function setShowGroups(array $showGroups); |
554 | 619 | |
@@ -556,6 +621,7 @@ discard block |
||
556 | 621 | * Reorder items in showGroup. |
557 | 622 | * |
558 | 623 | * @param string $group |
624 | + * @return void |
|
559 | 625 | */ |
560 | 626 | public function reorderShowGroup($group, array $keys); |
561 | 627 | |
@@ -565,6 +631,7 @@ discard block |
||
565 | 631 | * add a FieldDescription. |
566 | 632 | * |
567 | 633 | * @param string $name |
634 | + * @return void |
|
568 | 635 | */ |
569 | 636 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
570 | 637 | |
@@ -574,6 +641,7 @@ discard block |
||
574 | 641 | * Remove a FieldDescription. |
575 | 642 | * |
576 | 643 | * @param string $name |
644 | + * @return void |
|
577 | 645 | */ |
578 | 646 | public function removeFormFieldDescription($name); |
579 | 647 | |
@@ -586,6 +654,7 @@ discard block |
||
586 | 654 | |
587 | 655 | /** |
588 | 656 | * Sets the list of supported sub classes. |
657 | + * @return void |
|
589 | 658 | */ |
590 | 659 | public function setSubClasses(array $subClasses); |
591 | 660 | |
@@ -654,6 +723,7 @@ discard block |
||
654 | 723 | * Set the current child status. |
655 | 724 | * |
656 | 725 | * @param bool $currentChild |
726 | + * @return void |
|
657 | 727 | */ |
658 | 728 | public function setCurrentChild($currentChild); |
659 | 729 | |
@@ -703,6 +773,7 @@ discard block |
||
703 | 773 | |
704 | 774 | /** |
705 | 775 | * @param string $mode |
776 | + * @return void |
|
706 | 777 | */ |
707 | 778 | public function setListMode($mode); |
708 | 779 |
@@ -185,6 +185,9 @@ |
||
185 | 185 | return $acls; |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param UserSecurityIdentity $securityIdentity |
|
190 | + */ |
|
188 | 191 | public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null) |
189 | 192 | { |
190 | 193 | if (!$acl instanceof MutableAclInterface) { |