Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function getProductBundleForProduct(ProductInterface $product): ProductBundleInterface |
||
33 | { |
||
34 | $productBundle = $this->productBundleRepository->findOneBy(['product' => $product]); |
||
35 | if (null === $productBundle) { |
||
36 | throw new ProductIsNotAProductBundleException($product); |
||
37 | } |
||
38 | return $productBundle; |
||
39 | } |
||
40 | } |
||
41 |