PHP Interface WellCommerce\Bundle\OrderBundle\Manager\OrderProductManagerInterface

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface
Exibir arquivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
addProductToOrder ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, integer $quantity = 1, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
changeOrderProductQuantity ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order, integer $quantity )
createOrderProduct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
deleteOrderProduct ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
findProductInOrder ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )

Method Details

addProductToOrder() public method

public addProductToOrder ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, integer $quantity = 1, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface
$quantity integer
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface

changeOrderProductQuantity() public method

public changeOrderProductQuantity ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order, integer $quantity )
$orderProduct WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface
$quantity integer

createOrderProduct() public method

public createOrderProduct ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order ) : WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface
return WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface

deleteOrderProduct() public method

public deleteOrderProduct ( WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface $orderProduct, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
$orderProduct WellCommerce\Bundle\OrderBundle\Entity\OrderProductInterface
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface

findProductInOrder() public method

public findProductInOrder ( WellCommerce\Bundle\ProductBundle\Entity\ProductInterface $product, WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant = null, WellCommerce\Bundle\OrderBundle\Entity\OrderInterface $order )
$product WellCommerce\Bundle\ProductBundle\Entity\ProductInterface
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface
$order WellCommerce\Bundle\OrderBundle\Entity\OrderInterface