Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Library
      • Tracking
    • Exceptions
    • Services
    • Util
    • WebHooks

Classes

  • Ctct\Auth\CtctOAuth2
  • Ctct\Auth\SessionDataStore
  • Ctct\Components\Account\AccountInfo
  • Ctct\Components\Account\VerifiedEmailAddress
  • Ctct\Components\Activities\Activity
  • Ctct\Components\Activities\ActivityError
  • Ctct\Components\Activities\AddContacts
  • Ctct\Components\Activities\AddContactsImportData
  • Ctct\Components\Activities\ExportContacts
  • Ctct\Components\Component
  • Ctct\Components\Contacts\Address
  • Ctct\Components\Contacts\Contact
  • Ctct\Components\Contacts\ContactList
  • Ctct\Components\Contacts\CustomField
  • Ctct\Components\Contacts\EmailAddress
  • Ctct\Components\Contacts\Note
  • Ctct\Components\EmailMarketing\Campaign
  • Ctct\Components\EmailMarketing\ClickThroughDetails
  • Ctct\Components\EmailMarketing\MessageFooter
  • Ctct\Components\EmailMarketing\Schedule
  • Ctct\Components\EmailMarketing\TestSend
  • Ctct\Components\Library\File
  • Ctct\Components\Library\FileUploadStatus
  • Ctct\Components\Library\Folder
  • Ctct\Components\Library\Thumbnail
  • Ctct\Components\ResultSet
  • Ctct\Components\Tracking\BounceActivity
  • Ctct\Components\Tracking\ClickActivity
  • Ctct\Components\Tracking\ForwardActivity
  • Ctct\Components\Tracking\OpenActivity
  • Ctct\Components\Tracking\SendActivity
  • Ctct\Components\Tracking\TrackingActivity
  • Ctct\Components\Tracking\TrackingSummary
  • Ctct\Components\Tracking\UnsubscribeActivity
  • Ctct\ConstantContact
  • Ctct\Services\AccountService
  • Ctct\Services\ActivityService
  • Ctct\Services\BaseService
  • Ctct\Services\CampaignScheduleService
  • Ctct\Services\CampaignTrackingService
  • Ctct\Services\ContactService
  • Ctct\Services\ContactTrackingService
  • Ctct\Services\EmailMarketingService
  • Ctct\Services\LibraryService
  • Ctct\Services\ListService
  • Ctct\SplClassLoader
  • Ctct\Util\Config
  • Ctct\WebHooks\CTCTWebhookUtil

Interfaces

  • Ctct\Auth\CtctDataStore

Exceptions

  • Ctct\Exceptions\CtctException
  • Ctct\Exceptions\IllegalArgumentException
  • Ctct\Exceptions\OAuth2Exception
  • Overview
  • Namespace
  • Class
  1: <?php
  2: namespace Ctct\Components\Contacts;
  3: 
  4: use Ctct\Components\Component;
  5: 
  6: /**
  7:  * Represents a single Address of a Contact
  8:  *
  9:  * @package        Components
 10:  * @subpackage     Contacts
 11:  * @author         Constant Contact
 12:  */
 13: class Address extends Component
 14: {
 15: 
 16:     /**
 17:      * Id of the address
 18:      * @var string
 19:      */
 20:     public $id;
 21: 
 22:     /**
 23:      * Line 1 of the address
 24:      * @var string
 25:      */
 26:     public $line1;
 27: 
 28:     /**
 29:      * Line 2 of the address
 30:      * @var string
 31:      */
 32:     public $line2;
 33: 
 34:     /**
 35:      * Line 3 of the address
 36:      * @var string
 37:      */
 38:     public $line3;
 39: 
 40:     /**
 41:      * City info for this address
 42:      * @var string
 43:      */
 44:     public $city;
 45: 
 46:     /**
 47:      * Address type, must be one of "BUSINESS", "PERSONAL", or "UNKNOWN"
 48:      * @var string
 49:      */
 50:     public $address_type;
 51: 
 52:     /**
 53:      * The state code for this address
 54:      * @var string
 55:      */
 56:     public $state_code;
 57: 
 58:     /**
 59:      * The state for this address (non-US/Canada) 
 60:      *
 61:      */
 62:     public $state;
 63:     
 64:     /**
 65:      * The country code for this address
 66:      * @var string
 67:      */
 68:     public $country_code;
 69: 
 70:     /**
 71:      * The postal code for this address
 72:      * @var string
 73:      */
 74:     public $postal_code;
 75: 
 76:     /**
 77:      * The sub postal code for this address
 78:      * @var string
 79:      */
 80:     public $sub_postal_code;
 81: 
 82:     /**
 83:      * Factory method to create an Address object from an array
 84:      * @param array $props - Associative array of initial properties to set
 85:      * @return Address
 86:      */
 87:     public static function create(array $props)
 88:     {
 89:         $address = new Address();
 90:         $address->id = parent::getValue($props, "id");
 91:         $address->line1 = parent::getValue($props, "line1");
 92:         $address->line2 = parent::getValue($props, "line2");
 93:         $address->line3 = parent::getValue($props, "line3");
 94:         $address->city = parent::getValue($props, "city");
 95:         $address->address_type = parent::getValue($props, "address_type");
 96:         $address->state_code = parent::getValue($props, "state_code");
 97:         $address->state = parent::getValue($props, "state");
 98:         $address->country_code = parent::getValue($props, "country_code");
 99:         $address->postal_code = parent::getValue($props, "postal_code");
100:         $address->sub_postal_code = parent::getValue($props, "sub_postal_code");
101:         return $address;
102:     }
103: }
104: 
API documentation generated by ApiGen