Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
47 | public function update(OrderInterface $order) |
||
48 | { |
||
49 | /** @var CurrencyInterface $currency */ |
||
50 | $currency = $this->currencyRepository->findOneBy(['code' => $this->currencyContext->getCurrencyCode()]); |
||
51 | |||
52 | $order->setCurrencyCode($currency->getCode()); |
||
53 | $order->setExchangeRate($currency->getExchangeRate()); |
||
54 | } |
||
55 | } |
||
56 |