Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
13 | class MailMotorUnsubscribedEvent extends Event |
||
14 | { |
||
15 | const EVENT_NAME = 'mail_motor_event.unsubscribed'; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $email; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $listId; |
||
22 | |||
23 | /** @var array */ |
||
24 | protected $mergeFields; |
||
25 | |||
26 | public function __construct( |
||
27 | string $email, |
||
28 | string $listId = null, |
||
29 | array $mergeFields = array() |
||
30 | ) { |
||
31 | $this->email = $email; |
||
32 | $this->listId = $listId; |
||
33 | $this->mergeFields = $mergeFields; |
||
34 | } |
||
35 | |||
36 | public function getEmail(): string |
||
37 | { |
||
38 | return $this->email; |
||
39 | } |
||
40 | |||
41 | public function getListId(): string |
||
44 | } |
||
45 | |||
46 | public function getMergeFields(): array |
||
49 | } |
||
50 | } |
||
51 |