Completed
Push — master ( c4d148...c0e5c2 )
by Frederik
02:33
created

NullAdapter::set()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
namespace Genkgo\Cache\Adapter;
3
4
use Genkgo\Cache\CacheAdapterInterface;
5
6
/**
7
 * Class NullAdapter
8
 * @package Genkgo\Cache\Handler
9
 */
10
class NullAdapter implements CacheAdapterInterface
11
{
12
    /**
13
     * Gets a cache entry
14
     * returning null if not in cache
15
     *
16
     * @param $key
17
     * @return null|mixed
18
     */
19
    public function get($key)
20
    {
21
        return null;
22
    }
23
24
    /**
25
     * Sets a cache entry
26
     *
27
     * @param $key
28
     * @param $value
29
     * @return void
30
     */
31
    public function set($key, $value)
32
    {
33
        return;
34
    }
35
36
    /**
37
     * Deletes a cache entry
38
     *
39
     * @param $key
40
     * @return void
41
     */
42
    public function delete($key)
43
    {
44
        return;
45
    }
46
}
47