1 | <?php |
||
11 | class ValueConverterStep implements Step |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $converters = []; |
||
17 | |||
18 | /** |
||
19 | * @param string $property |
||
20 | * @param callable $converter |
||
21 | * |
||
22 | * @return $this |
||
23 | */ |
||
24 | 1 | public function add($property, callable $converter) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 1 | public function process($item, callable $next) |
|
48 | } |
||
49 |