diff options
Diffstat (limited to 'Psso/ChallengeResult.php')
| -rw-r--r-- | Psso/ChallengeResult.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Psso/ChallengeResult.php b/Psso/ChallengeResult.php new file mode 100644 index 0000000..f8ced88 --- /dev/null +++ b/Psso/ChallengeResult.php @@ -0,0 +1,21 @@ +<?php +namespace Psso; + +class ChallengeResult { + public protected(set) string $type; + public protected(set) bool $successful; + public protected(set) ?string $user; + public protected(set) ?string $message; + + public function __construct( + string $type, + bool $successful, + ?string $user = null, + ?string $message = null + ) { + $this->type = $type; + $this->successful = $successful; + $this->user = $user; + $this->message = $message; + } +} |
