Total Complexity | 7 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class MealVoucherResolver implements MealVoucherResolverInterface |
||
19 | { |
||
20 | public function resolve(MollieGatewayConfigInterface $method, OrderItemInterface $item): ?string |
||
21 | { |
||
22 | if ($method->getMethodId() === MealVoucher::MEAL_VOUCHERS) { |
||
23 | return $this->getMealVoucherCategory($method, $item); |
||
24 | } |
||
25 | |||
26 | return null; |
||
27 | } |
||
28 | |||
29 | private function getMealVoucherCategory(MollieGatewayConfigInterface $method, OrderItemInterface $item): ?string |
||
39 | } |
||
40 | |||
41 | private function getMealVoucherFromItem(OrderItemInterface $item): ?string |
||
48 |
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.