NoCache   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 25
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A has() 0 4 1
A get() 0 4 1
A set() 0 3 1
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