Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class PageTemplateOutputDataTransformer implements DataTransformerInterface |
||
15 | { |
||
16 | private LayoutRepository $layoutRepository; |
||
17 | |||
18 | public function __construct(LayoutRepository $layoutRepository) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param PageTemplate $object |
||
25 | */ |
||
26 | public function transform($object, string $to, array $context = []) |
||
27 | { |
||
28 | $object->layout = $this->layoutRepository->findDefault(); |
||
29 | return $object; |
||
30 | } |
||
31 | |||
32 | public function supportsTransformation($data, string $to, array $context = []): bool |
||
35 | } |
||
36 | } |
||
37 |