| 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) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Convert an item of the array using the converter-map |
||
| 39 | * |
||
| 40 | * @param $item |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | 1 | protected function convertItem($item) |
|
| 58 | } |
||
| 59 |