| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class GetNbNewMessage extends AbstractController |
||
| 14 | { |
||
| 15 | private MessageRepository $messageRepository; |
||
| 16 | private EventDispatcherInterface $eventDispatcher; |
||
| 17 | |||
| 18 | public function __construct(MessageRepository $messageRepository, EventDispatcherInterface $eventDispatcher) |
||
| 19 | { |
||
| 20 | $this->messageRepository = $messageRepository; |
||
| 21 | $this->eventDispatcher = $eventDispatcher; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return int |
||
| 26 | * @throws NoResultException |
||
| 27 | * @throws NonUniqueResultException |
||
| 28 | */ |
||
| 29 | public function __invoke(): int |
||
| 34 | } |
||
| 35 | } |
||
| 36 |