| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | public function next(): void |
||
| 66 | { |
||
| 67 | $this->isValid = false; |
||
| 68 | |||
| 69 | if ($amqpMessage = $this->consumer->receive($this->timeout)) { |
||
| 70 | $data = json_decode($amqpMessage->getBody(), true); |
||
| 71 | $data['body']['interopMessage'] = $amqpMessage; |
||
| 72 | |||
| 73 | $message = new Message(); |
||
| 74 | $message->setBody($data['body']); |
||
| 75 | $message->setType($data['type']); |
||
| 76 | $message->setState($data['state']); |
||
| 77 | $this->message = $message; |
||
| 78 | |||
| 79 | ++$this->counter; |
||
| 80 | $this->isValid = true; |
||
| 81 | } |
||
| 82 | } |
||
| 83 | |||
| 109 |