| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | final class NanoSleepMiddlewareAsync implements AsyncLoopMiddlewareInterface |
||
| 19 | { |
||
| 20 | private int $sleep_nano_seconds; |
||
| 21 | private AsyncLoopMiddlewareInterface $chain; |
||
| 22 | |||
| 23 | public function __construct(int $sleep_nano_seconds, AsyncLoopMiddlewareInterface $chain) |
||
| 24 | { |
||
| 25 | $this->sleep_nano_seconds = $sleep_nano_seconds; |
||
| 26 | $this->chain = $chain; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function invoke(): \Generator |
||
| 33 | } |
||
| 34 | } |
||
| 35 |