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