@@ -17,6 +17,9 @@ discard block |
||
| 17 | 17 | $this->databaseConfiguration = $databaseConfiguration; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param \DateTime $now |
|
| 22 | + */ |
|
| 20 | 23 | public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true) |
| 21 | 24 | { |
| 22 | 25 | if (empty($now)) { |
@@ -31,6 +34,9 @@ discard block |
||
| 31 | 34 | } |
| 32 | 35 | } |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @param \DateTime $now |
|
| 39 | + */ |
|
| 34 | 40 | public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null) |
| 35 | 41 | { |
| 36 | 42 | $entity = $this->notificationEntityName(); |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace IrishDan\NotificationBundle\Channel; |
| 4 | 4 | |
| 5 | -use IrishDan\NotificationBundle\Message\BaseMessage; |
|
| 6 | 5 | use IrishDan\NotificationBundle\Message\MessageInterface; |
| 7 | 6 | use IrishDan\NotificationBundle\Notification\NotificationInterface; |
| 8 | 7 | use IrishDan\NotificationBundle\Formatter\MessageFormatterInterface; |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | return false; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param MessageInterface $data |
|
| 43 | + */ |
|
| 41 | 44 | protected function createDatabaseNotificationEntity($data) |
| 42 | 45 | { |
| 43 | 46 | if ($this->accessor === null) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace IrishDan\NotificationBundle\Dispatcher; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\EntityManager; |
| 6 | -use IrishDan\NotificationBundle\Message\BaseMessage; |
|
| 7 | 6 | use IrishDan\NotificationBundle\Message\MessageInterface; |
| 8 | 7 | use Symfony\Component\PropertyAccess\PropertyAccess; |
| 9 | 8 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace IrishDan\NotificationBundle\Dispatcher; |
| 4 | 4 | |
| 5 | -use IrishDan\NotificationBundle\Message\BaseMessage; |
|
| 6 | 5 | use IrishDan\NotificationBundle\Message\MessageInterface; |
| 7 | 6 | |
| 8 | 7 | class MailMessageDispatcher implements MessageDispatcherInterface |