public calculatePrice ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Currency\CurrencyInterface $currency, boolean $vat = false, integer $quantity = 1 ) : float | ||
$product | Sonata\Component\Product\ProductInterface | A product instance |
$currency | Sonata\Component\Currency\CurrencyInterface | A currency instance |
$vat | boolean | Returns price including VAT? |
$quantity | integer | Defaults to one |
return | float |