| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class BookableIsAdminApproved implements AssertionInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Assert that the bookable's booking type is admin approved |
||
| 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 | 2 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
| 43 |