Total Complexity | 4 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Checked implements Interfaces\IStatus |
||
15 | { |
||
16 | 6 | public function allowLogin(?int $status): bool |
|
17 | { |
||
18 | 6 | return is_int($status) && in_array($status, [ |
|
19 | 6 | Interfaces\IUser::USER_STATUS_ENABLED, |
|
20 | Interfaces\IUser::USER_STATUS_ONLY_LOGIN, |
||
21 | ]); |
||
22 | } |
||
23 | |||
24 | 6 | public function allowCert(?int $status): bool |
|
29 | ]); |
||
30 | } |
||
32 |