Completed
Push — master ( 5701ea...c1dc9c )
by Sven
04:37
created

FlintRedisCacheFlintstone   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 1
dl 0
loc 40
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A get() 0 4 1
A getAll() 0 4 1
A getKeys() 0 4 1
A set() 0 4 1
A delete() 0 4 1
A flush() 0 4 1
1
<?php
2
namespace Suven\FlintRedis;
3
4
use Flintstone\Flintstone;
5
6
class FlintRedisCacheFlintstone implements FlintRedisCache
7
{
8
9
    private $flintestone;
0 ignored issues
show
Unused Code introduced by
The property $flintestone is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
10
11 9
    public function __construct($realm = 'default', $options = [])
12
    {
13 9
        $this->flintstone = new Flintstone($realm, $options);
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
14 9
    }
15
16 6
    public function get($key)
17
    {
18 6
        return $this->flintstone->get($key);
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
19
    }
20
21 3
    public function getAll()
22
    {
23 3
        return $this->flintstone->getAll();
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
24
    }
25
26 6
    public function getKeys()
27
    {
28 6
        return $this->flintstone->getKeys();
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
29
    }
30
31 9
    public function set($key, $value)
32
    {
33 9
        return $this->flintstone->set($key, $value);
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
34
    }
35
36 3
    public function delete($key)
37
    {
38 3
        return $this->flintstone->delete($key);
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
39
    }
40
41 3
    public function flush()
42
    {
43 3
        return $this->flintstone->flush();
0 ignored issues
show
Bug introduced by
The property flintstone does not seem to exist. Did you mean flintestone?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
44
    }
45
}
46