Contact   A
last analyzed

Complexity

Total Complexity 25

Size/Duplication

Total Lines 214
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 39
c 0
b 0
f 0
dl 0
loc 214
rs 10
wmc 25

25 Methods

Rating   Name   Duplication   Size   Complexity  
A setPrimary() 0 3 1
A getCustomValue1() 0 3 1
A setContactKey() 0 3 1
A getCustomValue2() 0 3 1
A setCustomValue1() 0 3 1
A isSendEmail() 0 3 1
A setSendEmail() 0 3 1
A getEmail() 0 3 1
A getCustomValue3() 0 3 1
A setFirstName() 0 3 1
A getLastLogin() 0 3 1
A setCustomValue3() 0 3 1
A isPrimary() 0 3 1
A isLocked() 0 3 1
A setLastName() 0 3 1
A getLastName() 0 3 1
A getFirstName() 0 3 1
A setIsLocked() 0 3 1
A setPhone() 0 3 1
A getCustomValue4() 0 3 1
A setEmail() 0 3 1
A setCustomValue4() 0 3 1
A getPhone() 0 3 1
A getContactKey() 0 3 1
A setCustomValue2() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace InvoiceNinjaModule\Model;
6
7
use InvoiceNinjaModule\Model\Interfaces\ContactInterface;
8
9
/**
10
 * Class Contact
11
 * @codeCoverageIgnore
12
 */
13
final class Contact extends Base implements ContactInterface
14
{
15
    private string $firstName = '';
16
    private string $lastName = '';
17
    private string $email = '';
18
    private bool $isPrimary = false;
19
    private bool $isLocked = false;
20
    private string $phone  = '';
21
    private string $customValue1  = '';
22
    private string $customValue2  = '';
23
    private string $customValue3  = '';
24
    private string $customValue4  = '';
25
    private string $contactKey  = '';
26
    private bool $sendEmail = false;
27
    private int $lastLogin;
28
29
    /**
30
     * @return string
31
     */
32
    public function getFirstName(): string
33
    {
34
        return $this->firstName;
35
    }
36
37
    /**
38
     * @param string $firstName
39
     */
40
    public function setFirstName(string $firstName): void
41
    {
42
        $this->firstName = $firstName;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getLastName(): string
49
    {
50
        return $this->lastName;
51
    }
52
53
    /**
54
     * @param string $lastName
55
     */
56
    public function setLastName(string $lastName): void
57
    {
58
        $this->lastName = $lastName;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getEmail(): string
65
    {
66
        return $this->email;
67
    }
68
69
    /**
70
     * @param string $email
71
     */
72
    public function setEmail(string $email): void
73
    {
74
        $this->email = $email;
75
    }
76
77
    /**
78
     * @return bool
79
     */
80
    public function isPrimary(): bool
81
    {
82
        return $this->isPrimary;
83
    }
84
85
    /**
86
     * @param bool $isPrimary
87
     */
88
    public function setPrimary(bool $isPrimary): void
89
    {
90
        $this->isPrimary = $isPrimary;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getPhone(): string
97
    {
98
        return $this->phone;
99
    }
100
101
    /**
102
     * @param string $phone
103
     */
104
    public function setPhone(string $phone): void
105
    {
106
        $this->phone = $phone;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getLastLogin(): int
113
    {
114
        return $this->lastLogin;
115
    }
116
117
    /**
118
     * @return bool
119
     */
120
    public function isLocked(): bool
121
    {
122
        return $this->isLocked;
123
    }
124
125
    /**
126
     * @param bool $isLocked
127
     */
128
    public function setIsLocked(bool $isLocked): void
129
    {
130
        $this->isLocked = $isLocked;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getCustomValue1(): string
137
    {
138
        return $this->customValue1;
139
    }
140
141
    /**
142
     * @param string $customValue1
143
     */
144
    public function setCustomValue1(string $customValue1): void
145
    {
146
        $this->customValue1 = $customValue1;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getCustomValue2(): string
153
    {
154
        return $this->customValue2;
155
    }
156
157
    /**
158
     * @param string $customValue2
159
     */
160
    public function setCustomValue2(string $customValue2): void
161
    {
162
        $this->customValue2 = $customValue2;
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getCustomValue3(): string
169
    {
170
        return $this->customValue3;
171
    }
172
173
    /**
174
     * @param string $customValue3
175
     */
176
    public function setCustomValue3(string $customValue3): void
177
    {
178
        $this->customValue3 = $customValue3;
179
    }
180
181
    /**
182
     * @return string
183
     */
184
    public function getCustomValue4(): string
185
    {
186
        return $this->customValue4;
187
    }
188
189
    /**
190
     * @param string $customValue4
191
     */
192
    public function setCustomValue4(string $customValue4): void
193
    {
194
        $this->customValue4 = $customValue4;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getContactKey(): string
201
    {
202
        return $this->contactKey;
203
    }
204
205
    /**
206
     * @param string $contactKey
207
     */
208
    public function setContactKey(string $contactKey): void
209
    {
210
        $this->contactKey = $contactKey;
211
    }
212
213
    /**
214
     * @return bool
215
     */
216
    public function isSendEmail(): bool
217
    {
218
        return $this->sendEmail;
219
    }
220
221
    /**
222
     * @param bool $sendEmail
223
     */
224
    public function setSendEmail(bool $sendEmail): void
225
    {
226
        $this->sendEmail = $sendEmail;
227
    }
228
}
229