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