public function setToPrice(\Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface $price) { $this->toPriceAmount = $price->getAmount(); $this->toPriceCurrency = $price->getCurrency(); return $this; }