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