Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 6 | public function __construct(array $options = []) |
|
25 | { |
||
26 | 6 | $options = array_merge([ |
|
27 | 6 | 'host' => null, |
|
28 | 'port' => 6379, |
||
29 | 'protocol' => 'tcp', |
||
30 | 'dbIndex' => 0, |
||
31 | 'connectionName' => null, |
||
32 | 6 | ], $options); |
|
33 | |||
34 | 6 | $this->host = $options['host']; |
|
35 | 6 | $this->port = (int) $options['port']; |
|
36 | 6 | $this->protocol = $options['protocol']; |
|
37 | 6 | $this->dbIndex = (int) $options['dbIndex']; |
|
38 | 6 | $this->connectionName = $options['connectionName']; |
|
39 | 6 | } |
|
40 | |||
66 |