| Conditions | 3 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function callback($msg) |
||
| 10 | { |
||
| 11 | try { |
||
| 12 | $this->onMessageReceived($msg); |
||
| 13 | |||
| 14 | $msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']); |
||
| 15 | } catch (RetryableExceptionInterface $e) { |
||
| 16 | $msg->delivery_info['channel']->basic_nack($msg->delivery_info['delivery_tag'], true, true); |
||
| 17 | } catch (\Exception $e) { |
||
| 18 | $msg->delivery_info['channel']->basic_nack($msg->delivery_info['delivery_tag'], true, false); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 24 |