Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function __construct( |
||
30 | string $host, |
||
31 | string $port, |
||
32 | string $user, |
||
33 | string $pass, |
||
34 | string $vhost = '/', |
||
35 | array $sslOptions = [], |
||
36 | array $options = [] |
||
37 | ) { |
||
38 | $this->host = $host; |
||
39 | $this->port = $port; |
||
40 | $this->user = $user; |
||
41 | $this->pass = $pass; |
||
42 | $this->vhost = $vhost; |
||
43 | $this->sslOptions = $sslOptions; |
||
44 | $this->options = $options; |
||
45 | |||
46 | $this->waitBeforeReconnectMicroseconds = $options['wait_before_reconnect_microseconds'] |
||
47 | ?? self::DEFAULT_WAIT_BEFORE_RECONNECT_MICROSECONDS; |
||
48 | } |
||
97 |