PHP Class Sonata\Component\Product\AddBasket

Afficher le fichier Open project: sonata-project/ecommerce

Méthodes publiques

Méthode 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 méthode

public getProductId ( ) : integer
Résultat integer the product id

getQuantity() public méthode

public getQuantity ( ) : the
Résultat the quantity

setProduct() public méthode

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

setProductId() public méthode

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 méthode

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