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