Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | class CacheFactory extends AbstractStorageFactory |
||
21 | { |
||
22 | /** |
||
23 | * @var array<mixed> Factory supported driver |
||
24 | */ |
||
25 | protected array $supportedDriver = [ |
||
26 | 'disk' => DiskCache::class, |
||
27 | 'memcached' => MemcachedCache::class, |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * Return Cache Resource. |
||
32 | * |
||
33 | * @return CacheInterface |
||
34 | */ |
||
35 | 3 | public function get(): CacheInterface |
|
40 |