Address
+ Inheritance diagram for Address:

Description

An order address.

See also
Order
DraftOrder

Public Methods

magic string getAddress1 ()
 
magic string getAddress2 ()
 
magic string getCity ()
 
magic string getCompany ()
 
magic string getCountry ()
 
magic string getCountryCode ()
 read-only More...
 
magic string getCountryName ()
 
magic string getName ()
 
magic string getPhone ()
 non-unique More...
 
magic string getProvince ()
 
magic string getProvinceCode ()
 read-only More...
 
magic string getZip ()
 
magic bool hasPhone ()
 
magic bool isDefault ()
 
magic $this setAddress1 (string $address1)
 
magic $this setAddress2 (string $address2)
 
magic $this setCity (string $city)
 
magic $this setCompany (string $company)
 
magic $this setCountry (string $country)
 
magic $this setCountryName (string $name)
 
magic $this setName (string $name)
 
magic $this setPhone (string $phone)
 
magic $this setProvince (string $province)
 
magic $this setZip (string $zip)
 
- Public Methods inherited from Data
mixed __call (string $method, array $args)
 
 __construct ($caller, array $data=[])
 
string serialize ()
 Dehydrated JSON encode. More...
 
array toArray ()
 
void unserialize ($serialized)
 

Additional Inherited Members

- Public Properties inherited from Data
const MAP = []
 
const PATCH = []
 
- Protected Properties inherited from Data
Api $api
 
Pool $pool
 
- Protected Methods inherited from Data
mixed _hydrate (string $class, $item)
 A factory that also hydrates / caches entities. More...
 
array _select ($subject, callable $filter,... $args)
 Magic method: selectField(callable $filter) More...
 
$this _setData (array $data)
 Clears all diffs and sets all data, hydrating mapped fields. More...
 
$this _setField (string $field, $value)
 Sets a value, hydrating if mapped, and clears the diff. More...
 

Methods

◆ getAddress1()

magic string getAddress1 ( )
Returns
string

◆ getAddress2()

magic string getAddress2 ( )
Returns
string

◆ getCity()

magic string getCity ( )
Returns
string

◆ getCompany()

magic string getCompany ( )
Returns
string

◆ getCountry()

magic string getCountry ( )
Returns
string

◆ getCountryCode()

magic string getCountryCode ( )

read-only

Returns
string

◆ getCountryName()

magic string getCountryName ( )
Returns
string

◆ getName()

magic string getName ( )
Returns
string

◆ getPhone()

magic string getPhone ( )

non-unique

Returns
string

◆ getProvince()

magic string getProvince ( )
Returns
string

◆ getProvinceCode()

magic string getProvinceCode ( )

read-only

Returns
string

◆ getZip()

magic string getZip ( )
Returns
string

◆ hasPhone()

magic bool hasPhone ( )
Returns
bool

◆ isDefault()

magic bool isDefault ( )
Returns
bool

◆ setAddress1()

magic $this setAddress1 ( string  $address1)
Returns
$this

◆ setAddress2()

magic $this setAddress2 ( string  $address2)
Returns
$this

◆ setCity()

magic $this setCity ( string  $city)
Returns
$this

◆ setCompany()

magic $this setCompany ( string  $company)
Returns
$this

◆ setCountry()

magic $this setCountry ( string  $country)
Returns
$this

◆ setCountryName()

magic $this setCountryName ( string  $name)
Returns
$this

◆ setName()

magic $this setName ( string  $name)
Returns
$this

◆ setPhone()

magic $this setPhone ( string  $phone)
Returns
$this

◆ setProvince()

magic $this setProvince ( string  $province)
Returns
$this

◆ setZip()

magic $this setZip ( string  $zip)
Returns
$this