ListItem::getContact()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Model\MailChimp;
6
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
70
    {
71
        return $this->contact;
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
92
    {
93
        return $this->campaignDefaults;
94
    }
95
96
    public function setCampaignDefaults(ListItemCampaignDefaults $campaignDefaults): ListItem
97
    {
98
        $this->campaignDefaults = $campaignDefaults;
99
        return $this;
100
    }
101
102
    public function isEmailTypeOption(): bool
103
    {
104
        return $this->emailTypeOption;
105
    }
106
107
    public function setEmailTypeOption(bool $emailTypeOption): ListItem
108
    {
109
        $this->emailTypeOption = $emailTypeOption;
110
        return $this;
111
    }
112
}
113