Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class UserIsActive implements NamedAssertion |
||
14 | { |
||
15 | public function getName(): string |
||
16 | { |
||
17 | return "l'utilisateur est actif"; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * Assert that the current user is active. |
||
22 | * |
||
23 | * @param \Application\Acl\Acl $acl |
||
24 | * @param RoleInterface $role |
||
25 | * @param ResourceInterface $resource |
||
26 | * @param string $privilege |
||
27 | * |
||
28 | * @return bool |
||
29 | */ |
||
30 | 2 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
38 | } |
||
39 | } |
||
40 |