@@ -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 |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * @param string $code |
| 69 | 69 | * @param string $action |
| 70 | - * @param array $parameters |
|
| 70 | + * @param string[] $parameters |
|
| 71 | 71 | * @param int $absolute |
| 72 | 72 | * |
| 73 | 73 | * @return string |
@@ -82,8 +82,8 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * @param string $code |
| 84 | 84 | * @param string $action |
| 85 | - * @param mixed $object |
|
| 86 | - * @param array $parameters |
|
| 85 | + * @param string $object |
|
| 86 | + * @param string[] $parameters |
|
| 87 | 87 | * @param int $absolute |
| 88 | 88 | * |
| 89 | 89 | * @return string |
@@ -96,6 +96,8 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | + * @param string $code |
|
| 100 | + * @param string $action |
|
| 99 | 101 | * @return array |
| 100 | 102 | */ |
| 101 | 103 | private function getCodeAction($code, $action) |
@@ -257,6 +257,9 @@ discard block |
||
| 257 | 257 | return $datagrid; |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $field |
|
| 262 | + */ |
|
| 260 | 263 | private function configureFormConfig($field, $disabled = false) |
| 261 | 264 | { |
| 262 | 265 | $form = $this->prophesize(Form::class); |
@@ -276,6 +279,9 @@ discard block |
||
| 276 | 279 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 277 | 280 | } |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $field |
|
| 284 | + */ |
|
| 279 | 285 | private function configureFormConfigComplexProperty($field) |
| 280 | 286 | { |
| 281 | 287 | $form = $this->prophesize(Form::class); |
@@ -295,6 +301,9 @@ discard block |
||
| 295 | 301 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 296 | 302 | } |
| 297 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $field |
|
| 306 | + */ |
|
| 298 | 307 | private function configureFormConfigComplexPropertyArray($field) |
| 299 | 308 | { |
| 300 | 309 | $form = $this->prophesize(Form::class); |
@@ -257,6 +257,9 @@ discard block |
||
| 257 | 257 | return $datagrid; |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $field |
|
| 262 | + */ |
|
| 260 | 263 | private function configureFormConfig($field, $disabled = false) |
| 261 | 264 | { |
| 262 | 265 | $form = $this->prophesize(Form::class); |
@@ -276,6 +279,9 @@ discard block |
||
| 276 | 279 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 277 | 280 | } |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $field |
|
| 284 | + */ |
|
| 279 | 285 | private function configureFormConfigComplexProperty($field) |
| 280 | 286 | { |
| 281 | 287 | $form = $this->prophesize(Form::class); |
@@ -295,6 +301,9 @@ discard block |
||
| 295 | 301 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
| 296 | 302 | } |
| 297 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $field |
|
| 306 | + */ |
|
| 298 | 307 | private function configureFormConfigComplexPropertyArray($field) |
| 299 | 308 | { |
| 300 | 309 | $form = $this->prophesize(Form::class); |
@@ -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; |