priceResolver = $priceResolver; } public function init(OrderProductInterface $orderProduct) { $orderProduct->setTitle($orderProduct->getTitleOrderShop()); $orderProduct->setPrice($this->priceResolver->getPrice($orderProduct->getProduct())); $orderProduct->setBuyingPrice($this->priceResolver->getBuyingPrice($orderProduct->getProduct())); $orderProduct->setUnit($orderProduct->getProduct()->getUnitInherited()); $orderProduct->setTaxRate($orderProduct->getProduct()->getTaxRateInherited()); $orderProduct->setQuantityProduct($orderProduct->getProduct()->getQuantityInherited()); return $orderProduct; } }