Total Complexity | 6 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class MenuapplicazioneTransformer implements DataTransformerInterface |
||
12 | { |
||
13 | private $entityManager; |
||
14 | |||
15 | 1 | public function __construct(EntityManagerInterface $entityManager) |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * Transforms an object (Menuapplicazione) to a string (number). |
||
22 | * |
||
23 | * @param Menuapplicazione|null $menu |
||
24 | * @return string |
||
25 | */ |
||
26 | 1 | public function reverseTransform($menu) |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Transforms a string (number) to an object (Menuapplicazione). |
||
37 | * |
||
38 | * @param string $menuId |
||
39 | * @return Menuapplicazione|null |
||
40 | * @throws TransformationFailedException if object (Menuapplicazione) is not found. |
||
41 | */ |
||
42 | 1 | public function transform($menuId) |
|
68 |