PHP Class Sonata\Component\Product\AddBasket

Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
getProductId ( ) : integer
getQuantity ( ) : the
setProduct ( Sonata\Component\Product\ProductInterface $product ) Set the related product.
setProductId ( integer $productId ) The product id is only set if there is not product attached to this object.
setQuantity ( integer $quantity ) Set the quantity.

Method Details

getProductId() public method

public getProductId ( ) : integer
return integer the product id

getQuantity() public method

public getQuantity ( ) : the
return the quantity

setProduct() public method

Set the related product.
public setProduct ( Sonata\Component\Product\ProductInterface $product )
$product Sonata\Component\Product\ProductInterface

setProductId() public method

The product id is only set if there is not product attached to this object.
public setProductId ( integer $productId )
$productId integer the product id

setQuantity() public method

Set the quantity.
public setQuantity ( integer $quantity )
$quantity integer