1 | <?php declare(strict_types=1); |
||
17 | final class RateLimitState |
||
18 | { |
||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | private $limit = 0; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $remaining = 0; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | private $reset = 0; |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | 1 | public function getLimit(): int |
|
41 | |||
42 | /** |
||
43 | * @param int $limit |
||
44 | */ |
||
45 | 1 | public function setLimit(int $limit) |
|
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | 1 | public function getRemaining(): int |
|
57 | |||
58 | /** |
||
59 | * @param int $remaining |
||
60 | */ |
||
61 | 1 | public function setRemaining(int $remaining) |
|
65 | |||
66 | /** |
||
67 | * @return int |
||
68 | */ |
||
69 | 1 | public function getReset(): int |
|
73 | |||
74 | /** |
||
75 | * @param int $reset |
||
76 | */ |
||
77 | 1 | public function setReset(int $reset) |
|
81 | } |
||
82 |