Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class EventsCounter extends TimedCounter |
||
10 | { |
||
11 | /** |
||
12 | * Alias to add() method |
||
13 | * @param int|null $time |
||
14 | */ |
||
15 | 1 | public function addEvent(?int $time = null): void |
|
16 | { |
||
17 | 1 | $this->add($time); |
|
18 | 1 | } |
|
19 | |||
20 | /** |
||
21 | * @return array |
||
22 | */ |
||
23 | 1 | public function getRawEventsData(): array |
|
24 | { |
||
25 | 1 | return $this->getRawData(); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param bool|null $reset |
||
30 | * @return array |
||
31 | */ |
||
32 | 1 | public function getEventsArray(?bool $reset = null): array |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param bool|null $reset |
||
39 | * @return object |
||
40 | */ |
||
41 | 1 | public function getEvents(?bool $reset = null): object |
|
44 | } |
||
45 | } |
||
46 |