1 | <?php |
||
10 | class ConverterStep implements Step |
||
11 | { |
||
12 | /** |
||
13 | * @var callable[] |
||
14 | */ |
||
15 | private $converters; |
||
16 | |||
17 | /** |
||
18 | * @param array $converters |
||
19 | */ |
||
20 | 3 | public function __construct(array $converters = []) |
|
26 | |||
27 | /** |
||
28 | * @param callable $converter |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | 1 | public function add(callable $converter) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 1 | public function process($item, callable $next) |
|
50 | } |
||
51 |