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.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/matrix-specification/Events/Event.php b/matrix-specification/Events/Event.php
index fe85f48..5b3e450 100644
--- a/matrix-specification/Events/Event.php
+++ b/matrix-specification/Events/Event.php
@@ -14,4 +14,17 @@ abstract class Event implements \JsonSerializable
protected EventType $type,
)
{}
+
+ /**
+ * @return array<string, mixed>
+ */
+ public function getContent(): array
+ {
+ return $this->content;
+ }
+
+ public function getType(): EventType
+ {
+ return $this->type;
+ }
}