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