Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | final class NanoSleepMiddleware implements LoopMiddlewareInterface |
||
19 | { |
||
20 | private int $sleep_nano_seconds; |
||
21 | private LoopMiddlewareInterface $chain; |
||
22 | |||
23 | public function __construct(int $sleep_nano_seconds, LoopMiddlewareInterface $chain) |
||
24 | { |
||
25 | $this->sleep_nano_seconds = $sleep_nano_seconds; |
||
26 | $this->chain = $chain; |
||
27 | } |
||
28 | |||
29 | public function invoke(): bool |
||
36 | } |
||
37 | } |
||
38 |