@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | * Create object security, fe. make the current user owner of the object. |
| 45 | 45 | * |
| 46 | 46 | * @param object $object |
| 47 | + * @return void |
|
| 47 | 48 | */ |
| 48 | 49 | public function createObjectSecurity(AdminInterface $admin, $object); |
| 49 | 50 | |
@@ -51,6 +52,7 @@ discard block |
||
| 51 | 52 | * Remove object security. |
| 52 | 53 | * |
| 53 | 54 | * @param object $object |
| 55 | + * @return void |
|
| 54 | 56 | */ |
| 55 | 57 | public function deleteObjectSecurity(AdminInterface $admin, $object); |
| 56 | 58 | } |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | private $templateRegistry; |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param ContainerInterface $container |
|
| 64 | + */ |
|
| 62 | 65 | public function setContainer(?ContainerInterface $container = null): void |
| 63 | 66 | { |
| 64 | 67 | $this->container = $container; |
@@ -71,6 +74,7 @@ discard block |
||
| 71 | 74 | * |
| 72 | 75 | * @param string $view The view name |
| 73 | 76 | * @param array<string, mixed> $parameters An array of parameters to pass to the view |
| 77 | + * @param Response $response |
|
| 74 | 78 | * |
| 75 | 79 | * @return Response A Response instance |
| 76 | 80 | */ |
@@ -713,8 +717,8 @@ discard block |
||
| 713 | 717 | /** |
| 714 | 718 | * Compare history revisions of object. |
| 715 | 719 | * |
| 716 | - * @param int|string|null $baseRevision |
|
| 717 | - * @param int|string|null $compareRevision |
|
| 720 | + * @param null|integer $baseRevision |
|
| 721 | + * @param null|integer $compareRevision |
|
| 718 | 722 | * |
| 719 | 723 | * @throws AccessDeniedException If access is not granted |
| 720 | 724 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -1410,6 +1414,7 @@ discard block |
||
| 1410 | 1414 | |
| 1411 | 1415 | /** |
| 1412 | 1416 | * Sets the admin form theme to form view. Used for compatibility between Symfony versions. |
| 1417 | + * @param string[] $theme |
|
| 1413 | 1418 | */ |
| 1414 | 1419 | private function setFormTheme(FormView $formView, ?array $theme = null): void |
| 1415 | 1420 | { |
@@ -586,6 +586,10 @@ |
||
| 586 | 586 | $this->admin->setShowBuilder(new ShowBuilder()); |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | + /** |
|
| 590 | + * @param string $name |
|
| 591 | + * @param string $label |
|
| 592 | + */ |
|
| 589 | 593 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 590 | 594 | { |
| 591 | 595 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * render a view element. |
| 184 | 184 | * |
| 185 | - * @param object $object |
|
| 185 | + * @param \stdClass $object |
|
| 186 | 186 | * |
| 187 | 187 | * @return string |
| 188 | 188 | */ |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | /** |
| 222 | 222 | * render a compared view element. |
| 223 | 223 | * |
| 224 | - * @param mixed $baseObject |
|
| 225 | - * @param mixed $compareObject |
|
| 224 | + * @param \stdClass $baseObject |
|
| 225 | + * @param \stdClass $compareObject |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -343,7 +343,8 @@ discard block |
||
| 343 | 343 | /** |
| 344 | 344 | * Get the identifiers as a string that is safe to use in a url. |
| 345 | 345 | * |
| 346 | - * @param object $model |
|
| 346 | + * @param \stdClass $model |
|
| 347 | + * @param AdminInterface $admin |
|
| 347 | 348 | * |
| 348 | 349 | * @return string string representation of the id that is safe to use in a url |
| 349 | 350 | */ |
@@ -365,7 +366,7 @@ discard block |
||
| 365 | 366 | } |
| 366 | 367 | |
| 367 | 368 | /** |
| 368 | - * @return string|bool |
|
| 369 | + * @return string|false |
|
| 369 | 370 | */ |
| 370 | 371 | public function getXEditableType($type) |
| 371 | 372 | { |
@@ -414,6 +414,10 @@ |
||
| 414 | 414 | ); |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | + /** |
|
| 418 | + * @param string $name |
|
| 419 | + * @param string $label |
|
| 420 | + */ |
|
| 417 | 421 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 418 | 422 | { |
| 419 | 423 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | return $acls; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param UserSecurityIdentity $securityIdentity |
|
| 187 | + */ |
|
| 185 | 188 | public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void |
| 186 | 189 | { |
| 187 | 190 | if (!$acl instanceof MutableAclInterface) { |
@@ -62,6 +62,9 @@ |
||
| 62 | 62 | $this->baseControllerName = $baseControllerName; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $pattern |
|
| 67 | + */ |
|
| 65 | 68 | public function add( |
| 66 | 69 | string $name, |
| 67 | 70 | ?string $pattern = null, |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | |
| 19 | 19 | class CommentAdmin extends AbstractAdmin |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param string $label |
|
| 23 | + */ |
|
| 21 | 24 | public function setClassnameLabel($label): void |
| 22 | 25 | { |
| 23 | 26 | $this->classnameLabel = $label; |
@@ -52,6 +52,8 @@ |
||
| 52 | 52 | * @param array<string, mixed> $filterOptions |
| 53 | 53 | * @param array<string, mixed>|null $fieldOptions |
| 54 | 54 | * @param array<string, mixed> $fieldDescriptionOptions |
| 55 | + * @param string $type |
|
| 56 | + * @param string $fieldType |
|
| 55 | 57 | * |
| 56 | 58 | * @throws \LogicException |
| 57 | 59 | */ |