| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function create(AdjustmentInterface $adjustment, int $additionalAmount, string $currency): AdjustmentView |
||
| 25 | { |
||
| 26 | /** @var AdjustmentView $adjustmentView */ |
||
| 27 | $adjustmentView = new $this->adjustmentViewClass(); |
||
| 28 | |||
| 29 | $adjustmentView->name = $adjustment->getLabel(); |
||
| 30 | $adjustmentView->amount = $this->priceViewFactory->create($adjustment->getAmount() + $additionalAmount, $currency); |
||
| 31 | |||
| 32 | return $adjustmentView; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |