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