summaryrefslogtreecommitdiff
path: root/src/Events/Event.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-09-19 14:29:17 +0200
committerDaniel Weipert <git@mail.dweipert.de>2025-09-19 14:29:17 +0200
commit2ae0c2fa2a0bb5a7cd1fd9da1c6d2a6090126e67 (patch)
treef8cd230b33f36cbee57df276e52f1d393c296e13 /src/Events/Event.php
parenta20d44d64f02f86d23cba1f1a886352c5f744a1a (diff)
sending messages creates message event in database
Diffstat (limited to 'src/Events/Event.php')
-rw-r--r--src/Events/Event.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Events/Event.php b/src/Events/Event.php
index cab1b14..7dbf242 100644
--- a/src/Events/Event.php
+++ b/src/Events/Event.php
@@ -11,6 +11,10 @@ abstract class Event
)
{}
- abstract public function fromJson(string $json): static;
+ abstract public function fromJson(string $json): self;
+
+ /**
+ * @return array<string, mixed>
+ */
abstract public function toJsonEncodeable(): array;
}