Lines
100.00%
2 / 2
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 2 | ||
| 16 | class InvalidArgumentException extends BaseInvalidArgumentException implements SimpleCacheInvalidArgumentException | |
| 17 | { | |
| 18 | /** | |
| 19 | * The key that failed validation. | |
| 20 | */ | |
| 21 | public private(set) mixed $key; | |
| 22 | ||
| 23 | /** | |
| 24 | * @param mixed $key The key that failed validation | |
| 25 | */ | |
| 26 | public function __construct(mixed $key) | |
| 27 | { | |
| 28 | $this->key = $key; | |
| 29 | parent::__construct(sprintf('Invalid cache key "%s".', is_scalar($key) ? $key : get_debug_type($key))); | |
| 30 | } | |
| 31 | } |