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