Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function update(OrderInterface $order) |
||
41 | { |
||
42 | $currencyCode = $order->getCurrencyCode(); |
||
43 | /** @var CurrencyInterface $currency */ |
||
44 | $currency = $this->currencyRepository->findOneBy(['code' => $currencyCode]); |
||
45 | |||
46 | Assert::notNull($currency); |
||
47 | |||
48 | $order->setExchangeRate($currency->getExchangeRate()); |
||
49 | } |
||
50 | } |
||
51 |