| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 4 | public function __construct(AMQPChannel $channel, string $queue, string $exchange, bool $persistant) |
|
| 25 | { |
||
| 26 | 4 | $this->channel = $channel; |
|
| 27 | 4 | $this->queue = $queue; |
|
| 28 | 4 | $this->exchange = $exchange; |
|
| 29 | 4 | $this->persistant = $persistant; |
|
| 30 | |||
| 31 | 4 | $this->channel->queue_declare($this->queue, false, $this->persistant, false, false); |
|
| 32 | 4 | $this->channel->queue_bind($this->queue, $this->exchange, $this->queue); |
|
| 33 | 4 | } |
|
| 65 |