summaryrefslogtreecommitdiff
path: root/matrix-specification/Enums/EventType.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Enums/EventType.php')
-rw-r--r--matrix-specification/Enums/EventType.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/matrix-specification/Enums/EventType.php b/matrix-specification/Enums/EventType.php
new file mode 100644
index 0000000..bf805b2
--- /dev/null
+++ b/matrix-specification/Enums/EventType.php
@@ -0,0 +1,17 @@
+<?php
+
+namespace Matrix\Enums;
+
+enum EventType: string implements \JsonSerializable
+{
+ case PRESENCE = "m.presence";
+
+ case ROOM_MEMBER = "m.room.member";
+ case ROOM_MESSAGE = "m.room.message";
+ case ROOM_NAME = "m.room.name";
+
+ public function jsonSerialize(): string
+ {
+ return $this->value;
+ }
+}