@@ -441,6 +441,9 @@ |
||
| 441 | 441 | return $object->{$fieldName}; |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | + /** |
|
| 445 | + * @param string $fieldName |
|
| 446 | + */ |
|
| 444 | 447 | private function cacheFieldGetter($object, ?string $fieldName, string $method, ?string $getter = null): void |
| 445 | 448 | { |
| 446 | 449 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -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); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | interface SecurityHandlerInterface |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | - * @param string|array $attributes |
|
| 24 | + * @param string $attributes |
|
| 25 | 25 | * @param mixed|null $object |
| 26 | 26 | * |
| 27 | 27 | * @return bool |
@@ -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 | } |
@@ -647,6 +647,9 @@ |
||
| 647 | 647 | $this->assertNull($this->pager->getQuery()); |
| 648 | 648 | } |
| 649 | 649 | |
| 650 | + /** |
|
| 651 | + * @param Pager $obj |
|
| 652 | + */ |
|
| 650 | 653 | protected function callMethod($obj, string $name, array $args = []) |
| 651 | 654 | { |
| 652 | 655 | $class = new \ReflectionClass($obj); |
@@ -44,6 +44,9 @@ |
||
| 44 | 44 | $this->environment = new Environment($loader, ['strict_variables' => true]); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @return string |
|
| 49 | + */ |
|
| 47 | 50 | abstract protected function getTemplate(); |
| 48 | 51 | |
| 49 | 52 | protected function getTranslator(): TranslatorInterface |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | 26 | * @param string $questionText |
| 27 | - * @param mixed $default |
|
| 27 | + * @param string $default |
|
| 28 | 28 | * @param callable $validator |
| 29 | 29 | * |
| 30 | 30 | * @return mixed |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function setSortOrder($sortOrder); |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @return array<string, string> |
|
| 59 | + * @return void string> |
|
| 60 | 60 | */ |
| 61 | 61 | public function getSortOrder(); |
| 62 | 62 | |