Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class SetCacheException extends CacheException |
||
10 | { |
||
11 | public function __construct( |
||
12 | string $key, |
||
13 | private mixed $value, |
||
14 | 2 | private CacheItem $item |
|
15 | ) { |
||
16 | 2 | parent::__construct($key, 'Failed to store the value in the cache.'); |
|
17 | 2 | } |
|
18 | 2 | ||
19 | public function getValue(): mixed |
||
20 | { |
||
21 | 1 | return $this->value; |
|
22 | } |
||
23 | 1 | ||
24 | public function getItem(): CacheItem |
||
27 | } |
||
28 | } |
||
29 |