@@ -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); |
@@ -2486,6 +2486,9 @@ |
||
| 2486 | 2486 | return htmlspecialchars(http_build_query($url, '', '&', PHP_QUERY_RFC3986)); |
| 2487 | 2487 | } |
| 2488 | 2488 | |
| 2489 | + /** |
|
| 2490 | + * @param string $privateMethod |
|
| 2491 | + */ |
|
| 2489 | 2492 | private function getMethodAsPublic($privateMethod): \ReflectionMethod |
| 2490 | 2493 | { |
| 2491 | 2494 | $reflection = new \ReflectionMethod('Sonata\AdminBundle\Twig\Extension\SonataAdminExtension', $privateMethod); |
@@ -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); |
@@ -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); |
@@ -165,6 +165,7 @@ |
||
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | 167 | * Set group and label from class name it not set. |
| 168 | + * @param string $name |
|
| 168 | 169 | */ |
| 169 | 170 | private function generateFallback($name): void |
| 170 | 171 | { |
@@ -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() |