@@ -1024,6 +1024,7 @@ discard block |
||
| 1024 | 1024 | |
| 1025 | 1025 | /** |
| 1026 | 1026 | * NEXT_MAJOR: remove this method. |
| 1027 | + * @param string $subClass |
|
| 1027 | 1028 | */ |
| 1028 | 1029 | public function addSubClass($subClass) |
| 1029 | 1030 | { |
@@ -1146,6 +1147,10 @@ discard block |
||
| 1146 | 1147 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1147 | 1148 | } |
| 1148 | 1149 | |
| 1150 | + /** |
|
| 1151 | + * @param string $name |
|
| 1152 | + * @param string $adminCode |
|
| 1153 | + */ |
|
| 1149 | 1154 | public function isCurrentRoute($name, $adminCode = null) |
| 1150 | 1155 | { |
| 1151 | 1156 | if (!$this->hasRequest()) { |
@@ -2291,7 +2296,7 @@ discard block |
||
| 2291 | 2296 | * |
| 2292 | 2297 | * @param string $context |
| 2293 | 2298 | * |
| 2294 | - * @return array |
|
| 2299 | + * @return string[] |
|
| 2295 | 2300 | */ |
| 2296 | 2301 | public function getPermissionsShow($context) |
| 2297 | 2302 | { |
@@ -2596,6 +2601,9 @@ discard block |
||
| 2596 | 2601 | return true; |
| 2597 | 2602 | } |
| 2598 | 2603 | |
| 2604 | + /** |
|
| 2605 | + * @param string $action |
|
| 2606 | + */ |
|
| 2599 | 2607 | public function configureActionButtons($action, $object = null) |
| 2600 | 2608 | { |
| 2601 | 2609 | $list = []; |
@@ -2847,6 +2855,7 @@ discard block |
||
| 2847 | 2855 | /** |
| 2848 | 2856 | * NEXT_MAJOR: remove this method. |
| 2849 | 2857 | * |
| 2858 | + * @param string $action |
|
| 2850 | 2859 | * @return mixed |
| 2851 | 2860 | * |
| 2852 | 2861 | * @deprecated Use configureTabMenu instead |
@@ -68,6 +68,9 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | private $modelManager; |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $projectDirectory |
|
| 73 | + */ |
|
| 71 | 74 | public function __construct($projectDirectory, array $modelManagers = []) |
| 72 | 75 | { |
| 73 | 76 | $this->projectDirectory = $projectDirectory; |
@@ -20,10 +20,19 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function getTitle(): string; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return string|null |
|
| 25 | + */ |
|
| 23 | 26 | public function getDescription(): ?string; |
| 24 | 27 | |
| 28 | + /** |
|
| 29 | + * @return string|null |
|
| 30 | + */ |
|
| 25 | 31 | public function getImage(): ?string; |
| 26 | 32 | |
| 33 | + /** |
|
| 34 | + * @return string|null |
|
| 35 | + */ |
|
| 27 | 36 | public function getDomain(): ?string; |
| 28 | 37 | |
| 29 | 38 | /** |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | { |
| 20 | 20 | protected $metadataClass = null; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $associationMapping |
|
| 24 | + */ |
|
| 22 | 25 | public function setParentAssociationMapping($associationMapping): void |
| 23 | 26 | { |
| 24 | 27 | $this->parentAssociationMapping = $associationMapping; |
@@ -473,6 +473,9 @@ |
||
| 473 | 473 | return $object->{$fieldName}; |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | + /** |
|
| 477 | + * @param string $fieldName |
|
| 478 | + */ |
|
| 476 | 479 | private function cacheFieldGetter($object, ?string $fieldName, string $method, ?string $getter = null) |
| 477 | 480 | { |
| 478 | 481 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -298,6 +298,9 @@ |
||
| 298 | 298 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | + /** |
|
| 302 | + * @param string $field |
|
| 303 | + */ |
|
| 301 | 304 | private function configureFormConfigComplexPropertyArray($field): void |
| 302 | 305 | { |
| 303 | 306 | $form = $this->prophesize(Form::class); |
@@ -212,6 +212,10 @@ |
||
| 212 | 212 | return new FormMapper($contractor->reveal(), $formBuilder, $this->admin->reveal()); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | + /** |
|
| 216 | + * @param string $uniqid |
|
| 217 | + * @param Request $request |
|
| 218 | + */ |
|
| 215 | 219 | private function configureAdmin( |
| 216 | 220 | ?string $uniqid = null, |
| 217 | 221 | ?Request $request = null, |
@@ -341,6 +341,9 @@ |
||
| 341 | 341 | return $containerMock; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $serviceId |
|
| 346 | + */ |
|
| 344 | 347 | private function getItemArray($serviceId): array |
| 345 | 348 | { |
| 346 | 349 | return [ |
@@ -3986,6 +3986,9 @@ |
||
| 3986 | 3986 | ]); |
| 3987 | 3987 | } |
| 3988 | 3988 | |
| 3989 | + /** |
|
| 3990 | + * @param string $domain |
|
| 3991 | + */ |
|
| 3989 | 3992 | private function expectTranslate( |
| 3990 | 3993 | string $id, |
| 3991 | 3994 | array $parameters = [], |