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