Total Complexity | 13 |
Total Lines | 104 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ListItem |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $id; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * @var ListItemContact |
||
21 | */ |
||
22 | private $contact; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $permissionReminder; |
||
28 | |||
29 | /** |
||
30 | * @var ListItemCampaignDefaults |
||
31 | */ |
||
32 | private $campaignDefaults; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $emailTypeOption; |
||
38 | |||
39 | /** |
||
40 | * ListItem constructor. |
||
41 | */ |
||
42 | public function __construct() |
||
43 | { |
||
44 | $this->setEmailTypeOption(false); |
||
45 | } |
||
46 | |||
47 | public function getId(): string |
||
48 | { |
||
49 | return $this->id; |
||
50 | } |
||
51 | |||
52 | public function setId(string $id): ListItem |
||
53 | { |
||
54 | $this->id = $id; |
||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | public function getName(): string |
||
59 | { |
||
60 | return $this->name; |
||
61 | } |
||
62 | |||
63 | public function setName(string $name): ListItem |
||
64 | { |
||
65 | $this->name = $name; |
||
66 | return $this; |
||
67 | } |
||
68 | |||
69 | public function getContact(): ListItemContact |
||
72 | } |
||
73 | |||
74 | public function setContact(ListItemContact $contact): ListItem |
||
75 | { |
||
76 | $this->contact = $contact; |
||
77 | return $this; |
||
78 | } |
||
79 | |||
80 | public function getPermissionReminder(): string |
||
81 | { |
||
82 | return $this->permissionReminder; |
||
83 | } |
||
84 | |||
85 | public function setPermissionReminder(string $permissionReminder): ListItem |
||
86 | { |
||
87 | $this->permissionReminder = $permissionReminder; |
||
88 | return $this; |
||
89 | } |
||
90 | |||
91 | public function getCampaignDefaults(): ListItemCampaignDefaults |
||
94 | } |
||
95 | |||
96 | public function setCampaignDefaults(ListItemCampaignDefaults $campaignDefaults): ListItem |
||
97 | { |
||
98 | $this->campaignDefaults = $campaignDefaults; |
||
99 | return $this; |
||
100 | } |
||
101 | |||
102 | public function isEmailTypeOption(): bool |
||
105 | } |
||
106 | |||
107 | public function setEmailTypeOption(bool $emailTypeOption): ListItem |
||
108 | { |
||
111 | } |
||
112 | } |
||
113 |