diff options
Diffstat (limited to 'matrix-specification/Enums/AuthenticationType.php')
-rw-r--r-- | matrix-specification/Enums/AuthenticationType.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/matrix-specification/Enums/AuthenticationType.php b/matrix-specification/Enums/AuthenticationType.php new file mode 100644 index 0000000..e335eed --- /dev/null +++ b/matrix-specification/Enums/AuthenticationType.php @@ -0,0 +1,19 @@ +<?php + +namespace Matrix\Enums; + +enum AuthenticationType: string implements \JsonSerializable +{ + case DUMMY = "m.login.dummy"; + case EMAIL_IDENTITY = "m.login.email.identity"; + case MSISDN = "m.login.msisdn"; + case PASSWORD = "m.login.password"; + case RECAPTCHA = "m.login.recaptcha"; + case REGISTRATION_TOKEN = "m.login.registration_token"; + case SSO = "m.login.sso"; + + public function jsonSerialize(): string + { + return $this->value; + } +} |