Completed
Push — master ( 068584...6f6103 )
by John
04:49
created

CachingEndpoint   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 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 4
cp 0
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
6
/**
7
 * Class CachingEndpoint
8
 * @package LunixREST\Endpoint
9
 */
10
abstract class CachingEndpoint implements Endpoint
11
{
12
    /**
13
     * @var CacheItemPoolInterface
14
     */
15
    protected $cachePool;
16
17
    /**
18
     * @param CacheItemPoolInterface $cacheItemPool
19
     */
20
    public function setCachePool(CacheItemPoolInterface $cacheItemPool)
21
    {
22
        $this->cachePool = $cacheItemPool;
23
    }
24
}
25