Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Repeater implements RepeaterInterface |
||
8 | { |
||
9 | private const NANO_IN_MILLISECOND = 1000; |
||
10 | |||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $intervalMilliseconds; |
||
15 | |||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | private $maxTimeMilliseconds; |
||
20 | |||
21 | /** |
||
22 | * @param int $intervalMilliseconds |
||
23 | */ |
||
24 | public function __construct(int $intervalMilliseconds, int $maxTimeMilliseconds) |
||
28 | } |
||
29 | |||
30 | public function repeat(callable $callable): void |
||
43 |