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