Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class ProfiledInMemoryCache implements ClassNameCacheInterface |
||
8 | { |
||
9 | private ClassNameCacheInterface $decoradedCache; |
||
10 | private FileProfilerInterface $fileProfiler; |
||
11 | |||
12 | 4 | public function __construct( |
|
13 | ClassNameCacheInterface $decoratedCache, |
||
14 | FileProfilerInterface $fileProfiler |
||
15 | ) { |
||
16 | 4 | $this->decoradedCache = $decoratedCache; |
|
17 | 4 | $this->fileProfiler = $fileProfiler; |
|
18 | } |
||
19 | |||
20 | 4 | public function has(string $cacheKey): bool |
|
21 | { |
||
22 | 4 | return $this->decoradedCache->has($cacheKey); |
|
23 | } |
||
24 | |||
25 | 3 | public function get(string $cacheKey): string |
|
26 | { |
||
27 | 3 | return $this->decoradedCache->get($cacheKey); |
|
28 | } |
||
29 | |||
30 | public function getAll(): array |
||
33 | } |
||
34 | |||
35 | 2 | public function put(string $cacheKey, string $className): void |
|
36 | { |
||
41 |