| 1 | <?php |
||
| 5 | class NotificationFactory |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Creates the Notification class according to the format. |
||
| 9 | * |
||
| 10 | * @param string $format "gcm", "apple", "template" |
||
| 11 | * @param string|array $alert "data" for gcm, "alert" for apple, payload for template |
||
| 12 | * @param array $options message options |
||
| 13 | * @param string|array $tagsOrTagExpression a tag or tags array or tag expression |
||
| 14 | * @param \DateTime $scheduleTime the date to deliver the notification at |
||
| 15 | * |
||
| 16 | * @throws \RuntimeException |
||
| 17 | * |
||
| 18 | * @return NotificationInterface |
||
| 19 | */ |
||
| 20 | public function createNotification($format, $alert, array $options = [], $tagsOrTagExpression = '', \DateTime $scheduleTime = null) |
||
| 30 | } |
||
| 31 |