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