@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Find a notification by ID. |
54 | 54 | * |
55 | 55 | * @param $notificationId |
56 | - * @return NotificationModel|\Illuminate\Database\Eloquent\Model|static |
|
56 | + * @return NotificationModel |
|
57 | 57 | * @throws \Fenos\Notifynder\Exceptions\NotificationNotFoundException |
58 | 58 | */ |
59 | 59 | public function find($notificationId) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param $toId |
90 | 90 | * @param $numbers |
91 | 91 | * @param string $order |
92 | - * @return mixed |
|
92 | + * @return integer |
|
93 | 93 | */ |
94 | 94 | public function readLimit($toId, $numbers, $order = 'ASC') |
95 | 95 | { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * given entity. |
102 | 102 | * |
103 | 103 | * @param $toId |
104 | - * @return Number |
|
104 | + * @return integer |
|
105 | 105 | */ |
106 | 106 | public function readAll($toId) |
107 | 107 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param $entityId |
129 | 129 | * @param $number |
130 | 130 | * @param $order |
131 | - * @return mixed |
|
131 | + * @return integer |
|
132 | 132 | */ |
133 | 133 | public function deleteLimit($entityId, $number, $order = 'asc') |
134 | 134 | { |
@@ -203,6 +203,9 @@ discard block |
||
203 | 203 | return $this->getPaginatedIfNeeded($notifications, $limit, $paginate); |
204 | 204 | } |
205 | 205 | |
206 | + /** |
|
207 | + * @param integer|null $paginate |
|
208 | + */ |
|
206 | 209 | protected function getPaginatedIfNeeded(NotifynderCollection $notifications, $limit, $paginate) |
207 | 210 | { |
208 | 211 | if($paginate === false || is_null($paginate)) { |
@@ -247,7 +250,7 @@ discard block |
||
247 | 250 | * Send single notification. |
248 | 251 | * |
249 | 252 | * @param array $info |
250 | - * @return static |
|
253 | + * @return NotificationModel |
|
251 | 254 | */ |
252 | 255 | public function sendOne(array $info) |
253 | 256 | { |