getSellPrice() public method

public getSellPrice ( ) : WellCommerce\Bundle\AppBundle\Entity\PriceInterface
return WellCommerce\Bundle\AppBundle\Entity\PriceInterface
 /**
  * Updates an existing order's product
  *
  * @param OrderProductInterface $orderProduct
  * @param array                 $productValues
  */
 protected function updateOrderProduct(OrderProductInterface $orderProduct, array $productValues)
 {
     $sellPrice = $orderProduct->getSellPrice();
     $grossAmount = $productValues['gross_amount'];
     $taxRate = $orderProduct->getSellPrice()->getTaxRate();
     $netAmount = TaxHelper::calculateNetPrice($grossAmount, $taxRate);
     $sellPrice->setTaxRate($taxRate);
     $sellPrice->setTaxAmount($grossAmount - $netAmount);
     $sellPrice->setNetAmount($netAmount);
     $sellPrice->setGrossAmount($grossAmount);
     $orderProduct->setWeight($productValues['weight']);
     $orderProduct->setQuantity($productValues['quantity']);
 }
 /**
  * Creates a single PayPal item from given order product
  *
  * @param OrderProductInterface $orderProduct
  *
  * @return Item
  */
 protected function createItem(OrderProductInterface $orderProduct) : Item
 {
     $item = new Item();
     $item->setName($orderProduct->getProduct()->translate()->getName());
     $item->setCurrency($orderProduct->getSellPrice()->getCurrency());
     $item->setQuantity($orderProduct->getQuantity());
     $item->setSku($orderProduct->getProduct()->getSku());
     $item->setPrice($orderProduct->getSellPrice()->getNetAmount());
     $item->setTax($orderProduct->getSellPrice()->getTaxAmount());
     return $item;
 }