1: <?php
2: namespace Ctct\Components\Account;
3:
4: use Ctct\Components\Component;
5:
6: 7: 8: 9: 10: 11: 12:
13: class VerifiedEmailAddress extends Component
14: {
15: 16: 17: 18:
19: public $email_address;
20:
21: 22: 23: 24:
25: public $status;
26:
27: 28: 29: 30: 31:
32: public static function create(array $props)
33: {
34: $verifiedAddress = new VerifiedEmailAddress();
35: $verifiedAddress->email_address = parent::getValue($props, "email_address");
36: $verifiedAddress->status = parent::getValue($props, "status");
37: return $verifiedAddress;
38: }
39:
40: public function toJson() {
41: return json_encode($this);
42: }
43: }
44: