| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function execute($command, callable $next) |
||
| 25 | { |
||
| 26 | $this->ensureCommandIsIterable($command); |
||
| 27 | |||
| 28 | $handler = $this->handler; |
||
| 29 | $items = iterator_to_array($command, true); |
||
| 30 | |||
| 31 | return new ArrayCollection( |
||
| 32 | array_map(static function ($item) use ($handler) { |
||
| 33 | return $handler($item); |
||
| 34 | }, $items) |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | |||
| 49 |