WellCommerce\Bundle\OrderBundle\Entity\OrderProduct::setSellPrice PHP Method

setSellPrice() public method

public setSellPrice ( WellCommerce\Bundle\AppBundle\Entity\PriceInterface $sellPrice )
$sellPrice WellCommerce\Bundle\AppBundle\Entity\PriceInterface
    public function setSellPrice(PriceInterface $sellPrice)
    {
        $this->sellPrice = $sellPrice;
    }

Usage Example

 public function create() : OrderProductInterface
 {
     $orderProduct = new OrderProduct();
     $orderProduct->setQuantity(1);
     $orderProduct->setWeight(0);
     $orderProduct->setBuyPrice(new Price());
     $orderProduct->setSellPrice(new DiscountablePrice());
     $orderProduct->setCreatedAt(new \DateTime());
     $orderProduct->setUpdatedAt(new \DateTime());
     $orderProduct->setOptions([]);
     return $orderProduct;
 }
All Usage Examples Of WellCommerce\Bundle\OrderBundle\Entity\OrderProduct::setSellPrice