CachingEndpoint   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
ccs 0
cts 3
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\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
 * @deprecated This has been deprecated in favor of using the CacheItemPoolAwareTrait.
11
 */
12
abstract class CachingEndpoint extends LoggingEndpoint
0 ignored issues
show
Deprecated Code introduced by
The class LunixREST\Server\Router\Endpoint\LoggingEndpoint has been deprecated with message: in favor of just directly using the LoggerAwareTrait.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
13
{
14
    /**
15
     * @var CacheItemPoolInterface
16
     */
17
    protected $cachePool;
18
19
    /**
20
     * @param CacheItemPoolInterface $cacheItemPool
21
     */
22
    public function setCachePool(CacheItemPoolInterface $cacheItemPool)
23
    {
24
        $this->cachePool = $cacheItemPool;
25
    }
26
}
27