Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class BeforeLogin |
||
10 | { |
||
11 | private bool $isValid = true; |
||
12 | |||
13 | 22 | public function __construct(private IdentityInterface $identity) |
|
14 | { |
||
15 | 22 | } |
|
16 | |||
17 | 1 | public function invalidate(): void |
|
18 | { |
||
19 | 1 | $this->isValid = false; |
|
20 | } |
||
21 | |||
22 | 21 | public function isValid(): bool |
|
23 | { |
||
24 | 21 | return $this->isValid; |
|
25 | } |
||
26 | |||
27 | 1 | public function getIdentity(): IdentityInterface |
|
30 | } |
||
31 | } |
||
32 |