| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 36.36% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class NotificationManager |
||
| 14 | { |
||
| 15 | /** @var EntityManagerInterface **/ |
||
| 16 | protected $em; |
||
| 17 | /** @var TranslatorInterface **/ |
||
| 18 | protected $translator; |
||
| 19 | |||
| 20 | 15 | public function __construct(EntityManagerInterface $em, TranslatorInterface $translator) |
|
| 21 | { |
||
| 22 | 15 | $this->em = $em; |
|
| 23 | 15 | $this->translator = $translator; |
|
| 24 | 15 | } |
|
| 25 | |||
| 26 | 6 | public function getUserUnreadNotifications(User $user): array |
|
| 33 | ]); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function read(array $ids = []) |
||
| 39 | } |
||
| 40 | |||
| 41 | public function notifyAllMembers(string $content, array $parameters = []) |
||
| 44 | } |
||
| 45 | |||
| 46 | protected function notify(array $users, string $content, array $parameters = []) |
||
| 58 | } |
||
| 59 | } |