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