PHP Класс Sonata\Component\Product\AddBasket

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getProductId() публичный Метод

public getProductId ( ) : integer
Результат integer the product id

getQuantity() публичный Метод

public getQuantity ( ) : the
Результат the quantity

setProduct() публичный Метод

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

setProductId() публичный Метод

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() публичный Метод

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