1 | <?php |
||
15 | class DatabaseNotificationManager |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $databaseConfiguration; |
||
21 | /** |
||
22 | * @var ManagerRegistry |
||
23 | */ |
||
24 | protected $managerRegistry; |
||
25 | /** |
||
26 | * @var PropertyAccess |
||
27 | */ |
||
28 | protected $propertyAccessor; |
||
29 | |||
30 | /** |
||
31 | * DatabaseNotificationManager constructor. |
||
32 | * |
||
33 | * @param ManagerRegistry $managerRegistry |
||
34 | * @param array $databaseConfiguration |
||
35 | */ |
||
36 | public function __construct(ManagerRegistry $managerRegistry, array $databaseConfiguration = []) |
||
41 | |||
42 | protected function getEntityManager() |
||
51 | |||
52 | /** |
||
53 | * @param array $data |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function createDatabaseNotification(array $data) |
||
84 | |||
85 | /** |
||
86 | * @param DatabaseNotificationInterface $notification |
||
87 | * @param null $now |
||
88 | * @param bool $flush |
||
89 | */ |
||
90 | public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true) |
||
104 | |||
105 | /** |
||
106 | * @param NotifiableInterface $notifiable |
||
107 | * @param null $now |
||
108 | */ |
||
109 | public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null) |
||
129 | |||
130 | public function getUsersUnreadNotifications(DatabaseNotifiableInterface $user) |
||
142 | |||
143 | /** |
||
144 | * @param NotifiableInterface $user |
||
145 | * @param string $status |
||
146 | * @return int |
||
147 | */ |
||
148 | public function getUsersNotificationCount(NotifiableInterface $user, $status = '') |
||
160 | |||
161 | /** |
||
162 | * @return bool|mixed |
||
163 | */ |
||
164 | protected function notificationEntityName() |
||
173 | } |
||
174 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..