Passed
Push — typo3_11 ( 4cf35f...4a3fb9 )
by Torben
40:28
created

FrontendUser::setTelephone()   A

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
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
5
 *
6
 * For the full copyright and license information, please read the
7
 * LICENSE.txt file that was distributed with this source code.
8
 */
9
10
namespace DERHANSEN\SfEventMgt\Domain\Model;
11
12
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
13
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
14
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
15
16
/**
17
 * A Frontend User
18
 */
19
class FrontendUser extends AbstractEntity
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $username = '';
25
26
    /**
27
     * @var string
28
     */
29
    protected $name = '';
30
31
    /**
32
     * @var string
33
     */
34
    protected $firstName = '';
35
36
    /**
37
     * @var string
38
     */
39
    protected $middleName = '';
40
41
    /**
42
     * @var string
43
     */
44
    protected $lastName = '';
45
46
    /**
47
     * @var string
48
     */
49
    protected $address = '';
50
51
    /**
52
     * @var string
53
     */
54
    protected $telephone = '';
55
56
    /**
57
     * @var string
58
     */
59
    protected $fax = '';
60
61
    /**
62
     * @var string
63
     */
64
    protected $email = '';
65
66
    /**
67
     * @var string
68
     */
69
    protected $title = '';
70
71
    /**
72
     * @var string
73
     */
74
    protected $zip = '';
75
76
    /**
77
     * @var string
78
     */
79
    protected $city = '';
80
81
    /**
82
     * @var string
83
     */
84
    protected $country = '';
85
86
    /**
87
     * @var string
88
     */
89
    protected $www = '';
90
91
    /**
92
     * @var string
93
     */
94
    protected $company = '';
95
96
    /**
97
     * @var ObjectStorage<FileReference>
98
     */
99
    protected $image;
100
101
    /**
102
     * Constructor
103
     */
104
    public function __construct()
105
    {
106
        $this->image = new ObjectStorage();
107
    }
108
109
    /**
110
     * Called again with initialize object, as fetching an entity from the DB does not use the constructor
111
     */
112
    public function initializeObject()
113
    {
114
        $this->image = $this->image ?? new ObjectStorage();
115
    }
116
117
    /**
118
     * Sets the username value
119
     *
120
     * @param string $username
121
     */
122
    public function setUsername($username)
123
    {
124
        $this->username = $username;
125
    }
126
127
    /**
128
     * Returns the username value
129
     *
130
     * @return string
131
     */
132
    public function getUsername()
133
    {
134
        return $this->username;
135
    }
136
137
    /**
138
     * Sets the name value
139
     *
140
     * @param string $name
141
     */
142
    public function setName($name)
143
    {
144
        $this->name = $name;
145
    }
146
147
    /**
148
     * Returns the name value
149
     *
150
     * @return string
151
     */
152
    public function getName()
153
    {
154
        return $this->name;
155
    }
156
157
    /**
158
     * Sets the firstName value
159
     *
160
     * @param string $firstName
161
     */
162
    public function setFirstName($firstName)
163
    {
164
        $this->firstName = $firstName;
165
    }
166
167
    /**
168
     * Returns the firstName value
169
     *
170
     * @return string
171
     */
172
    public function getFirstName()
173
    {
174
        return $this->firstName;
175
    }
176
177
    /**
178
     * Sets the middleName value
179
     *
180
     * @param string $middleName
181
     */
182
    public function setMiddleName($middleName)
183
    {
184
        $this->middleName = $middleName;
185
    }
186
187
    /**
188
     * Returns the middleName value
189
     *
190
     * @return string
191
     */
192
    public function getMiddleName()
193
    {
194
        return $this->middleName;
195
    }
196
197
    /**
198
     * Sets the lastName value
199
     *
200
     * @param string $lastName
201
     */
202
    public function setLastName($lastName)
203
    {
204
        $this->lastName = $lastName;
205
    }
206
207
    /**
208
     * Returns the lastName value
209
     *
210
     * @return string
211
     */
212
    public function getLastName()
213
    {
214
        return $this->lastName;
215
    }
