| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function execute($messages, $receiver): array |
||
| 14 | { |
||
| 15 | if (!$this->support($receiver)) { |
||
| 16 | throw new \InvalidArgumentException('todo'); |
||
| 17 | } |
||
| 18 | if (count($messages) !== 1) { |
||
| 19 | throw new \InvalidArgumentException('todo'); |
||
| 20 | } |
||
| 21 | |||
| 22 | return [$receiver->execute($messages[0])]; |
||
| 23 | } |
||
| 29 | } |