Property | Type | Description | |
---|---|---|---|
$customerAddress | CommerceGuys\Addressing\AddressInterface | The customer address. | |
$customerTaxNumber | string | The customer's tax number, if provided. | |
$date | DateTime | The calculation date. | |
$storeAddress | CommerceGuys\Addressing\AddressInterface | The store address. | |
$storeRegistrations | array | A list of country codes where the store is additionally registered to collect taxes. |
Method | Description | |
---|---|---|
__construct ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) | Creates a Context instance. | |
getCustomerAddress ( ) : CommerceGuys\Addressing\AddressInterface | Gets the customer address. | |
getCustomerTaxNumber ( ) : string | Gets the customer tax number. | |
getDate ( ) : DateTime | Gets the calculation date. | |
getStoreAddress ( ) : CommerceGuys\Addressing\AddressInterface | Gets the store address. | |
getStoreRegistrations ( ) : array | Gets the store registrations. | |
setCustomerAddress ( CommerceGuys\Addressing\AddressInterface $customerAddress ) | Sets the customer address. | |
setCustomerTaxNumber ( string $customerTaxNumber ) | Sets the customer tax number. | |
setDate ( DateTime $date ) | Sets the calculation date. | |
setStoreAddress ( CommerceGuys\Addressing\AddressInterface $storeAddress ) | Sets the store address. | |
setStoreRegistrations ( array $storeRegistrations ) | Sets the store registrations. |
public __construct ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) | ||
$customerAddress | CommerceGuys\Addressing\AddressInterface | |
$storeAddress | CommerceGuys\Addressing\AddressInterface | |
$customerTaxNumber | string | |
$storeRegistrations | array | |
$date | DateTime |
public getCustomerAddress ( ) : CommerceGuys\Addressing\AddressInterface | ||
return | CommerceGuys\Addressing\AddressInterface | The customer address. |
public getCustomerTaxNumber ( ) : string | ||
return | string | The customer tax number. |
public getDate ( ) : DateTime | ||
return | DateTime | The calculation date. |
public getStoreAddress ( ) : CommerceGuys\Addressing\AddressInterface | ||
return | CommerceGuys\Addressing\AddressInterface | The store address. |
public getStoreRegistrations ( ) : array | ||
return | array | An array of country codes where the store is additionally registered to collect taxes. |
public setCustomerAddress ( CommerceGuys\Addressing\AddressInterface $customerAddress ) | ||
$customerAddress | CommerceGuys\Addressing\AddressInterface | The customer address. |
public setCustomerTaxNumber ( string $customerTaxNumber ) | ||
$customerTaxNumber | string | The customer tax number. |
public setDate ( DateTime $date ) | ||
$date | DateTime | The calculation date. |
public setStoreAddress ( CommerceGuys\Addressing\AddressInterface $storeAddress ) | ||
$storeAddress | CommerceGuys\Addressing\AddressInterface | The store address. |
public setStoreRegistrations ( array $storeRegistrations ) | ||
$storeRegistrations | array | An array of country codes. |
protected AddressInterface,CommerceGuys\Addressing $customerAddress | ||
return | CommerceGuys\Addressing\AddressInterface |
protected string $customerTaxNumber | ||
return | string |
protected AddressInterface,CommerceGuys\Addressing $storeAddress | ||
return | CommerceGuys\Addressing\AddressInterface |
protected array $storeRegistrations | ||
return | array |