diff options
Diffstat (limited to 'Psso/Context.php')
| -rw-r--r-- | Psso/Context.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Psso/Context.php b/Psso/Context.php index 4a2cd82..5af2102 100644 --- a/Psso/Context.php +++ b/Psso/Context.php @@ -10,4 +10,12 @@ class Context { public function addResult(ChallengeResult $result): void { $this->results[] = $result; } + + public function setTag(string $tag): void { + if (!$this->hasTag($tag)) $this->tags[] = $tag; + } + + public function hasTag(string $tag): bool { + return in_array($tag, $this->tags); + } } |
