aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Notification
diff options
context:
space:
mode:
Diffstat (limited to 'Digitigrade/Notification')
-rw-r--r--Digitigrade/Notification/Notifyable.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/Digitigrade/Notification/Notifyable.php b/Digitigrade/Notification/Notifyable.php
new file mode 100644
index 0000000..510437e
--- /dev/null
+++ b/Digitigrade/Notification/Notifyable.php
@@ -0,0 +1,12 @@
+<?php
+namespace Digitigrade\Notification;
+
+interface Notifyable {
+ public function toJsonReference(): mixed;
+ public static function fromJsonReference(mixed $reference): self;
+ public function getNotificationTitle(): string;
+ public function getNotificationTitleLink(): ?string;
+ public function getNotificationBody(): ?string;
+ public function getNotificationImageUrl(): ?string;
+ public function getNotificationImageLink(): ?string;
+} \ No newline at end of file