| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class ProfiledCache implements CacheInterface |
||
| 10 | { |
||
| 11 | private CacheInterface $decoratedCache; |
||
| 12 | private FileProfilerInterface $fileProfiler; |
||
| 13 | |||
| 14 | 1 | public function __construct( |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function has(string $cacheKey): bool |
|
| 23 | { |
||
| 24 | 1 | return $this->decoratedCache->has($cacheKey); |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function get(string $cacheKey): string |
|
| 28 | { |
||
| 29 | 1 | return $this->decoratedCache->get($cacheKey); |
|
| 30 | } |
||
| 31 | |||
| 32 | public function getAll(): array |
||
| 33 | { |
||
| 34 | return $this->decoratedCache->getAll(); |
||
| 35 | } |
||
| 36 | |||
| 37 | 1 | public function put(string $cacheKey, string $className): void |
|
| 42 | } |
||
| 43 | } |
||
| 44 |