Ctct\Components\Contacts\Address
Represents a single Address of a Contact
- Author: Constant Contact
Synopsis
class Address
extends Component
{
- // members
- public $id;
- public $line1;
- public $line2;
- public $line3;
- public $city;
- public $address_type;
- public $state_code;
- public $country_code;
- public $postal_code;
- public $sub_postal_code;
- // methods
- public static Address create()
- // Inherited methods from Component
- protected static mixed getValue()
Hierarchy
Extends
Members
public
- $address_type
—
string
Address type, must be one of "BUSINESS", "PERSONAL", or "UNKNOWN" - $city
—
string
City info for this address - $country_code
—
string
The country code for this address - $id
—
string
Id of the address - $line1
—
string
Line 1 of the address - $line2
—
string
Line 2 of the address - $line3
—
string
Line 3 of the address - $postal_code
—
string
The postal code for this address - $state_code
—
string
The state code for this address - $sub_postal_code
—
string
The sub postal code for this address
Methods
public
- create() — Factory method to create an Address object from an array
Inherited from Ctct\Components\Component
protected
- getValue() — Get the requested value from an array, or return the default