Total Complexity | 9 |
Total Lines | 75 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Member |
||
8 | { |
||
9 | const MEMBER_STATUS_SUBSCRIBED = 'subscribed'; |
||
10 | const MEMBER_STATUS_UNSUBSCRIBED = 'unsubscribed'; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $id; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $email; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $status; |
||
26 | |||
27 | /** |
||
28 | * @var MemberMergeFields |
||
29 | */ |
||
30 | private $mergeFields; |
||
31 | |||
32 | /** |
||
33 | * Member constructor. |
||
34 | */ |
||
35 | public function __construct() |
||
36 | { |
||
37 | $this->setStatus(self::MEMBER_STATUS_SUBSCRIBED); |
||
38 | } |
||
39 | |||
40 | public function getId(): string |
||
43 | } |
||
44 | |||
45 | public function setId(string $id): Member |
||
49 | } |
||
50 | |||
51 | public function getEmail(): string |
||
52 | { |
||
53 | return $this->email; |
||
54 | } |
||
55 | |||
56 | public function setEmail(string $email): Member |
||
57 | { |
||
58 | $this->email = $email; |
||
59 | return $this; |
||
60 | } |
||
61 | |||
62 | public function getStatus(): string |
||
63 | { |
||
64 | return $this->status; |
||
65 | } |
||
66 | |||
67 | public function setStatus(string $status): Member |
||
68 | { |
||
69 | $this->status = $status; |
||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | public function getMergeFields(): MemberMergeFields |
||
74 | { |
||
75 | return $this->mergeFields; |
||
76 | } |
||
77 | |||
78 | public function setMergeFields(MemberMergeFields $mergeFields): Member |
||
82 | } |
||
83 | } |
||
84 |