summaryrefslogtreecommitdiff
path: root/matrix-specification/Events/Event.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-03-05 14:57:28 +0100
committerDaniel Weipert <git@mail.dweipert.de>2026-03-05 14:57:28 +0100
commitbd11271621bd3759cfd194ed0119c0dc28155fd0 (patch)
tree319b4790d4e2b05513abf023732ed6fb0717f603 /matrix-specification/Events/Event.php
parent2386148b8f048ba40d9f26cc97898bdcdc778ea2 (diff)
updateHEADmain
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;
+ }
}