summaryrefslogtreecommitdiff
path: root/src/Events/RoomMemberEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Events/RoomMemberEvent.php')
-rw-r--r--src/Events/RoomMemberEvent.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/Events/RoomMemberEvent.php b/src/Events/RoomMemberEvent.php
deleted file mode 100644
index 79ba0cc..0000000
--- a/src/Events/RoomMemberEvent.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace App\Events;
-
-use App\Types\EventType;
-use App\Types\MembershipState;
-
-class RoomMemberEvent extends Event
-{
- public function __construct(
- private string $sender,
- private string $stateKey,
- private MembershipState $membership,
- )
- {
- parent::__construct(EventType::ROOM_MEMBER);
- }
-
- public function fromJson(string $json): self
- {
- }
-
- public function toJsonEncodeable(): array
- {
- return [
- "type" => $this->type,
- "sender" => $this->sender,
- "state_key" => $this->stateKey,
- "event_id" => "\$0",
- "origin_server_ts" => time(),
- "content" => [
- "membership" => $this->membership,
- ],
- ];
- }
-}