| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 64 | public function reconnect(bool $wait = true): void |
||
| 65 | { |
||
| 66 | $this->close(); |
||
| 67 | |||
| 68 | if ($wait) { |
||
| 69 | usleep($this->waitBeforeReconnectMicroseconds); |
||
| 70 | } |
||
| 71 | |||
| 72 | $this->connection = new AMQPSSLConnection( |
||
| 73 | $this->host, |
||
| 74 | $this->port, |
||
|
|
|||
| 75 | $this->user, |
||
| 76 | $this->pass, |
||
| 77 | $this->vhost, |
||
| 78 | $this->sslOptions, |
||
| 79 | $this->options |
||
| 80 | ); |
||
| 96 |