1 | <?php |
||
8 | class ForeignMappingTransformer implements TransformerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $name; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $mapping; |
||
19 | |||
20 | /** |
||
21 | * @param string $name |
||
22 | * @param array $mapping |
||
23 | */ |
||
24 | 8 | public function __construct($name, array $mapping) |
|
29 | |||
30 | 8 | public function transform($value) |
|
62 | |||
63 | /** |
||
64 | * @param string $value |
||
65 | * |
||
66 | * @throws TransformationFailedException |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | 6 | protected function getMappedValue($value) |
|
84 | } |
||
85 |