summaryrefslogtreecommitdiff
path: root/src/Events/Event.php
diff options
context:
space:
mode:
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;
}