Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class IsMyself implements AssertionInterface |
||
14 | { |
||
15 | /** |
||
16 | * Assert that the user is the current user himself |
||
17 | * |
||
18 | * @param \Ecodev\Felix\Acl\Acl $acl |
||
19 | * @param RoleInterface $role |
||
20 | * @param ResourceInterface $resource |
||
21 | * @param string $privilege |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | 1 | public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null) |
|
36 |