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