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