1 | <?php |
||
14 | class ValuetoChoiceOrTextTransformer implements DataTransformerInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $choices; |
||
20 | |||
21 | /** |
||
22 | * Construct the transformer |
||
23 | * |
||
24 | * @param ChoiceListInterface $choices |
||
25 | */ |
||
26 | public function __construct(ChoiceListInterface $choices) |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function reverseTransform($data) |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function transform($data) |
||
54 | } |
||
55 |