1 | <?php |
||
10 | final class LimitExceeded extends RuntimeException implements RateLimitException |
||
11 | { |
||
12 | /** @var string */ |
||
13 | private $identifier; |
||
14 | |||
15 | /** @var Rate */ |
||
16 | private $rate; |
||
17 | |||
18 | 9 | public static function for(string $identifier, Rate $rate): self |
|
30 | |||
31 | 9 | public function getIdentifier(): string |
|
35 | |||
36 | 5 | public function getRate(): Rate |
|
40 | } |
||
41 |