summaryrefslogtreecommitdiff
path: root/src/Types/LoginFlow.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Types/LoginFlow.php')
-rw-r--r--src/Types/LoginFlow.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Types/LoginFlow.php b/src/Types/LoginFlow.php
deleted file mode 100644
index bd948a8..0000000
--- a/src/Types/LoginFlow.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-namespace App\Types;
-
-use App\Support\ArrayTransformable;
-
-class LoginFlow implements ArrayTransformable
-{
- public function __construct(
- private LoginType $type,
- private bool $get_login_token = false,
- )
- {}
-
- public function toArray(): array
- {
- $flow = [
- "type" => $this->type,
- ];
-
- if ($this->type == LoginType::TOKEN) {
- $flow["get_login_token"] = $this->get_login_token;
- }
-
- return $flow;
- }
-}