| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __construct(string $key, string $invalidValue, array $allowedValues, int $code = 0, ?Exception $previous = null) |
||
| 15 | { |
||
| 16 | $message = sprintf( |
||
| 17 | 'Invalid value (%s) for %s, possible values are: %s.', |
||
| 18 | $invalidValue, |
||
| 19 | $key, |
||
| 20 | implode(', ', $allowedValues) |
||
| 21 | ); |
||
| 22 | parent::__construct($message, $code, $previous); |
||
| 23 | } |
||
| 24 | } |