aboutsummaryrefslogtreecommitdiff
path: root/Psso/Context.php
diff options
context:
space:
mode:
Diffstat (limited to 'Psso/Context.php')
-rw-r--r--Psso/Context.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/Psso/Context.php b/Psso/Context.php
new file mode 100644
index 0000000..4a2cd82
--- /dev/null
+++ b/Psso/Context.php
@@ -0,0 +1,13 @@
+<?php
+namespace Psso;
+
+class Context {
+ public protected(set) array $results = [];
+ public ?string $user = null;
+ public protected(set) array $groups = [];
+ public protected(set) array $tags = [];
+
+ public function addResult(ChallengeResult $result): void {
+ $this->results[] = $result;
+ }
+}