diff options
Diffstat (limited to 'matrix-specification/Responses/ClientLoginGetResponse.php')
| -rw-r--r-- | matrix-specification/Responses/ClientLoginGetResponse.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/matrix-specification/Responses/ClientLoginGetResponse.php b/matrix-specification/Responses/ClientLoginGetResponse.php new file mode 100644 index 0000000..e0ccc26 --- /dev/null +++ b/matrix-specification/Responses/ClientLoginGetResponse.php @@ -0,0 +1,21 @@ +<?php + +namespace Matrix\Responses; + +class ClientLoginGetResponse implements \JsonSerializable +{ + /** + * @param LoginFlow[] $loginFlows + */ + public function __construct( + private array $loginFlows, + ) + {} + + public function jsonSerialize(): array + { + return [ + "flows" => $this->loginFlows, + ]; + } +} |
