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

CachingEndpoint::setCachePool()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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