| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 20 | protected function connect(): Client |
||
| 21 | { |
||
| 22 | $connectionDsn = [ |
||
| 23 | 'scheme' => $this->settings['scheme'], |
||
| 24 | 'host' => $this->settings['host'], |
||
| 25 | 'port' => $this->settings['port'], |
||
| 26 | 'user' => $this->settings['user'], |
||
| 27 | 'pass' => $this->settings['password'] |
||
| 28 | ]; |
||
| 29 | |||
| 30 | return ClientBuilder::create() |
||
| 31 | ->setHosts([$connectionDsn]) |
||
| 32 | ->build(); |
||
| 33 | } |
||
| 35 |