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