diff options
| author | Daniel Weipert <git@mail.dweipert.de> | 2025-09-25 13:38:24 +0200 |
|---|---|---|
| committer | Daniel Weipert <git@mail.dweipert.de> | 2025-09-25 13:38:24 +0200 |
| commit | b19a8f63ad727a3633885d3f2b81edf8181a53b9 (patch) | |
| tree | 6b5fd70224a125a16010a291e5fd0df834e9436f /matrix-specification/Responses/LoginFlow.php | |
| parent | b08047ba485f86038f33175162943c0a9878ab1a (diff) | |
matrix-specification split work in progress
Diffstat (limited to 'matrix-specification/Responses/LoginFlow.php')
| -rw-r--r-- | matrix-specification/Responses/LoginFlow.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/matrix-specification/Responses/LoginFlow.php b/matrix-specification/Responses/LoginFlow.php deleted file mode 100644 index 6ddb703..0000000 --- a/matrix-specification/Responses/LoginFlow.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -namespace Matrix\Responses; - -use Matrix\Enums\LoginType; - -class LoginFlow implements \JsonSerializable -{ - public function __construct( - private LoginType $type, - private ?bool $getLoginToken = null, - ) - {} - - public function jsonSerialize(): array - { - $loginFlow = [ - "type" => $this->type, - ]; - - $loginFlow += match ($this->type) { - LoginType::TOKEN => [ - "get_login_token" => $this->getLoginToken, - ], - - default => [], - }; - - return $loginFlow; - } -} |
