| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class MessageByGroupStateProvider implements ProviderInterface |
||
| 16 | { |
||
| 17 | private MessageRepository $messageRepository; |
||
| 18 | |||
| 19 | public function __construct(MessageRepository $messageRepository) |
||
| 22 | } |
||
| 23 | |||
| 24 | public function supports(Operation $operation, array $uriVariables = [], array $context = []): bool |
||
| 25 | { |
||
| 26 | return Message::class === $operation->getClass() && 'get_messages_by_group' === $operation->getName(); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable |
||
| 38 | } |
||
| 39 | } |
||
| 40 |