Property | Type | Description | |
---|---|---|---|
$currency | Sonata\Component\Currency\CurrencyInterface | ||
$product | Sonata\Component\Product\ProductInterface | ||
$quantity | integer | ||
$vat | boolean |
Method | Description | |
---|---|---|
__construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat, integer $quantity ) | ||
getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface | ||
getProduct ( ) : Sonata\Component\Product\ProductInterface | ||
getQuantity ( ) : integer | ||
getVat ( ) : boolean | ||
setQuantity ( integer $quantity ) | ||
setVat ( boolean $vat ) |
public __construct ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat, integer $quantity ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$currency | Sonata\Component\Currency\CurrencyInterface | |
$vat | boolean | |
$quantity | integer |
public getCurrency ( ) : Sonata\Component\Currency\CurrencyInterface | ||
return | Sonata\Component\Currency\CurrencyInterface |
public getProduct ( ) : Sonata\Component\Product\ProductInterface | ||
return | Sonata\Component\Product\ProductInterface |
protected CurrencyInterface,Sonata\Component\Currency $currency | ||
return | Sonata\Component\Currency\CurrencyInterface |
protected ProductInterface,Sonata\Component\Product $product | ||
return | Sonata\Component\Product\ProductInterface |