| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | final class NanoSleepMiddlewareAsync implements AsyncLoopMiddlewareInterface |
||
| 22 | { |
||
| 23 | /** @param positive-int $sleep_nano_seconds */ |
||
|
|
|||
| 24 | public function __construct( |
||
| 25 | private int $sleep_nano_seconds, |
||
| 26 | private AsyncLoopMiddlewareInterface $chain |
||
| 27 | ) { |
||
| 28 | } |
||
| 29 | |||
| 30 | public function invoke(): \Generator |
||
| 42 | } |
||
| 43 | } |
||
| 45 |