| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | private function getMealVoucherFromItem(OrderItemInterface $item): string |
||
| 40 | { |
||
| 41 | $product = $item->getProduct(); |
||
| 42 | |||
| 43 | if (null === $product->getProductType()) { |
||
| 44 | throw new \LogicException(\sprintf('No product category found in product name %s', $product->getName())); |
||
| 45 | } |
||
| 46 | |||
| 47 | return $product->getProductType()->getName(); |
||
| 48 | } |
||
| 50 |