| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class RateLimitException extends DaftravelException |
||
| 6 | { |
||
| 7 | protected mixed $retryAfter; |
||
| 8 | |||
| 9 | public function __construct($message = 'Rate limit exceeded', $retryAfter = null, $code = 429, $previous = null, $response = null, $statusCode = null) |
||
| 10 | { |
||
| 11 | parent::__construct($message, $code, $previous, $response, $statusCode); |
||
| 12 | $this->retryAfter = $retryAfter; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the time in seconds to wait before retrying the request. |
||
| 17 | */ |
||
| 18 | public function getRetryAfter() |
||
| 21 | } |
||
| 22 | } |
||
| 23 |