summaryrefslogtreecommitdiff
path: root/matrix-specification/Events/Event.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Events/Event.php')
-rw-r--r--matrix-specification/Events/Event.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/matrix-specification/Events/Event.php b/matrix-specification/Events/Event.php
new file mode 100644
index 0000000..fe85f48
--- /dev/null
+++ b/matrix-specification/Events/Event.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Matrix\Events;
+
+use Matrix\Enums\EventType;
+
+abstract class Event implements \JsonSerializable
+{
+ /**
+ * @param array<string, mixed> $content
+ */
+ public function __construct(
+ protected array $content,
+ protected EventType $type,
+ )
+ {}
+}