| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class IterateArrayStep extends AbstractConfigurableStep implements IterableStepInterface |
||
| 10 | { |
||
| 11 | 9 | public function execute(ProcessState $state) |
|
| 12 | { |
||
| 13 | 9 | $state->setIterator(new \ArrayIterator($state->getData())); |
|
| 14 | 9 | } |
|
| 15 | |||
| 16 | 7 | public function next(ProcessState $state) |
|
| 20 | 7 | } |
|
| 21 | |||
| 22 | 5 | public function valid(ProcessState $state): bool |
|
| 25 | } |
||
| 26 | |||
| 27 | 9 | public function count(ProcessState $state) |
|
| 28 | { |
||
| 29 | 9 | return $state->getIterator()->count(); |
|
| 30 | } |
||
| 31 | |||
| 32 | 2 | public function describe(ProcessState $state) |
|
| 35 | 2 | } |
|
| 36 | |||
| 37 | 6 | public function getProgress(ProcessState $state) |
|
| 40 | } |
||
| 41 | } |
||
| 42 |