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