class Calculator

Class Calculator

Methods

__construct()

No description

load( Product $product, Country $country, State $state = null)

No description

loadTaxRule( TaxRule $taxRule, Country $country, Product $product, State $state = null)

No description

loadTaxRuleWithoutProduct( TaxRule $taxRule, Country $country, State $state = null)

No description

getTaxAmountFromUntaxedPrice($untaxedPrice, $taxCollection = null)

No description

getTaxAmountFromTaxedPrice($taxedPrice)

No description

int
getTaxedPrice($untaxedPrice, null $taxCollection = null, null $askedLocale = null)

No description

getUntaxedPrice($taxedPrice)

No description

Details

at line 46
__construct()

at line 51
load( Product $product, Country $country, State $state = null)

Parameters

Product $product
Country $country
State $state

at line 75
loadTaxRule( TaxRule $taxRule, Country $country, Product $product, State $state = null)

Parameters

TaxRule $taxRule
Country $country
Product $product
State $state

at line 100
loadTaxRuleWithoutProduct( TaxRule $taxRule, Country $country, State $state = null)

Parameters

TaxRule $taxRule
Country $country
State $state

at line 122
getTaxAmountFromUntaxedPrice($untaxedPrice, $taxCollection = null)

Parameters

$untaxedPrice
$taxCollection

at line 127
getTaxAmountFromTaxedPrice($taxedPrice)

Parameters

$taxedPrice

at line 140
int getTaxedPrice($untaxedPrice, null $taxCollection = null, null $askedLocale = null)

Parameters

$untaxedPrice
null $taxCollection returns OrderProductTaxCollection
null $askedLocale

Return Value

int

Exceptions

TaxEngineException

at line 190
getUntaxedPrice($taxedPrice)

Parameters

$taxedPrice