Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class EventIndicator |
||
11 | { |
||
12 | public const THRESHOLD = SECONDS_IN_01MIN; |
||
13 | |||
14 | /** @var int */ |
||
15 | private $lastEventTimestamp; |
||
16 | |||
17 | /** |
||
18 | * EventIndicator constructor. |
||
19 | */ |
||
20 | public function __construct() |
||
23 | } |
||
24 | |||
25 | public function countEvent($event = null) |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return int |
||
35 | */ |
||
36 | private function current(): int |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | */ |
||
44 | public function isOk(): bool |
||
50 |