| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class RateLimitException extends BaseException implements SeamsCMSException |
||
| 8 | { |
||
| 9 | /** @var int */ |
||
| 10 | protected $limit; |
||
| 11 | |||
| 12 | /** @var int */ |
||
| 13 | protected $resetTimestamp; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * RateLimitException constructor. |
||
| 17 | * |
||
| 18 | * @param int $limit |
||
| 19 | * @param int $resetTimestamp |
||
| 20 | * @param string $msg |
||
| 21 | */ |
||
| 22 | public function __construct(int $limit, int $resetTimestamp, string $msg) |
||
| 23 | { |
||
| 24 | $this->limit = $limit; |
||
| 25 | $this->resetTimestamp = $resetTimestamp; |
||
| 26 | |||
| 27 | parent::__construct($msg); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | public function getLimit(): int |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | public function getResetTimestamp(): int |
||
| 44 | } |
||
| 45 | } |
||
| 46 |