1 | <?php |
||
21 | class MappingConverter implements ConverterInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $mappings; |
||
27 | |||
28 | /** |
||
29 | * @param array $mappings |
||
30 | * |
||
31 | * @codeCoverageIgnore |
||
32 | */ |
||
33 | public function __construct(array $mappings = []) |
||
43 | |||
44 | /** |
||
45 | * @param string|array $from |
||
46 | * @param string|array $to |
||
47 | * @param bool $remove |
||
48 | * |
||
49 | * @return MappingConverter |
||
50 | */ |
||
51 | 3 | public function addMapping($from, $to, $remove = true) |
|
57 | |||
58 | /** |
||
59 | * @param mixed $item |
||
60 | * |
||
61 | * @return mixed |
||
62 | */ |
||
63 | 6 | public function convert($item) |
|
80 | } |
||
81 |