Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | final class CachePool |
||
24 | { |
||
25 | /** @var CacheItemPoolInterface[] The registry */ |
||
26 | private static array $instances = []; |
||
27 | |||
28 | /** |
||
29 | * @param string $client The name of the cache client |
||
30 | * @param array $parameters [optional] Configuration parameters for the cache client |
||
31 | * @return CacheItemPoolInterface |
||
32 | */ |
||
33 | public static function use(string $client, array $parameters = []): CacheItemPoolInterface |
||
44 | } |
||
45 | }; |
||
46 | 9 | } |
|
60 |