BaseDataCacher   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 4 1
A getTTL() 0 4 1
1
<?php
2
3
namespace Thruster\Component\DataCacher;
4
5
/**
6
 * Class BaseDataCacher
7
 *
8
 * @package Thruster\Component\DataCacher
9
 * @author  Aurimas Niekis <[email protected]>
10
 */
11
abstract class BaseDataCacher implements DataCacherInterface
12
{
13
    /**
14
     * @inheritDoc
15
     */
16 1
    public function getValue($input)
17
    {
18 1
        return $input;
19
    }
20
21
    /**
22
     * @inheritDoc
23
     */
24 1
    public function getTTL($input): int
25
    {
26 1
        return 0;
27
    }
28
29
}
30