Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class BookingIsPendingApplication implements NamedAssertion |
||
16 | { |
||
17 | public function getName(): string |
||
18 | { |
||
19 | return 'le réservable est pas encore confirmé'; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Assert that a booking is a pending application. |
||
24 | * |
||
25 | * @param \Application\Acl\Acl $acl |
||
26 | * @param RoleInterface $role |
||
27 | * @param ResourceInterface $resource |
||
28 | * @param string $privilege |
||
29 | * |
||
30 | * @return bool |
||
31 | */ |
||
32 | 1 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
48 | } |
||
49 | } |
||
50 |
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.