diff options
Diffstat (limited to 'matrix-specification/Enums/LoginType.php')
| -rw-r--r-- | matrix-specification/Enums/LoginType.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/matrix-specification/Enums/LoginType.php b/matrix-specification/Enums/LoginType.php new file mode 100644 index 0000000..b268cf5 --- /dev/null +++ b/matrix-specification/Enums/LoginType.php @@ -0,0 +1,14 @@ +<?php + +namespace Matrix\Enums; + +enum LoginType: string implements \JsonSerializable +{ + case PASSWORD = "m.login.password"; + case TOKEN = "m.login.token"; + + public function jsonSerialize(): string + { + return $this->value; + } +} |
