| 1 | <?php |
||
| 8 | class RepeatHandler implements Middleware |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | private $handler; |
||
| 14 | |||
| 15 | public function __construct(callable $handler) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritDoc |
||
| 22 | * @throws \Exception |
||
| 23 | */ |
||
| 24 | public function execute($command, callable $next) |
||
| 37 | |||
| 38 | private function ensureCommandIsIterable($command): void |
||
| 48 | } |
||
| 49 |