getContext()
protected method
Returns a mock context based on the provided data.
protected getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) : Context |
$customerAddress |
CommerceGuys\Addressing\AddressInterface |
The customer address. |
$storeAddress |
CommerceGuys\Addressing\AddressInterface |
The store address. |
$customerTaxNumber |
string |
The customer tax number. |
$storeRegistrations |
array |
The store registrations. |
$date |
DateTime |
The date. |
return |
CommerceGuys\Tax\Resolver\Context |
|