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