@@ -47,6 +47,8 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @param array<string, mixed> $options |
| 50 | + * @param string $description |
|
| 51 | + * @param string $domain |
|
| 50 | 52 | */ |
| 51 | 53 | public function __construct( |
| 52 | 54 | string $title, |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @return mixed |
|
| 66 | + * @return string |
|
| 67 | 67 | */ |
| 68 | 68 | public function getType() |
| 69 | 69 | { |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @return mixed |
|
| 66 | + * @return string |
|
| 67 | 67 | */ |
| 68 | 68 | public function getType() |
| 69 | 69 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param mixed $name |
| 42 | - * @param mixed $type |
|
| 42 | + * @param null|string $type |
|
| 43 | 43 | * |
| 44 | 44 | * @throws \RuntimeException |
| 45 | 45 | * |
@@ -292,6 +292,10 @@ |
||
| 292 | 292 | $this->assertTrue($this->datagridMapper->has('baz')); |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | + /** |
|
| 296 | + * @param string $name |
|
| 297 | + * @param string $label |
|
| 298 | + */ |
|
| 295 | 299 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 296 | 300 | { |
| 297 | 301 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -286,6 +286,10 @@ |
||
| 286 | 286 | $this->assertTrue($this->listMapper->has('baz')); |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | + /** |
|
| 290 | + * @param string $name |
|
| 291 | + * @param string $label |
|
| 292 | + */ |
|
| 289 | 293 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 290 | 294 | { |
| 291 | 295 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -501,6 +501,10 @@ |
||
| 501 | 501 | $this->admin->setLabelTranslatorStrategy(new NoopLabelTranslatorStrategy()); |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | + /** |
|
| 505 | + * @param string $name |
|
| 506 | + * @param string $label |
|
| 507 | + */ |
|
| 504 | 508 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 505 | 509 | { |
| 506 | 510 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | $this->environment = new Environment($loader, ['strict_variables' => true]); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @return string |
|
| 48 | + */ |
|
| 46 | 49 | abstract protected function getTemplate(); |
| 47 | 50 | |
| 48 | 51 | protected function getTranslator() |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | /** |
| 163 | 163 | * render a list element from the FieldDescription. |
| 164 | 164 | * |
| 165 | - * @param object $object |
|
| 165 | + * @param \stdClass $object |
|
| 166 | 166 | * @param array $params |
| 167 | 167 | * |
| 168 | 168 | * @return string |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | /** |
| 244 | 244 | * render a view element. |
| 245 | 245 | * |
| 246 | - * @param object $object |
|
| 246 | + * @param \stdClass $object |
|
| 247 | 247 | * |
| 248 | 248 | * @return string |
| 249 | 249 | */ |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | /** |
| 381 | 381 | * Get the identifiers as a string that is safe to use in a url. |
| 382 | 382 | * |
| 383 | - * @param object $model |
|
| 383 | + * @param \stdClass $model |
|
| 384 | 384 | * |
| 385 | 385 | * @return string string representation of the id that is safe to use in a url |
| 386 | 386 | */ |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | } |
| 403 | 403 | |
| 404 | 404 | /** |
| 405 | - * @return string|bool |
|
| 405 | + * @return string|false |
|
| 406 | 406 | */ |
| 407 | 407 | public function getXEditableType($type) |
| 408 | 408 | { |