Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class BookingIsSelfApproved implements AssertionInterface |
||
15 | { |
||
16 | /** |
||
17 | * Assert that booking's bookable is self approved (boats) or has no bookable |
||
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 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.