1: <?php
2: namespace Ctct\Components\EmailMarketing;
3:
4: use Ctct\Components\Component;
5:
6: 7: 8: 9: 10: 11: 12:
13: class MessageFooter extends Component
14: {
15: public $city;
16: public $state;
17: public $country;
18: public $organization_name;
19: public $address_line_1;
20: public $address_line_2;
21: public $address_line_3;
22: public $international_state;
23: public $postal_code;
24: public $include_forward_email;
25: public $forward_email_link_text;
26: public $include_subscribe_link;
27: public $subscribe_link_text;
28:
29: 30: 31: 32: 33:
34: public static function create(array $props)
35: {
36: $message_footer = new MessageFooter();
37: $message_footer->city = parent::getValue($props, "city");
38: $message_footer->state = parent::getValue($props, "state");
39: $message_footer->country = parent::getValue($props, "country");
40: $message_footer->organization_name = parent::getValue($props, "organization_name");
41: $message_footer->address_line_1 = parent::getValue($props, "address_line_1");
42: $message_footer->address_line_2 = parent::getValue($props, "address_line_2");
43: $message_footer->address_line_3 = parent::getValue($props, "address_line_3");
44: $message_footer->international_state = parent::getValue($props, "international_state");
45: $message_footer->postal_code = parent::getValue($props, "postal_code");
46: $message_footer->include_forward_email = parent::getValue($props, "include_forward_email");
47: $message_footer->forward_email_link_text = parent::getValue($props, "forward_email_link_text");
48: $message_footer->include_subscribe_link = parent::getValue($props, "include_subscribe_link");
49: $message_footer->subscribe_link_text = parent::getValue($props, "subscribe_link_text");
50:
51: return $message_footer;
52: }
53: }
54: