| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 9 | public static function for(string $identifier, Rate $rate): self |
|
| 19 | { |
||
| 20 | 9 | $exception = new self(sprintf( |
|
| 21 | 9 | 'Limit has been exceeded for identifier "%s".', |
|
| 22 | 9 | $identifier |
|
| 23 | )); |
||
| 24 | |||
| 25 | 9 | $exception->identifier = $identifier; |
|
| 26 | 9 | $exception->rate = $rate; |
|
| 27 | |||
| 28 | 9 | return $exception; |
|
| 29 | } |
||
| 30 | |||
| 41 |