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

FlintRedisCacheFlintstone::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 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