| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function handleMessage(array $message) |
||
| 34 | { |
||
| 35 | if (!isset($this->callback)) { |
||
| 36 | throw new ReaderException("Handling a message with no callback set"); |
||
| 37 | } |
||
| 38 | |||
| 39 | $body = json_decode($message['Body'], true); |
||
| 40 | $task = $this->jsonMessageFactory->create($body['Message']); |
||
| 41 | call_user_func($this->callback, $task); |
||
| 42 | } |
||
| 43 | |||
| 51 | } |