Passed
Pull Request — master (#56)
by
unknown
02:33
created

PayerProfile::setPasswordForgotten()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class PayerProfile
9
{
10
    /**
11
     * @var bool|null
12
     * @SerializedName("HasAccount")
13
     */
14
    private $hasAccount;
15
16
    /**
17
     * @var bool|null
18
     * @SerializedName("HasPassword")
19
     */
20
    private $hasPassword;
21
22
    /**
23
     * @var bool|null
24
     * @SerializedName("PasswordForgotten")
25
     */
26
    private $passwordForgotten;
27
28
    /**
29
     * @var string|null
30
     * @SerializedName("FirstName")
31
     */
32
    private $firstName;
33
34
    /**
35
     * @var string|null
36
     * @SerializedName("LastName")
37
     */
38
    private $lastName;
39
40
    /**
41
     * @var string|null
42
     * @SerializedName("Company")
43
     */
44
    private $company;
45
46
    /**
47
     * @var string|null
48
     * @SerializedName("DateOfBirth")
49
     */
50
    private $dateOfBirth;
51
52
    /**
53
     * @var \DateTime|null
54
     * @SerializedName("LastLoginDate")
55
     * @Type("DateTime<'Y-m-d\TH:i:s.uT'>")
56
     */
57
    private $lastLoginDate;
58
59
    /**
60
     * @var string|null
61
     * @SerializedName("Gender")
62
     */
63
    private $gender;
64
65
    /**
66
     * @var \DateTime|null
67
     * @SerializedName("CreationDate")
68
     * @Type("DateTime<'Y-m-d\TH:i:s.uT'>")
69
     */
70
    private $creationDate;
71
72
    /**
73
     * @var \DateTime|null
74
     * @SerializedName("PasswordLastChangeDate")
75
     * @Type("DateTime<'Y-m-d\TH:i:s.uT'>")
76
     */
77
    private $passwordLastChangeDate;
78
79
    /**
80
     * @var string|null
81
     * @SerializedName("Email")
82
     */
83
    private $email;
84
85
    /**
86
     * @var string|null
87
     * @SerializedName("SecondaryEmail")
88
     */
89
    private $secondaryEmail;
90
91
    /**
92
     * @var Phone|null
93
     * @SerializedName("Phone")
94
     */
95
    private $phone;
96
97
    /**
98
     * @return bool|null
99
     */
100
    public function getHasAccount(): ?bool
101
    {
102
        return $this->hasAccount;
103
    }
104
105
    /**
106
     * @param bool|null $hasAccount
107
     * @return PayerProfile
108
     */
109
    public function setHasAccount(?bool $hasAccount): self
110
    {
111
        $this->hasAccount = $hasAccount;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @return bool|null
118
     */
119
    public function getHasPassword(): ?bool
120
    {
121
        return $this->hasPassword;
122
    }
123
124
    /**
125
     * @param bool|null $hasPassword
126
     * @return PayerProfile
127
     */
128
    public function setHasPassword(?bool $hasPassword): self
129
    {
130
        $this->hasPassword = $hasPassword;
131
132
        return $this;
133
    }
134
135
    /**
136
     * @return bool|null
137
     */
138
    public function getPasswordForgotten(): ?bool
139
    {
140
        return $this->passwordForgotten;
141
    }
142
143
    /**
144
     * @param bool|null $passwordForgotten
145
     * @return PayerProfile
146
     */
147
    public function setPasswordForgotten(?bool $passwordForgotten): self
148
    {
149
        $this->passwordForgotten = $passwordForgotten;
150
151
        return $this;
152
    }
153
154
    /**
155
     * @return string|null
156
     */
157
    public function getFirstName(): ?string
158
    {
159
        return $this->firstName;
160
    }
161
162
    /**
163
     * @param string|null $firstName
164
     * @return PayerProfile
165
     */
166
    public function setFirstName(?string $firstName): self
167
    {
168
        $this->firstName = $firstName;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @return string|null
175
     */
176
    public function getLastName(): ?string
177
    {
178
        return $this->lastName;
179
    }
180
181
    /**
182
     * @param string|null $lastName
183
     * @return PayerProfile
184
     */
185
    public function setLastName(?string $lastName): self
186
    {
187
        $this->lastName = $lastName;
188
189
        return $this;
190
    }
191
192
    /**
193
     * @return string|null
194
     */
195
    public function getCompany(): ?string
196
    {
197
        return $this->company;
198
    }
199
200
    /**
201
     * @param string|null $company
202
     * @return PayerProfile
203
     */
204
    public function setCompany(?string $company): self
205
    {
206
        $this->company = $company;
207
208
        return $this;
209
    }
210
211
    /**
212
     * @return string|null
213
     */
214
    public function getDateOfBirth(): ?string
215
    {
216
        return $this->dateOfBirth;
217
    }
218
219
    /**
220
     * @param string|null $dateOfBirth
221
     * @return PayerProfile
222
     */
223
    public function setDateOfBirth(?string $dateOfBirth): self
224
    {
225
        $this->dateOfBirth = $dateOfBirth;
226
227
        return $this;
228
    }
229
230
    /**
231
     * @return \DateTime|null
232
     */
233
    public function getLastLoginDate(): ?\DateTime
234
    {
235
        return $this->lastLoginDate;
236
    }
237
238
    /**
239
     * @param \DateTime|null $lastLoginDate
240
     * @return PayerProfile
241
     */
242
    public function setLastLoginDate(?\DateTime $lastLoginDate): self
243
    {
244
        $this->lastLoginDate = $lastLoginDate;
245
246
        return $this;
247
    }
248
249
    /**
250
     * @return string|null
251
     */
252
    public function getGender(): ?string
253
    {
254
        return $this->gender;
255
    }
256
257
    /**
258
     * @param string|null $gender
259
     * @return PayerProfile
260
     */
261
    public function setGender(?string $gender): self
262
    {
263
        $this->gender = $gender;
264
265
        return $this;
266
    }
267
268
    /**
269
     * @return \DateTime|null
270
     */
271
    public function getCreationDate(): ?\DateTime
272
    {
273
        return $this->creationDate;
274
    }
275
276
    /**
277
     * @param \DateTime|null $creationDate
278
     * @return PayerProfile
279
     */
280
    public function setCreationDate(?\DateTime $creationDate): self
281
    {
282
        $this->creationDate = $creationDate;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @return \DateTime|null
289
     */
290
    public function getPasswordLastChangeDate(): ?\DateTime
291
    {
292
        return $this->passwordLastChangeDate;
293
    }
294
295
    /**
296
     * @param \DateTime|null $passwordLastChangeDate
297
     * @return PayerProfile
298
     */
299
    public function setPasswordLastChangeDate(?\DateTime $passwordLastChangeDate): self
300
    {
301
        $this->passwordLastChangeDate = $passwordLastChangeDate;
302
303
        return $this;
304
    }
305
306
    /**
307
     * @return string|null
308
     */
309
    public function getEmail(): ?string
310
    {
311
        return $this->email;
312
    }
313
314
    /**
315
     * @param string|null $email
316
     * @return PayerProfile
317
     */
318
    public function setEmail(?string $email): self
319
    {
320
        $this->email = $email;
321
322
        return $this;
323
    }
324
325
    /**
326
     * @return string|null
327
     */
328
    public function getSecondaryEmail(): ?string
329
    {
330
        return $this->secondaryEmail;
331
    }
332
333
    /**
334
     * @param string|null $secondaryEmail
335
     * @return PayerProfile
336
     */
337
    public function setSecondaryEmail(?string $secondaryEmail): self
338
    {
339
        $this->secondaryEmail = $secondaryEmail;
340
341
        return $this;
342
    }
343
344
    /**
345
     * @return Phone|null
346
     */
347
    public function getPhone(): ?Phone
348
    {
349
        return $this->phone;
350
    }
351
352
    /**
353
     * @param Phone|null $phone
354
     * @return PayerProfile
355
     */
356
    public function setPhone(?Phone $phone): self
357
    {
358
        $this->phone = $phone;
359
360
        return $this;
361
    }
362
}