summaryrefslogtreecommitdiff
path: root/matrix-specification/Responses/ClientLoginGetResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Responses/ClientLoginGetResponse.php')
-rw-r--r--matrix-specification/Responses/ClientLoginGetResponse.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/matrix-specification/Responses/ClientLoginGetResponse.php b/matrix-specification/Responses/ClientLoginGetResponse.php
new file mode 100644
index 0000000..b8badbd
--- /dev/null
+++ b/matrix-specification/Responses/ClientLoginGetResponse.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Matrix\Responses;
+
+use Matrix\Data\LoginFlow;
+use Matrix\Response;
+
+class ClientLoginGetResponse extends Response
+{
+ /**
+ * @param LoginFlow[] $loginFlows
+ */
+ public function __construct(
+ private array $loginFlows,
+ )
+ {}
+
+ public function getBody(): array
+ {
+ return [
+ "flows" => $this->loginFlows,
+ ];
+ }
+}