1 | <?php |
||
10 | class ArrayValueConverterMap |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $converters; |
||
16 | |||
17 | /** |
||
18 | * @param callable[] $converters |
||
19 | */ |
||
20 | 2 | public function __construct(array $converters) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 2 | public function __invoke($input) |
|
40 | |||
41 | /** |
||
42 | * Convert an item of the array using the converter-map |
||
43 | * |
||
44 | * @param $item |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | 1 | protected function convertItem($item) |
|
62 | } |
||
63 |