@@ -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())) { |
@@ -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) |
@@ -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 |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | /** |
| 273 | 273 | * render a view element. |
| 274 | 274 | * |
| 275 | - * @param object $object |
|
| 275 | + * @param \stdClass $object |
|
| 276 | 276 | * |
| 277 | 277 | * @return string |
| 278 | 278 | */ |
@@ -311,8 +311,8 @@ discard block |
||
| 311 | 311 | /** |
| 312 | 312 | * render a compared view element. |
| 313 | 313 | * |
| 314 | - * @param mixed $baseObject |
|
| 315 | - * @param mixed $compareObject |
|
| 314 | + * @param \stdClass $baseObject |
|
| 315 | + * @param \stdClass $compareObject |
|
| 316 | 316 | * |
| 317 | 317 | * @return string |
| 318 | 318 | */ |
@@ -433,7 +433,8 @@ discard block |
||
| 433 | 433 | /** |
| 434 | 434 | * Get the identifiers as a string that is safe to use in a url. |
| 435 | 435 | * |
| 436 | - * @param object $model |
|
| 436 | + * @param \stdClass $model |
|
| 437 | + * @param AdminInterface $admin |
|
| 437 | 438 | * |
| 438 | 439 | * @return string string representation of the id that is safe to use in a url |
| 439 | 440 | */ |
@@ -455,7 +456,7 @@ discard block |
||
| 455 | 456 | } |
| 456 | 457 | |
| 457 | 458 | /** |
| 458 | - * @return string|bool |
|
| 459 | + * @return string|false |
|
| 459 | 460 | */ |
| 460 | 461 | public function getXEditableType($type) |
| 461 | 462 | { |
@@ -21,10 +21,19 @@ discard block |
||
| 21 | 21 | { |
| 22 | 22 | public function getTitle(): string; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @return string|null |
|
| 26 | + */ |
|
| 24 | 27 | public function getDescription(): ?string; |
| 25 | 28 | |
| 29 | + /** |
|
| 30 | + * @return string|null |
|
| 31 | + */ |
|
| 26 | 32 | public function getImage(): ?string; |
| 27 | 33 | |
| 34 | + /** |
|
| 35 | + * @return string|null |
|
| 36 | + */ |
|
| 28 | 37 | public function getDomain(): ?string; |
| 29 | 38 | |
| 30 | 39 | /** |
@@ -45,10 +54,19 @@ discard block |
||
| 45 | 54 | { |
| 46 | 55 | public function getTitle(): string; |
| 47 | 56 | |
| 57 | + /** |
|
| 58 | + * @return string|null |
|
| 59 | + */ |
|
| 48 | 60 | public function getDescription(): ?string; |
| 49 | 61 | |
| 62 | + /** |
|
| 63 | + * @return string|null |
|
| 64 | + */ |
|
| 50 | 65 | public function getImage(): ?string; |
| 51 | 66 | |
| 67 | + /** |
|
| 68 | + * @return string|null |
|
| 69 | + */ |
|
| 52 | 70 | public function getDomain(): ?string; |
| 53 | 71 | |
| 54 | 72 | /** |