Cacheitem   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 51
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 4 1
A get() 0 4 1
A isHit() 0 4 1
A set() 0 4 1
A expiresAt() 0 4 1
A expiresAfter() 0 4 1
1
<?php
2
3
namespace Resilient\Dummy;
4
5
use Psr\Cache\CacheItemInterface;
6
7
class Cacheitem implements CacheItemInterface
8
{
9
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getKey()
14
    {
15
        return 'no-key';
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function get()
22
    {
23
        return null;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function isHit()
30
    {
31
        return false;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function set($value)
38
    {
39
        return $this;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function expiresAt($expiration)
46
    {
47
        return $this;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function expiresAfter($time)
54
    {
55
        return $this;
56
    }
57
}
58