Passed
Push — master ( c5bd37...640ffc )
by
unknown
05:22
created

Illuminate6CachePlugin::getCacheItemPool()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace W2w\Laravel\Apie\Plugins\Illuminate6Cache;
4
5
use Illuminate\Container\Container;
6
use Psr\Cache\CacheItemPoolInterface;
7
use W2w\Lib\Apie\PluginInterfaces\CacheItemPoolProviderInterface;
8
9
class Illuminate6CachePlugin implements CacheItemPoolProviderInterface
10
{
11
    private $container;
12
13
    public function __construct(Container $container)
14
    {
15
        $this->container = $container;
16
    }
17
18
    public function getCacheItemPool(): CacheItemPoolInterface
19
    {
20
        return $this->container->get('cache.psr6');
21
    }
22
}
23