public function setFromPrice(\Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price) { $this->fromPriceAmount = $price->getAmount(); $this->fromPriceCurrency = $price->getCurrency(); return $this; }