Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class InMemoryClassNameCache implements ClassNameCacheInterface |
||
10 | { |
||
11 | /** @var array<string,string> */ |
||
12 | private static array $cachedClassNames = []; |
||
13 | |||
14 | public function has(string $cacheKey): bool |
||
15 | { |
||
16 | return isset(self::$cachedClassNames[$cacheKey]); |
||
17 | } |
||
18 | |||
19 | public function get(string $cacheKey): string |
||
22 | } |
||
23 | |||
24 | public function put(string $cacheKey, string $className): void |
||
29 |