Completed
Branch master (89d155)
by Dan
14:32 queued 12:04
created

NullStorage::get()   A

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 Rs\Cache;
4
5
/**
6
 * Class NullStorage
7
 * @package Rs\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
    public function set($key, $value, $expires)
18
    {
19
        return null;
20
    }
21
22
    /**
23
     * @param string $key
24
     * @return bool
25
     */
26
    public function get($key)
27
    {
28
        return null;
29
    }
30
31
    /**
32
     * @param string $key
33
     * @return bool
34
     */
35
    public function has($key){
36
        return false;
37
    }
38
39
    /**
40
     * @param $key
41
     * @return bool
42
     */
43
    public function delete($key)
44
    {
45
        return null;
46
    }
47
48
49
}
50