OrderAddressType
in package
Class OrderAddressType
Table of Contents
- TYPE_BILLING = 'billing'
- TYPE_CUSTOMER = 'customer'
- TYPE_DELIVERY = 'delivery'
- $type : string
- billingAddress() : static
- Creates a billing address type.
- customerAddress() : static
- Creates a customer address type.
- deliveryAddress() : static
- Creates a delivery address type.
- isBillingAddress() : bool
- isCustomerAddress() : bool
- isDeliveryAddress() : bool
- __construct() : mixed
- OrderAddressType constructor.
Constants
TYPE_BILLING
private
mixed
TYPE_BILLING
= 'billing'
TYPE_CUSTOMER
private
mixed
TYPE_CUSTOMER
= 'customer'
TYPE_DELIVERY
private
mixed
TYPE_DELIVERY
= 'delivery'
Properties
$type
private
string
$type
Methods
billingAddress()
Creates a billing address type.
public
static billingAddress() : static
Return values
static —customerAddress()
Creates a customer address type.
public
static customerAddress() : static
Return values
static —deliveryAddress()
Creates a delivery address type.
public
static deliveryAddress() : static
Return values
static —isBillingAddress()
public
isBillingAddress() : bool
Return values
bool —isCustomerAddress()
public
isCustomerAddress() : bool
Return values
bool —isDeliveryAddress()
public
isDeliveryAddress() : bool
Return values
bool —__construct()
OrderAddressType constructor.
private
__construct(string $type) : mixed
Parameters
- $type : string