1 | <?php |
||
7 | class RateLimitResponse |
||
8 | { |
||
9 | private $limit; |
||
10 | |||
11 | private $remaining; |
||
12 | |||
13 | private $retryAfter; |
||
14 | |||
15 | private $errorResponse; |
||
16 | |||
17 | 3 | public function __construct(int $limit, int $remaining, ?int $retryAfter = null, ?IResponse $errorResponse = null) |
|
24 | |||
25 | 3 | public function getLimit(): int |
|
29 | |||
30 | 3 | public function getRemaining(): int |
|
34 | |||
35 | 3 | public function getRetryAfter(): ?int |
|
39 | |||
40 | 3 | public function getErrorResponse(): ?IResponse |
|
44 | } |
||
45 |