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