<?php namespace Ctct\Components\Contacts; use Ctct\Components\Component; class Address extends Component { 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; public static function create(array $props) { $address = new Address(); $address->id = parent::getValue($props, "id"); $address->line1 = parent::getValue($props, "line1"); $address->line2 = parent::getValue($props, "line2"); $address->line3 = parent::getValue($props, "line3"); $address->city = parent::getValue($props, "city"); $address->address_type = parent::getValue($props, "address_type"); $address->state_code = parent::getValue($props, "state_code"); $address->country_code = parent::getValue($props, "country_code"); $address->postal_code = parent::getValue($props, "postal_code"); $address->sub_postal_code = parent::getValue($props, "sub_postal_code"); return $address; } } 