Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function createNewWithValues( |
||
18 | int $position, |
||
19 | bool $isPresentationSlot = false |
||
20 | ): ProductBundleSlotOptionsInterface |
||
21 | { |
||
22 | $productBundleSlotOptions = $this->createNew(); |
||
23 | $productBundleSlotOptions->setPosition($position); |
||
24 | if($isPresentationSlot) { |
||
25 | $productBundleSlotOptions->isPresentationSlot(); |
||
26 | } |
||
27 | return $productBundleSlotOptions; |
||
28 | } |
||
29 | } |
||
30 |