Метод |
Описание |
|
getDelete ( ) : boolean |
|
|
getName ( ) : string |
return the name of the basket element. |
|
getOption ( string $name, mixed $default = null ) : mixed |
return a option value depends on the $name. |
|
getOptions ( ) : array |
return the basket element options array. |
|
getPosition ( ) : integer |
return the pos of the current basket element. |
|
getProduct ( ) : Sonata\Component\Product\ProductInterface |
Return the related product. |
|
getProductCode ( ) : string |
|
|
getProductId ( ) : integer |
return the product id. |
|
getProductManager ( ) : Sonata\Component\Product\ProductManagerInterface |
|
|
getProductProvider ( ) : Sonata\Component\Product\ProductProviderInterface |
|
|
getTotal ( boolean $vat = false ) : float |
Return the total (price * quantity). |
|
getVatAmount ( ) |
Returns the VAT amount. |
|
isPriceIncludingVat ( ) : boolean |
Returns if price is including VAT. |
|
isValid ( ) : boolean |
Check if the basket element is still valid. |
|
setDelete ( boolean $delete ) |
|
|
setOption ( string $name, mixed $value ) |
Define the option value. |
|
setPosition ( integer $position ) |
the position in the basket stack. |
|
setPriceIncludingVat ( float $priceIncludingVat ) |
Sets if current price is including VAT. |
|
setProduct ( string $productCode, Sonata\Component\Product\ProductInterface $product ) |
Define the related product. |
|
setProductDefinition ( ProductDefinition $productDefinition ) |
|
|
setProductId ( integer $productId ) |
Never call this method, use the setProduct instead. This method is only used
by the form framework. |
|
setUnitPrice ( float $unitPrice ) |
Sets product unit price. |
|