Completed
Push — master ( 89d155...6a85db )
by Dan
13:52 queued 06:12
created

NullStorage::get()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Ds\Cache;
4
5
/**
6
 * Class NullStorage
7
 * @package Ds\Cache
8
 */
9
class NullStorage implements CacheStorageInterface
10
{
11
    /**
12
     * @param string $key
13
     * @param string $value
14
     * @param int $expires
15
     * @return void
16
     */
17 1
    public function set($key, $value, $expires)
18
    {
19 1
        return null;
20
    }
21
22
    /**
23
     * @param string $key
24
     * @return bool
25
     */
26 1
    public function get($key)
27
    {
28 1
        return null;
29
    }
30
31
    /**
32
     * @param string $key
33
     * @return bool
34
     */
35 1
    public function has($key){
36 1
        return false;
37
    }
38
39
    /**
40
     * @param $key
41
     * @return bool
42
     */
43 1
    public function delete($key)
44
    {
45 1
        return null;
46
    }
47
48
49
}
50