@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param DatabaseNotificationInterface $notification |
| 87 | - * @param null $now |
|
| 87 | + * @param null|\DateTime $now |
|
| 88 | 88 | * @param bool $flush |
| 89 | 89 | */ |
| 90 | 90 | public function setReadAtDate(DatabaseNotificationInterface $notification, $now = null, $flush = true) |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * @param NotifiableInterface $notifiable |
| 107 | - * @param null $now |
|
| 107 | + * @param \DateTime $now |
|
| 108 | 108 | */ |
| 109 | 109 | public function setUsersNotificationsAsRead(NotifiableInterface $notifiable, $now = null) |
| 110 | 110 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * @return bool|mixed |
|
| 162 | + * @return string |
|
| 163 | 163 | */ |
| 164 | 164 | protected function notificationEntityName() |
| 165 | 165 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * @param DatabaseNotificationInterface $notification |
| 115 | - * @return bool |
|
| 115 | + * @return boolean|null |
|
| 116 | 116 | */ |
| 117 | 117 | public function markAsRead(DatabaseNotificationInterface $notification) |
| 118 | 118 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | 130 | * @param NotifiableInterface $user |
| 131 | - * @return bool |
|
| 131 | + * @return boolean|null |
|
| 132 | 132 | */ |
| 133 | 133 | public function markAllAsRead(NotifiableInterface $user) |
| 134 | 134 | { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param $data |
| 40 | 40 | * @param $user |
| 41 | 41 | * @param $template |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | */ |
| 44 | 44 | protected function renderTwigTemplate($data, $user, $template) |
| 45 | 45 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @param mixed $channeName |
|
| 141 | + * @param string $channelName |
|
| 142 | 142 | */ |
| 143 | 143 | public function setChannelName($channelName) |
| 144 | 144 | { |
@@ -157,6 +157,9 @@ |
||
| 157 | 157 | $questionHelper->writeGeneratorSummary($output, []); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param InputInterface $input |
|
| 162 | + */ |
|
| 160 | 163 | protected function createYesNoQuestion($questionHelper, $input, $channel) |
| 161 | 164 | { |
| 162 | 165 | $question = new Question( |
@@ -64,6 +64,10 @@ |
||
| 64 | 64 | ]; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $string |
|
| 69 | + * @param \IrishDan\NotificationBundle\Message\MessageInterface $message |
|
| 70 | + */ |
|
| 67 | 71 | protected function log($string, $message) |
| 68 | 72 | { |
| 69 | 73 | if ($this->logger) { |