| @@ 185-194 (lines=10) @@ | ||
| 182 | * @param array $info |
|
| 183 | * @return mixed |
|
| 184 | */ |
|
| 185 | public function send($info = []) |
|
| 186 | { |
|
| 187 | $info = (count($info) > 0) ? $info : $this->toArray(); |
|
| 188 | ||
| 189 | $notificationSent = $this->notifynderSender->send($info, $this->defaultCategory); |
|
| 190 | ||
| 191 | $this->refresh(); |
|
| 192 | ||
| 193 | return $notificationSent; |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * Send immediately the notification |
|
| @@ 203-212 (lines=10) @@ | ||
| 200 | * @param array $info |
|
| 201 | * @return mixed |
|
| 202 | */ |
|
| 203 | public function sendNow($info = []) |
|
| 204 | { |
|
| 205 | $info = (count($info) > 0) ? $info : $this->toArray(); |
|
| 206 | ||
| 207 | $notificationsSent = $this->notifynderSender->sendNow($info, $this->defaultCategory); |
|
| 208 | ||
| 209 | $this->refresh(); |
|
| 210 | ||
| 211 | return $notificationsSent; |
|
| 212 | } |
|
| 213 | ||
| 214 | /** |
|
| 215 | * Send One notification. |
|
| @@ 220-229 (lines=10) @@ | ||
| 217 | * @param array $info |
|
| 218 | * @return mixed |
|
| 219 | */ |
|
| 220 | public function sendOne($info = []) |
|
| 221 | { |
|
| 222 | $info = (count($info) > 0) ? $info : $this->toArray(); |
|
| 223 | ||
| 224 | $notificationSent = $this->notifynderSender->sendOne($info, $this->defaultCategory); |
|
| 225 | ||
| 226 | $this->refresh(); |
|
| 227 | ||
| 228 | return $notificationSent; |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * Send multiple notifications. |
|
| @@ 237-246 (lines=10) @@ | ||
| 234 | * @param array $info |
|
| 235 | * @return Senders\SendMultiple |
|
| 236 | */ |
|
| 237 | public function sendMultiple($info = []) |
|
| 238 | { |
|
| 239 | $info = (count($info) > 0) ? $info : $this->toArray(); |
|
| 240 | ||
| 241 | $notificationsSent = $this->notifynderSender->sendMultiple($info, $this->defaultCategory); |
|
| 242 | ||
| 243 | $this->refresh(); |
|
| 244 | ||
| 245 | return $notificationsSent; |
|
| 246 | } |
|
| 247 | ||
| 248 | /** |
|
| 249 | * Send a group of notifications. |
|