Метод | Описание | |
---|---|---|
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. |
public setProduct ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public setProductId ( integer $productId ) | ||
$productId | integer | the product id |
public setQuantity ( integer $quantity ) | ||
$quantity | integer |