@@ -42,6 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * @deprecated since version 3.31. Pass a RequestStack to the constructor instead. |
44 | 44 | * |
45 | + * @param Request $request |
|
45 | 46 | * @return $this |
46 | 47 | */ |
47 | 48 | public function setRequest($request) |
@@ -295,7 +295,7 @@ |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | /** |
298 | - * @return array |
|
298 | + * @return string[] |
|
299 | 299 | */ |
300 | 300 | public function getAdminServiceIds() |
301 | 301 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * render a list element from the FieldDescription. |
128 | 128 | * |
129 | - * @param mixed $object |
|
129 | + * @param \stdClass $object |
|
130 | 130 | * @param array $params |
131 | 131 | * |
132 | 132 | * @return string |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * render a view element. |
224 | 224 | * |
225 | - * @param mixed $object |
|
225 | + * @param \stdClass $object |
|
226 | 226 | * |
227 | 227 | * @return string |
228 | 228 | */ |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | /** |
360 | 360 | * Get the identifiers as a string that is safe to use in a url. |
361 | 361 | * |
362 | - * @param object $model |
|
362 | + * @param \stdClass $model |
|
363 | 363 | * |
364 | 364 | * @return string string representation of the id that is safe to use in a url |
365 | 365 | */ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } |
382 | 382 | |
383 | 383 | /** |
384 | - * @return string|bool |
|
384 | + * @return string|false |
|
385 | 385 | */ |
386 | 386 | public function getXEditableType($type) |
387 | 387 | { |
@@ -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; |
@@ -39,6 +39,9 @@ |
||
39 | 39 | $this->environment = new \Twig_Environment($loader, ['strict_variables' => true]); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @return string |
|
44 | + */ |
|
42 | 45 | abstract protected function getTemplate(); |
43 | 46 | |
44 | 47 | protected function getTranslator() |
@@ -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 | /** |
@@ -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); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @param string $code |
73 | 73 | * @param string $action |
74 | - * @param array $parameters |
|
74 | + * @param string[] $parameters |
|
75 | 75 | * @param int $absolute |
76 | 76 | * |
77 | 77 | * @return string |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * @param string $code |
88 | 88 | * @param string $action |
89 | - * @param mixed $object |
|
90 | - * @param array $parameters |
|
89 | + * @param string $object |
|
90 | + * @param string[] $parameters |
|
91 | 91 | * @param int $absolute |
92 | 92 | * |
93 | 93 | * @return string |
@@ -99,6 +99,10 @@ discard block |
||
99 | 99 | return $this->getAdminPool()->getAdminByAdminCode($code)->generateObjectUrl($action, $object, $parameters, $absolute); |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param string $code |
|
104 | + * @param string $action |
|
105 | + */ |
|
102 | 106 | private function getCodeAction($code, $action): array |
103 | 107 | { |
104 | 108 | if ($pipe = strpos($code, '|')) { |
@@ -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); |