| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class IsRecipient implements AssertionInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Assert that the current user is the recipient |
||
| 17 | * |
||
| 18 | * @param Acl $acl |
||
| 19 | * @param RoleInterface $role |
||
| 20 | * @param ResourceInterface $resource |
||
| 21 | * @param string $privilege |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null) |
||
| 32 |