| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function createVariantPdfModelCollection(Collection $wishlistProducts): ArrayCollection |
||
| 30 | { |
||
| 31 | $pdfModelsCollection = new ArrayCollection(); |
||
| 32 | |||
| 33 | /** @var WishlistItem $wishlistProduct */ |
||
| 34 | foreach ($wishlistProducts as $wishlistProduct) { |
||
| 35 | /** @var VariantPdfModel $variantPdfModel */ |
||
| 36 | $variantPdfModel = $this->pdfModelCreator->createWishlistItemToPdf($wishlistProduct); |
||
| 37 | $pdfModelsCollection->add($variantPdfModel); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $pdfModelsCollection; |
||
| 41 | } |
||
| 43 |