summaryrefslogtreecommitdiff
path: root/matrix-specification/Events/SenderEvent.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/SenderEvent.php
parent2386148b8f048ba40d9f26cc97898bdcdc778ea2 (diff)
updateHEADmain
Diffstat (limited to 'matrix-specification/Events/SenderEvent.php')
-rw-r--r--matrix-specification/Events/SenderEvent.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/matrix-specification/Events/SenderEvent.php b/matrix-specification/Events/SenderEvent.php
index f3d4ceb..86ba65e 100644
--- a/matrix-specification/Events/SenderEvent.php
+++ b/matrix-specification/Events/SenderEvent.php
@@ -17,4 +17,18 @@ abstract class SenderEvent extends Event
{
parent::__construct($content, $type);
}
+
+ public function jsonSerialize(): array
+ {
+ return [
+ "content" => $this->content,
+ "sender" => $this->sender,
+ "type" => $this->type,
+ ];
+ }
+
+ public function getSender(): string
+ {
+ return $this->sender;
+ }
}