Completed
Push — master ( 958289...6b1b3a )
by Tobias
45:00 queued 20:01
created

DummyAdapter::setLogger()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of php-cache organization.
5
 *
6
 * (c) 2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Cache\AdapterBundle;
13
14
use Psr\Cache\CacheItemInterface;
15
use Psr\Cache\CacheItemPoolInterface;
16
use Psr\Log\LoggerAwareInterface;
17
use Psr\Log\LoggerInterface;
18
19
/**
20
 * This client is used as a placeholder for the dependency injection. It will never be used.
21
 *
22
 * @author Tobias Nyholm <[email protected]>
23
 */
24
final class DummyAdapter implements CacheItemPoolInterface, LoggerAwareInterface
25
{
26
    public function getItem($key)
27
    {
28
    }
29
30
    public function getItems(array $keys = [])
31
    {
32
    }
33
34
    public function hasItem($key)
35
    {
36
    }
37
38
    public function clear()
39
    {
40
    }
41
42
    public function deleteItem($key)
43
    {
44
    }
45
46
    public function deleteItems(array $keys)
47
    {
48
    }
49
50
    public function save(CacheItemInterface $item)
51
    {
52
    }
53
54
    public function saveDeferred(CacheItemInterface $item)
55
    {
56
    }
57
58
    public function commit()
59
    {
60
    }
61
62
    public function setLogger(LoggerInterface $logger)
63
    {
64
    }
65
}
66