Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class PartiallyLoggedIn implements UserInterface |
||
14 | { |
||
15 | protected UserInterface $user; |
||
16 | |||
17 | /** |
||
18 | * Class constructor. |
||
19 | * |
||
20 | * @param UserInterface $user |
||
21 | */ |
||
22 | 6 | public function __construct(UserInterface $user) |
|
23 | { |
||
24 | 6 | $this->user = $user; |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get wrapper user. |
||
29 | * |
||
30 | * @return UserInterface |
||
31 | */ |
||
32 | 1 | public function getUser(): UserInterface |
|
33 | { |
||
34 | 1 | return $this->user; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 1 | public function getAuthId(): string |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 1 | public function verifyPassword(string $password): bool |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | 1 | public function getAuthChecksum(): string |
|
57 | { |
||
58 | 1 | return $this->user->getAuthChecksum(); |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | 1 | public function getAuthRole(?ContextInterface $context = null): int|array|string |
|
67 | } |
||
68 | |||
69 | /** |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | 1 | public function requiresMfa(): bool |
|
75 | } |
||
76 | } |
||
77 |