| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function create(AdjustmentInterface $adjustment, int $additionalAmount): AdjustmentView |
||
| 21 | { |
||
| 22 | /** @var AdjustmentView $adjustmentView */ |
||
| 23 | $adjustmentView = new $this->adjustmentViewClass(); |
||
| 24 | $adjustmentView->name = $adjustment->getLabel(); |
||
| 25 | $adjustmentView->amount = $adjustment->getAmount() + $additionalAmount; |
||
| 26 | $adjustmentView->neutral = $adjustment->isNeutral(); |
||
| 27 | |||
| 28 | return $adjustmentView; |
||
| 29 | } |
||
| 31 |