Completed
Push — master ( beb3fd...91a3d1 )
by John
02:45
created

CacheItemPoolAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCacheItemPool() 0 4 1
1
<?php
2
namespace LunixREST\Server\Router\Endpoint;
3
4
use Psr\Cache\CacheItemPoolInterface;
5
6
/**
7
 * This class makes the caching PSR match the trait pattern of the logging PSR.
8
 * Class CacheItemPoolAwareTrait
9
 * @package LunixREST\Server\Router\Endpoint
10
 */
11
trait CacheItemPoolAwareTrait
12
{
13
    /**
14
     * @var CacheItemPoolInterface
15
     */
16
    protected $cacheItemPool;
17
18
    /**
19
     * @param CacheItemPoolInterface $cacheItemPool
20
     */
21
    public function setCacheItemPool(CacheItemPoolInterface $cacheItemPool)
22
    {
23
        $this->cacheItemPool = $cacheItemPool;
24
    }
25
}
26