Elcodi\Plugin\CustomShippingBundle\Entity\Traits\ShippingPriceRangeTrait::setToPrice PHP Method

setToPrice() public method

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