1 | <?php |
||
23 | class RouteChoiceTransformer implements DataTransformerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var RouteManagerInterface |
||
27 | */ |
||
28 | private $routeManager; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | * |
||
33 | * @param RouteManagerInterface $routeManager |
||
34 | */ |
||
35 | public function __construct(RouteManagerInterface $routeManager) |
||
39 | |||
40 | /** |
||
41 | * Transform. |
||
42 | * |
||
43 | * @param null|RouteInterface $route |
||
44 | * |
||
45 | * @return null|string |
||
46 | */ |
||
47 | public function transform($route) |
||
55 | |||
56 | /** |
||
57 | * Reverse transform. |
||
58 | * |
||
59 | * @param null|string $routeName |
||
60 | * |
||
61 | * @return null|RouteInterface |
||
62 | */ |
||
63 | public function reverseTransform($routeName) |
||
71 | } |
||
72 |