Completed
Pull Request — master (#106)
by Benedikt
01:39
created

PhpRedisCluster   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
4
namespace Noxlogic\RateLimitBundle\Service\Storage;
5
6
7
class PhpRedisCluster extends PhpRedis
8
{
9
10 5
    public function __construct(\RedisCluster $client)
11
    {
12 5
        $this->client = $client;
0 ignored issues
show
Documentation Bug introduced by
It seems like $client of type object<RedisCluster> is incompatible with the declared type object<Redis> of property $client.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
13 5
    }
14
15
}