Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class YubikeyVerificationResult |
||
24 | { |
||
25 | /** |
||
26 | * @param bool $clientError |
||
27 | * @param bool $serverError |
||
28 | */ |
||
29 | public function __construct(private $clientError, private $serverError) |
||
30 | { |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function isSuccessful(): bool |
||
37 | { |
||
38 | return !$this->clientError && !$this->serverError; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return boolean |
||
43 | */ |
||
44 | public function isClientError() |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return boolean |
||
51 | */ |
||
52 | public function isServerError() |
||
55 | } |
||
56 | } |
||
57 |