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