1 | <?php declare(strict_types=1); |
||
6 | class Stat |
||
7 | { |
||
8 | /** |
||
9 | * @var \DateTimeImmutable |
||
10 | */ |
||
11 | protected $sendTime; |
||
12 | |||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $buffered; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $received; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $rejected; |
||
27 | |||
28 | public function __construct(array $data) |
||
44 | 1 | ||
45 | /** |
||
46 | * @return \DateTimeImmutable |
||
47 | */ |
||
48 | public function getSendTime(): \DateTimeImmutable |
||
52 | |||
53 | /** |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getBuffered(): int |
||
60 | |||
61 | /** |
||
62 | * @return int |
||
63 | */ |
||
64 | public function getReceived(): int |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | */ |
||
72 | public function getRejected(): int |
||
76 | } |
||
77 |