1: <?php
2: namespace Ctct\Components\Activities;
3:
4: use Ctct\Components\Component;
5:
6: class ActivityError extends Component
7: {
8: public $message;
9: public $line_number;
10: public $email_address;
11:
12: /**
13: * Factory method to create an object from an array
14: * @param array $props - associative array of initial properties to set
15: * @return Campaign
16: */
17: public static function create(array $props)
18: {
19: $activityError = new ActivityError();
20: $activityError->message = parent::getValue($props, "message");
21: $activityError->line_number = parent::getValue($props, "line_number");
22: $activityError->email_address = parent::getValue($props, "email_address");
23: return $activityError;
24: }
25: }
26: