Completed
Push — master ( 35e6b3...305195 )
by John
02:01
created

CachingLoggingEndpoint   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setCachePool() 0 4 1
1
<?php
2
namespace LunixREST\Endpoint;
3
4
use Psr\Cache\CacheItemPoolInterface;
5
use Psr\Log\LoggerAwareTrait;
6
7
/**
8
 * Class CachingEndpoint
9
 * @package LunixREST\Endpoint
10
 */
11
abstract class CachingLoggingEndpoint implements Endpoint
12
{
13
    use LoggerAwareTrait;
14
15
    /**
16
     * @var CacheItemPoolInterface
17
     */
18
    protected $cachePool;
19
20
    /**
21
     * @param CacheItemPoolInterface $cacheItemPool
22
     */
23 1
    public function setCachePool(CacheItemPoolInterface $cacheItemPool)
24
    {
25 1
        $this->cachePool = $cacheItemPool;
26 1
    }
27
}
28