PHP 클래스 Sonata\Component\Product\AddBasket

파일 보기 프로젝트 열기: sonata-project/ecommerce

공개 메소드들

메소드 설명
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