| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable |
||
| 27 | { |
||
| 28 | $groupId = $context['filters']['groupId'] ?? null; |
||
| 29 | |||
| 30 | if (null === $groupId) { |
||
| 31 | return []; |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->messageRepository->findByGroupId((int) $groupId); |
||
| 35 | } |
||
| 37 |