| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function getChannel(): AMQPChannel |
||
| 45 | { |
||
| 46 | if (!isset($this->channel)) { |
||
| 47 | $this->channel = $this->connectionContainer->connection() |
||
| 48 | ->channel(); |
||
| 49 | $this->channel->basic_qos( |
||
| 50 | $this->channelOptions['prefetch_size'], |
||
| 51 | $this->channelOptions['prefetch_count'], |
||
| 52 | $this->channelOptions['a_global'] |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | return $this->channel; |
||
| 56 | } |
||
| 58 |