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