| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public static function create($adapterServiceName, $cacheServiceName, DI\Container $container) : Cached\CachedAdapter |
||
| 41 | { |
||
| 42 | /** @var Flysystem\AdapterInterface $adapter */ |
||
| 43 | 1 | $adapter = $container->getService($adapterServiceName); |
|
| 44 | /** @var Cached\CacheInterface $cache */ |
||
| 45 | 1 | $cache = $container->getService($cacheServiceName); |
|
| 46 | |||
| 47 | 1 | return new Cached\CachedAdapter($adapter, $cache); |
|
| 48 | } |
||
| 49 | } |
||
| 50 |