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