216
217
    /**
218
     * Sets the address value
219
     *
220
     * @param string $address
221
     */
222
    public function setAddress($address)
223
    {
224
        $this->address = $address;
225
    }
226
227
    /**
228
     * Returns the address value
229
     *
230
     * @return string
231
     */
232
    public function getAddress()
233
    {
234
        return $this->address;
235
    }
236
237
    /**
238
     * Sets the telephone value
239
     *
240
     * @param string $telephone
241
     */
242
    public function setTelephone($telephone)
243
    {
244
        $this->telephone = $telephone;
245
    }
246
247
    /**
248
     * Returns the telephone value
249
     *
250
     * @return string
251
     */
252
    public function getTelephone()
253
    {
254
        return $this->telephone;
255
    }
256
257
    /**
258
     * Sets the fax value
259
     *
260
     * @param string $fax
261
     */
262
    public function setFax($fax)
263
    {
264
        $this->fax = $fax;
265
    }
266
267
    /**
268
     * Returns the fax value
269
     *
270
     * @return string
271
     */
272
    public function getFax()
273
    {
274
        return $this->fax;
275
    }
276
277
    /**
278
     * Sets the email value
279
     *
280
     * @param string $email
281
     */
282
    public function setEmail($email)
283
    {
284
        $this->email = $email;
285
    }
286
287
    /**
288
     * Returns the email value
289
     *
290
     * @return string
291
     */
292
    public function getEmail()
293
    {
294
        return $this->email;
295
    }
296
297
    /**
298
     * Sets the title value
299
     *
300
     * @param string $title
301
     */
302
    public function setTitle($title)
303
    {
304
        $this->title = $title;
305
    }
306
307
    /**
308
     * Returns the title value
309
     *
310
     * @return string
311
     */
312
    public function getTitle()
313
    {
314
        return $this->title;
315
    }
316
317
    /**
318
     * Sets the zip value
319
     *
320
     * @param string $zip
321
     */
322
    public function setZip($zip)
323
    {
324
        $this->zip = $zip;
325
    }
326
327
    /**
328
     * Returns the zip value
329
     *
330
     * @return string
331
     */
332
    public function getZip()
333
    {
334
        return $this->zip;
335
    }
336
337
    /**
338
     * Sets the city value
339
     *
340
     * @param string $city
341
     */
342
    public function setCity($city)
343
    {
344
        $this->city = $city;
345
    }
346
347
    /**
348
     * Returns the city value
349
     *
350
     * @return string
351
     */
352
    public function getCity()
353
    {
354
        return $this->city;
355
    }
356
357
    /**
358
     * Sets the country value
359
     *
360
     * @param string $country
361
     */
362
    public function setCountry($country)
363
    {
364
        $this->country = $country;
365
    }
366
367
    /**
368
     * Returns the country value
369
     *
370
     * @return string
371
     */
372
    public function getCountry()
373
    {
374
        return $this->country;
375
    }
376
377
    /**
378
     * Sets the www value
379
     *
380
     * @param string $www
381
     */
382
    public function setWww($www)
383
    {
384
        $this->www = $www;
385
    }
386
387
    /**
388
     * Returns the www value
389
     *
390
     * @return string
391
     */
392
    public function getWww()
393
    {
394
        return $this->www;
395
    }
396
397
    /**
398
     * Sets the company value
399
     *
400
     * @param string $company
401
     */
402
    public function setCompany($company)
403
    {
404
        $this->company = $company;
405
    }
406
407
    /**
408
     * Returns the company value
409
     *
410
     * @return string
411
     */
412
    public function getCompany()
413
    {
414
        return $this->company;
415
    }
416
417
    /**
418
     * Sets the image value
419
     *
420
     * @param ObjectStorage<FileReference> $image
421
     */
422
    public function setImage(ObjectStorage $image)
423
    {
424
        $this->image = $image;
425
    }
426
427
    /**
428
     * Gets the image value
429
     *
430
     * @return ObjectStorage<FileReference>
431
     */
432
    public function getImage()
433
    {
434
        return $this->image;
435
    }
436
}
437