Свойство | 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. |
Méthode | 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 | ||
Résultat | CommerceGuys\Addressing\AddressInterface | The customer address. |
public getCustomerTaxNumber ( ) : string | ||
Résultat | string | The customer tax number. |
public getDate ( ) : DateTime | ||
Résultat | DateTime | The calculation date. |
public getStoreAddress ( ) : CommerceGuys\Addressing\AddressInterface | ||
Résultat | CommerceGuys\Addressing\AddressInterface | The store address. |
public getStoreRegistrations ( ) : array | ||
Résultat | 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 | ||
Résultat | CommerceGuys\Addressing\AddressInterface |
protected string $customerTaxNumber | ||
Résultat | string |
protected AddressInterface,CommerceGuys\Addressing $storeAddress | ||
Résultat | CommerceGuys\Addressing\AddressInterface |
protected array $storeRegistrations | ||
Résultat | array |