Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class FormOutputDataTransformer implements DataTransformerInterface |
||
24 | { |
||
25 | private FormViewFactory $formViewFactory; |
||
26 | |||
27 | public function __construct(FormViewFactory $formViewFactory) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param Form $form |
||
34 | */ |
||
35 | public function transform($form, string $to, array $context = []) |
||
36 | { |
||
37 | $form->formView = $this->formViewFactory->create($form); |
||
38 | |||
39 | return $form; |
||
40 | } |
||
41 | |||
42 | public function supportsTransformation($data, string $to, array $context = []): bool |
||
45 | } |
||
46 | } |
||
47 |