@@ -1040,6 +1040,7 @@ discard block |
||
| 1040 | 1040 | |
| 1041 | 1041 | /** |
| 1042 | 1042 | * NEXT_MAJOR: remove this method. |
| 1043 | + * @param string $subClass |
|
| 1043 | 1044 | */ |
| 1044 | 1045 | public function addSubClass($subClass) |
| 1045 | 1046 | { |
@@ -2378,7 +2379,7 @@ discard block |
||
| 2378 | 2379 | * |
| 2379 | 2380 | * @param string $context |
| 2380 | 2381 | * |
| 2381 | - * @return array |
|
| 2382 | + * @return string[] |
|
| 2382 | 2383 | */ |
| 2383 | 2384 | public function getPermissionsShow($context) |
| 2384 | 2385 | { |
@@ -2949,6 +2950,7 @@ discard block |
||
| 2949 | 2950 | * NEXT_MAJOR: remove this method. |
| 2950 | 2951 | * |
| 2951 | 2952 | * @deprecated Use configureTabMenu instead |
| 2953 | + * @param string $action |
|
| 2952 | 2954 | */ |
| 2953 | 2955 | protected function configureSideMenu(ItemInterface $menu, $action, ?AdminInterface $childAdmin = null) |
| 2954 | 2956 | { |
@@ -87,6 +87,7 @@ discard block |
||
| 87 | 87 | * @param string $title |
| 88 | 88 | * @param string $logoTitle |
| 89 | 89 | * @param array $options |
| 90 | + * @param PropertyAccessorInterface $propertyAccessor |
|
| 90 | 91 | */ |
| 91 | 92 | public function __construct( |
| 92 | 93 | ContainerInterface $container, |
@@ -386,7 +387,7 @@ discard block |
||
| 386 | 387 | } |
| 387 | 388 | |
| 388 | 389 | /** |
| 389 | - * @return array |
|
| 390 | + * @return string[] |
|
| 390 | 391 | */ |
| 391 | 392 | public function getAdminServiceIds() |
| 392 | 393 | { |
@@ -66,6 +66,9 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | private $templateRegistry; |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param ContainerInterface $container |
|
| 71 | + */ |
|
| 69 | 72 | public function setContainer(?ContainerInterface $container = null) |
| 70 | 73 | { |
| 71 | 74 | $this->container = $container; |
@@ -195,7 +198,7 @@ discard block |
||
| 195 | 198 | /** |
| 196 | 199 | * Delete action. |
| 197 | 200 | * |
| 198 | - * @param int|string|null $id |
|
| 201 | + * @param integer|null $id |
|
| 199 | 202 | * |
| 200 | 203 | * @throws NotFoundHttpException If the object does not exist |
| 201 | 204 | * @throws AccessDeniedException If access is not granted |
@@ -791,7 +794,7 @@ discard block |
||
| 791 | 794 | /** |
| 792 | 795 | * View history revision of object. |
| 793 | 796 | * |
| 794 | - * @param int|string|null $id |
|
| 797 | + * @param null|integer $id |
|
| 795 | 798 | * @param string|null $revision |
| 796 | 799 | * |
| 797 | 800 | * @throws AccessDeniedException If access is not granted |
@@ -854,9 +857,9 @@ discard block |
||
| 854 | 857 | /** |
| 855 | 858 | * Compare history revisions of object. |
| 856 | 859 | * |
| 857 | - * @param int|string|null $id |
|
| 858 | - * @param int|string|null $base_revision |
|
| 859 | - * @param int|string|null $compare_revision |
|
| 860 | + * @param null|integer $id |
|
| 861 | + * @param null|integer $base_revision |
|
| 862 | + * @param null|integer $compare_revision |
|
| 860 | 863 | * |
| 861 | 864 | * @throws AccessDeniedException If access is not granted |
| 862 | 865 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -1580,6 +1583,7 @@ discard block |
||
| 1580 | 1583 | |
| 1581 | 1584 | /** |
| 1582 | 1585 | * Sets the admin form theme to form view. Used for compatibility between Symfony versions. |
| 1586 | + * @param string[] $theme |
|
| 1583 | 1587 | */ |
| 1584 | 1588 | private function setFormTheme(FormView $formView, ?array $theme = null): void |
| 1585 | 1589 | { |
@@ -65,6 +65,7 @@ |
||
| 65 | 65 | * @param string|null $property |
| 66 | 66 | * @param mixed|null $query |
| 67 | 67 | * @param array $choices |
| 68 | + * @param PropertyAccessorInterface $propertyAccessor |
|
| 68 | 69 | */ |
| 69 | 70 | public function __construct( |
| 70 | 71 | ModelManagerInterface $modelManager, |
@@ -184,6 +184,9 @@ |
||
| 184 | 184 | return $acls; |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | + /** |
|
| 188 | + * @param UserSecurityIdentity $securityIdentity |
|
| 189 | + */ |
|
| 187 | 190 | public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null) |
| 188 | 191 | { |
| 189 | 192 | if (false === $this->findClassAceIndexByUsername($acl, $securityIdentity->getUsername())) { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | /** |
| 185 | 185 | * render a list element from the FieldDescription. |
| 186 | 186 | * |
| 187 | - * @param object $object |
|
| 187 | + * @param \stdClass $object |
|
| 188 | 188 | * @param array $params |
| 189 | 189 | * |
| 190 | 190 | * @return string |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | /** |
| 266 | 266 | * render a view element. |
| 267 | 267 | * |
| 268 | - * @param object $object |
|
| 268 | + * @param \stdClass $object |
|
| 269 | 269 | * |
| 270 | 270 | * @return string |
| 271 | 271 | */ |
@@ -402,7 +402,8 @@ discard block |
||
| 402 | 402 | /** |
| 403 | 403 | * Get the identifiers as a string that is safe to use in a url. |
| 404 | 404 | * |
| 405 | - * @param object $model |
|
| 405 | + * @param \stdClass $model |
|
| 406 | + * @param AdminInterface $admin |
|
| 406 | 407 | * |
| 407 | 408 | * @return string string representation of the id that is safe to use in a url |
| 408 | 409 | */ |
@@ -424,7 +425,7 @@ discard block |
||
| 424 | 425 | } |
| 425 | 426 | |
| 426 | 427 | /** |
| 427 | - * @return string|bool |
|
| 428 | + * @return string|false |
|
| 428 | 429 | */ |
| 429 | 430 | public function getXEditableType($type) |
| 430 | 431 | { |
@@ -80,6 +80,7 @@ |
||
| 80 | 80 | /** |
| 81 | 81 | * @param object $object |
| 82 | 82 | * @param string $maskBuilderClass |
| 83 | + * @param \Traversable $aclRoles |
|
| 83 | 84 | */ |
| 84 | 85 | public function __construct( |
| 85 | 86 | AdminInterface $admin, |
@@ -38,6 +38,9 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private $request; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param RequestStack $requestStack |
|
| 43 | + */ |
|
| 41 | 44 | public function __construct(?RequestStack $requestStack = null) |
| 42 | 45 | { |
| 43 | 46 | $this->requestStack = $requestStack; |
@@ -46,6 +49,7 @@ discard block |
||
| 46 | 49 | /** |
| 47 | 50 | * @deprecated since sonata-project/admin-bundle 3.31. Pass a RequestStack to the constructor instead. |
| 48 | 51 | * |
| 52 | + * @param Request $request |
|
| 49 | 53 | * @return $this |
| 50 | 54 | */ |
| 51 | 55 | public function setRequest($request) |
@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
| 50 | 50 | { |
| 51 | + /** |
|
| 52 | + * @return void |
|
| 53 | + */ |
|
| 51 | 54 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
| 52 | 55 | |
| 53 | 56 | /** |
@@ -55,8 +58,14 @@ discard block |
||
| 55 | 58 | */ |
| 56 | 59 | public function getMenuFactory(); |
| 57 | 60 | |
| 61 | + /** |
|
| 62 | + * @return void |
|
| 63 | + */ |
|
| 58 | 64 | public function setFormContractor(FormContractorInterface $formContractor); |
| 59 | 65 | |
| 66 | + /** |
|
| 67 | + * @return void |
|
| 68 | + */ |
|
| 60 | 69 | public function setListBuilder(ListBuilderInterface $listBuilder); |
| 61 | 70 | |
| 62 | 71 | /** |
@@ -64,6 +73,9 @@ discard block |
||
| 64 | 73 | */ |
| 65 | 74 | public function getListBuilder(); |
| 66 | 75 | |
| 76 | + /** |
|
| 77 | + * @return void |
|
| 78 | + */ |
|
| 67 | 79 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
| 68 | 80 | |
| 69 | 81 | /** |
@@ -71,6 +83,9 @@ discard block |
||
| 71 | 83 | */ |
| 72 | 84 | public function getDatagridBuilder(); |
| 73 | 85 | |
| 86 | + /** |
|
| 87 | + * @return void |
|
| 88 | + */ |
|
| 74 | 89 | public function setTranslator(TranslatorInterface $translator); |
| 75 | 90 | |
| 76 | 91 | /** |
@@ -78,8 +93,14 @@ discard block |
||
| 78 | 93 | */ |
| 79 | 94 | public function getTranslator(); |
| 80 | 95 | |
| 96 | + /** |
|
| 97 | + * @return void |
|
| 98 | + */ |
|
| 81 | 99 | public function setRequest(Request $request); |
| 82 | 100 | |
| 101 | + /** |
|
| 102 | + * @return void |
|
| 103 | + */ |
|
| 83 | 104 | public function setConfigurationPool(Pool $pool); |
| 84 | 105 | |
| 85 | 106 | /** |
@@ -92,6 +113,9 @@ discard block |
||
| 92 | 113 | */ |
| 93 | 114 | public function getClass(); |
| 94 | 115 | |
| 116 | + /** |
|
| 117 | + * @return void |
|
| 118 | + */ |
|
| 95 | 119 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
| 96 | 120 | |
| 97 | 121 | /** |
@@ -103,6 +127,7 @@ discard block |
||
| 103 | 127 | * Set base controller name. |
| 104 | 128 | * |
| 105 | 129 | * @param string $baseControllerName |
| 130 | + * @return void |
|
| 106 | 131 | */ |
| 107 | 132 | public function setBaseControllerName($baseControllerName); |
| 108 | 133 | |
@@ -177,6 +202,9 @@ discard block |
||
| 177 | 202 | */ |
| 178 | 203 | public function getSecurityInformation(); |
| 179 | 204 | |
| 205 | + /** |
|
| 206 | + * @return void |
|
| 207 | + */ |
|
| 180 | 208 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
| 181 | 209 | |
| 182 | 210 | /** |
@@ -224,6 +252,9 @@ discard block |
||
| 224 | 252 | */ |
| 225 | 253 | public function hasRoute($name); |
| 226 | 254 | |
| 255 | + /** |
|
| 256 | + * @return void |
|
| 257 | + */ |
|
| 227 | 258 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler); |
| 228 | 259 | |
| 229 | 260 | /** |
@@ -251,12 +282,13 @@ discard block |
||
| 251 | 282 | * |
| 252 | 283 | * @param object $entity |
| 253 | 284 | * |
| 254 | - * @return mixed |
|
| 285 | + * @return string |
|
| 255 | 286 | */ |
| 256 | 287 | public function id($entity); |
| 257 | 288 | |
| 258 | 289 | /** |
| 259 | 290 | * @param ValidatorInterface $validator |
| 291 | + * @return void |
|
| 260 | 292 | */ |
| 261 | 293 | public function setValidator($validator); |
| 262 | 294 | |
@@ -270,6 +302,9 @@ discard block |
||
| 270 | 302 | */ |
| 271 | 303 | public function getShow(); |
| 272 | 304 | |
| 305 | + /** |
|
| 306 | + * @return void |
|
| 307 | + */ |
|
| 273 | 308 | public function setFormTheme(array $formTheme); |
| 274 | 309 | |
| 275 | 310 | /** |
@@ -277,6 +312,9 @@ discard block |
||
| 277 | 312 | */ |
| 278 | 313 | public function getFormTheme(); |
| 279 | 314 | |
| 315 | + /** |
|
| 316 | + * @return void |
|
| 317 | + */ |
|
| 280 | 318 | public function setFilterTheme(array $filterTheme); |
| 281 | 319 | |
| 282 | 320 | /** |
@@ -284,6 +322,9 @@ discard block |
||
| 284 | 322 | */ |
| 285 | 323 | public function getFilterTheme(); |
| 286 | 324 | |
| 325 | + /** |
|
| 326 | + * @return void |
|
| 327 | + */ |
|
| 287 | 328 | public function addExtension(AdminExtensionInterface $extension); |
| 288 | 329 | |
| 289 | 330 | /** |
@@ -293,6 +334,9 @@ discard block |
||
| 293 | 334 | */ |
| 294 | 335 | public function getExtensions(); |
| 295 | 336 | |
| 337 | + /** |
|
| 338 | + * @return void |
|
| 339 | + */ |
|
| 296 | 340 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
| 297 | 341 | |
| 298 | 342 | /** |
@@ -307,6 +351,9 @@ discard block |
||
| 307 | 351 | */ |
| 308 | 352 | public function toString($object); |
| 309 | 353 | |
| 354 | + /** |
|
| 355 | + * @return void |
|
| 356 | + */ |
|
| 310 | 357 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
| 311 | 358 | |
| 312 | 359 | /** |
@@ -330,6 +377,7 @@ discard block |
||
| 330 | 377 | |
| 331 | 378 | /** |
| 332 | 379 | * @param string $uniqId |
| 380 | + * @return void |
|
| 333 | 381 | */ |
| 334 | 382 | public function setUniqid($uniqId); |
| 335 | 383 | |
@@ -349,6 +397,7 @@ discard block |
||
| 349 | 397 | |
| 350 | 398 | /** |
| 351 | 399 | * @param object|null $subject |
| 400 | + * @return void |
|
| 352 | 401 | */ |
| 353 | 402 | public function setSubject($subject); |
| 354 | 403 | |
@@ -380,7 +429,7 @@ discard block |
||
| 380 | 429 | /** |
| 381 | 430 | * Returns the collection of list FieldDescriptions. |
| 382 | 431 | * |
| 383 | - * @return array |
|
| 432 | + * @return FieldDescriptionInterface[] |
|
| 384 | 433 | */ |
| 385 | 434 | public function getListFieldDescriptions(); |
| 386 | 435 | |
@@ -398,6 +447,9 @@ discard block |
||
| 398 | 447 | */ |
| 399 | 448 | public function getDataSourceIterator(); |
| 400 | 449 | |
| 450 | + /** |
|
| 451 | + * @return void |
|
| 452 | + */ |
|
| 401 | 453 | public function configure(); |
| 402 | 454 | |
| 403 | 455 | /** |
@@ -405,6 +457,7 @@ discard block |
||
| 405 | 457 | * |
| 406 | 458 | * @param string $actionName |
| 407 | 459 | * @param bool $allElements |
| 460 | + * @return void |
|
| 408 | 461 | */ |
| 409 | 462 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
| 410 | 463 | |
@@ -429,6 +482,7 @@ discard block |
||
| 429 | 482 | * |
| 430 | 483 | * @deprecated this feature cannot be stable, use a custom validator, |
| 431 | 484 | * the feature will be removed with Symfony 2.2 |
| 485 | + * @return void |
|
| 432 | 486 | */ |
| 433 | 487 | public function validate(ErrorElement $errorElement, $object); |
| 434 | 488 | |
@@ -443,6 +497,7 @@ discard block |
||
| 443 | 497 | * Add object security, fe. make the current user owner of the object. |
| 444 | 498 | * |
| 445 | 499 | * @param object $object |
| 500 | + * @return void |
|
| 446 | 501 | */ |
| 447 | 502 | public function createObjectSecurity($object); |
| 448 | 503 | |
@@ -451,6 +506,9 @@ discard block |
||
| 451 | 506 | */ |
| 452 | 507 | public function getParent(); |
| 453 | 508 | |
| 509 | + /** |
|
| 510 | + * @return void |
|
| 511 | + */ |
|
| 454 | 512 | public function setParent(self $admin); |
| 455 | 513 | |
| 456 | 514 | /** |
@@ -475,6 +533,7 @@ discard block |
||
| 475 | 533 | * Set the translation domain. |
| 476 | 534 | * |
| 477 | 535 | * @param string $translationDomain the translation domain |
| 536 | + * @return void |
|
| 478 | 537 | */ |
| 479 | 538 | public function setTranslationDomain($translationDomain); |
| 480 | 539 | |
@@ -496,6 +555,7 @@ discard block |
||
| 496 | 555 | |
| 497 | 556 | /** |
| 498 | 557 | * Set the form groups. |
| 558 | + * @return void |
|
| 499 | 559 | */ |
| 500 | 560 | public function setFormGroups(array $formGroups); |
| 501 | 561 | |
@@ -504,6 +564,9 @@ discard block |
||
| 504 | 564 | */ |
| 505 | 565 | public function getFormTabs(); |
| 506 | 566 | |
| 567 | + /** |
|
| 568 | + * @return void |
|
| 569 | + */ |
|
| 507 | 570 | public function setFormTabs(array $formTabs); |
| 508 | 571 | |
| 509 | 572 | /** |
@@ -511,12 +574,16 @@ discard block |
||
| 511 | 574 | */ |
| 512 | 575 | public function getShowTabs(); |
| 513 | 576 | |
| 577 | + /** |
|
| 578 | + * @return void |
|
| 579 | + */ |
|
| 514 | 580 | public function setShowTabs(array $showTabs); |
| 515 | 581 | |
| 516 | 582 | /** |
| 517 | 583 | * Remove a form group field. |
| 518 | 584 | * |
| 519 | 585 | * @param string $key |
| 586 | + * @return void |
|
| 520 | 587 | */ |
| 521 | 588 | public function removeFieldFromFormGroup($key); |
| 522 | 589 | |
@@ -531,6 +598,7 @@ discard block |
||
| 531 | 598 | |
| 532 | 599 | /** |
| 533 | 600 | * Set the show groups. |
| 601 | + * @return void |
|
| 534 | 602 | */ |
| 535 | 603 | public function setShowGroups(array $showGroups); |
| 536 | 604 | |
@@ -538,6 +606,7 @@ discard block |
||
| 538 | 606 | * Reorder items in showGroup. |
| 539 | 607 | * |
| 540 | 608 | * @param string $group |
| 609 | + * @return void |
|
| 541 | 610 | */ |
| 542 | 611 | public function reorderShowGroup($group, array $keys); |
| 543 | 612 | |
@@ -545,6 +614,7 @@ discard block |
||
| 545 | 614 | * add a FieldDescription. |
| 546 | 615 | * |
| 547 | 616 | * @param string $name |
| 617 | + * @return void |
|
| 548 | 618 | */ |
| 549 | 619 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
| 550 | 620 | |
@@ -552,6 +622,7 @@ discard block |
||
| 552 | 622 | * Remove a FieldDescription. |
| 553 | 623 | * |
| 554 | 624 | * @param string $name |
| 625 | + * @return void |
|
| 555 | 626 | */ |
| 556 | 627 | public function removeFormFieldDescription($name); |
| 557 | 628 | |
@@ -564,6 +635,7 @@ discard block |
||
| 564 | 635 | |
| 565 | 636 | /** |
| 566 | 637 | * Sets the list of supported sub classes. |
| 638 | + * @return void |
|
| 567 | 639 | */ |
| 568 | 640 | public function setSubClasses(array $subClasses); |
| 569 | 641 | |
@@ -632,6 +704,7 @@ discard block |
||
| 632 | 704 | * Set the current child status. |
| 633 | 705 | * |
| 634 | 706 | * @param bool $currentChild |
| 707 | + * @return void |
|
| 635 | 708 | */ |
| 636 | 709 | public function setCurrentChild($currentChild); |
| 637 | 710 | |
@@ -681,6 +754,7 @@ discard block |
||
| 681 | 754 | |
| 682 | 755 | /** |
| 683 | 756 | * @param string $mode |
| 757 | + * @return void |
|
| 684 | 758 | */ |
| 685 | 759 | public function setListMode($mode); |
| 686 | 760 | |