Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function createWithVariantAndImagePath( |
||
19 | ProductVariantInterface $variant, |
||
20 | string $path, |
||
21 | int $quantity, |
||
22 | string $actualVariant |
||
23 | ): VariantPdfModel { |
||
24 | $productPdfModel = new VariantPdfModel(); |
||
25 | |||
26 | $productPdfModel->setVariant($variant); |
||
27 | $productPdfModel->setImagePath($path); |
||
28 | $productPdfModel->setQuantity($quantity); |
||
29 | $productPdfModel->setActualVariant($actualVariant); |
||
30 | |||
31 | return $productPdfModel; |
||
32 | } |
||
34 |