<?php namespace Ctct\Components\Contacts; use Ctct\Components\Component; class EmailAddress extends Component { public $id; public $status; public $confirm_status; public $opt_in_source; public $opt_in_date; public $opt_out_date; public $email_address; public function __construct($email_address = null) { if (!is_null($email_address)) { $this->email_address = $email_address; } return $this; } public static function create(array $props) { $email_address = new EmailAddress(); $email_address->id = parent::getValue($props, "id"); $email_address->status = parent::getValue($props, "status"); $email_address->confirm_status = parent::getValue($props, "confirm_status"); $email_address->opt_in_source = parent::getValue($props, "opt_in_source"); $email_address->opt_in_date = parent::getValue($props, "opt_in_date"); $email_address->opt_out_date = parent::getValue($props, "opt_out_date"); $email_address->email_address = parent::getValue($props, "email_address"); return $email_address; } } 