NoCache::set()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Netgen\Bundle\OpenWeatherMapBundle\Cache;
4
5
use Netgen\Bundle\OpenWeatherMapBundle\Exception\ItemNotFoundException;
6
7
class NoCache implements HandlerInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function has($cacheKey)
13
    {
14
        return false;
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function get($cacheKey)
21
    {
22
        throw new ItemNotFoundException("Item with key:{$cacheKey} not found.");
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function set($cacheKey, $data)
29
    {
30
    }
31
}
32