| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public static function make(string $name, array $config) : CacheInterface  | 
            ||
| 20 |     { | 
            ||
| 21 |         if ($name === MongoCache::class) { | 
            ||
| 22 | return self::getMongoCache($config);  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 |         if ($name === InMemoryCache::class) { | 
            ||
| 26 | return new InMemoryCache();  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 |         if ($name === NullCache::class) { | 
            ||
| 30 | return new NullCache();  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 |         throw new \RuntimeException("Cannot create cache instance of '{$name}'"); | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 53 |