| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class PredisConfiguration extends CacheConfiguration |
||
| 16 | { |
||
| 17 | 135 | public function __construct(array $values) |
|
| 18 | { |
||
| 19 | 135 | $values += [ |
|
| 20 | 135 | 'serializer' => Serializer::PHP, |
|
| 21 | 135 | 'binary' => Serializer::PHP, |
|
| 22 | 135 | ]; |
|
| 23 | 135 | parent::__construct($values); |
|
| 24 | } |
||
| 25 | |||
| 26 | 135 | public function getConnectionParams(): array |
|
| 27 | { |
||
| 28 | 135 | return [ |
|
| 29 | 135 | 'scheme' => $this->get('scheme', 'tcp'), |
|
| 30 | 135 | 'host' => $this->get('host', '127.0.0.1'), |
|
| 31 | 135 | 'port' => $this->get('port', 6379) |
|
| 32 | 135 | ]; |
|
| 33 | } |
||
| 34 | |||
| 35 | 135 | public function getOptions(): ?array |
|
| 38 | } |
||
| 39 | } |
||
| 40 |