summaryrefslogtreecommitdiff
path: root/matrix-specification/Enums/UserIdentifierType.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Enums/UserIdentifierType.php')
-rw-r--r--matrix-specification/Enums/UserIdentifierType.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/matrix-specification/Enums/UserIdentifierType.php b/matrix-specification/Enums/UserIdentifierType.php
new file mode 100644
index 0000000..d4be36e
--- /dev/null
+++ b/matrix-specification/Enums/UserIdentifierType.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace Matrix\Enums;
+
+enum UserIdentifierType: string implements \JsonSerializable
+{
+ case USER = "m.id.user";
+ case THIRDPARTY = "m.id.thirdparty";
+ case PHONE = "m.id.phone";
+
+ public function jsonSerialize(): string
+ {
+ return $this->value;
+ }
+}