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

Illuminate6CachePlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCacheItemPool() 0 3 1
A __construct() 0 3 1
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