Cacheitem::expiresAfter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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