Completed
Push — master ( 0a059e...292010 )
by John
02:21
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 3
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\Server\Router\Endpoint;
3
4
use Psr\Cache\CacheItemPoolInterface;
5
6
/**
7
 * An extension of a LoggingEndpoint that has a PSR CacheItemPoolInterface available to it. Used with the CachingEndpointFactory.
8
 * Class CachingEndpoint
9
 * @package LunixREST\Endpoint
10
 */
11
abstract class CachingEndpoint extends LoggingEndpoint
12
{
13
    /**
14
     * @var CacheItemPoolInterface
15
     */
16
    protected $cachePool;
17
18
    /**
19
     * @param CacheItemPoolInterface $cacheItemPool
20
     */
21
    public function setCachePool(CacheItemPoolInterface $cacheItemPool)
22
    {
23
        $this->cachePool = $cacheItemPool;
24
    }
25
}
26