1 | <?php |
||
16 | class DatabaseNotificationManager |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $databaseConfiguration; |
||
22 | /** |
||
23 | * @var ManagerRegistry |
||
24 | */ |
||
25 | protected $managerRegistry; |
||
26 | /** |
||
27 | * @var PropertyAccessor |
||
28 | */ |
||
29 | protected $propertyAccessor; |
||
30 | |||
31 | /** |
||
32 | * DatabaseNotificationManager constructor. |
||
33 | * |
||
34 | * @param ManagerRegistry $managerRegistry |
||
35 | * @param array $databaseConfiguration |
||
36 | */ |
||
37 | public function __construct(ManagerRegistry $managerRegistry, array $databaseConfiguration = []) |
||
42 | |||
43 | /** |
||
44 | * @return bool|\Doctrine\Common\Persistence\ObjectManager|null|object |
||
45 | */ |
||
46 | protected function getEntityManager() |
||
55 | |||
56 | /** |
||
57 | * @param array $data |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function createDatabaseNotification(array $data) |
||
88 | |||
89 | /** |
||
90 | * @param DatabaseNotificationInterface $notification |
||
91 | * @param null $now |
||
92 | * @param bool $flush |
||
93 | */ |
||
94 | public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true) |
||
108 | |||
109 | /** |
||
110 | * @param NotifiableInterface $notifiable |
||
111 | * @param null $now |
||
112 | */ |
||
113 | public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null) |
||
131 | |||
132 | /** |
||
133 | * @param array $notifications |
||
134 | */ |
||
135 | public function setNotificationsReadAt(array $notifications) |
||
144 | |||
145 | /** |
||
146 | * @param DatabaseNotifiableInterface $user |
||
147 | * @return array |
||
148 | */ |
||
149 | public function getUsersUnreadNotifications(DatabaseNotifiableInterface $user) |
||
162 | |||
163 | /** |
||
164 | * @param NotifiableInterface $user |
||
165 | * @param string $status |
||
166 | * @return int |
||
167 | */ |
||
168 | public function getUsersNotificationCount(NotifiableInterface $user, $status = '') |
||
180 | |||
181 | /** |
||
182 | * @param array $options |
||
183 | * @throws \Exception |
||
184 | */ |
||
185 | public function findAndSetAsRead(array $options) |
||
199 | |||
200 | /** |
||
201 | * @return bool|mixed |
||
202 | */ |
||
203 | protected function notificationEntityName() |
||
212 | } |
||
213 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.