Passed
Push — master ( af9933...6d2375 )
by Torben
04:41 queued 01:21
created

FrontendUser   A

Complexity

Total Complexity 34

Size/Duplication

Total Lines 203
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 51
dl 0
loc 203
rs 9.68
c 1
b 0
f 0
wmc 34

34 Methods

Rating   Name   Duplication   Size   Complexity  
A setWww() 0 3 1
A getUsername() 0 3 1
A getZip() 0 3 1
A getTitle() 0 3 1
A getName() 0 3 1
A setUsername() 0 3 1
A setLastName() 0 3 1
A setTelephone() 0 3 1
A setFirstName() 0 3 1
A setName() 0 3 1
A setFax() 0 3 1
A setCompany() 0 3 1
A setEmail() 0 3 1
A initializeObject() 0 3 1
A getLastName() 0 3 1
A getCity() 0 3 1
A setTitle() 0 3 1
A setCountry() 0 3 1
A getFax() 0 3 1
A getEmail() 0 3 1
A setZip() 0 3 1
A setMiddleName() 0 3 1
A getTelephone() 0 3 1
A setImage() 0 3 1
A __construct() 0 3 1
A getMiddleName() 0 3 1
A getFirstName() 0 3 1
A getCountry() 0 3 1
A setAddress() 0 3 1
A getWww() 0 3 1
A getCompany() 0 3 1
A getAddress() 0 3 1
A getImage() 0 3 1
A setCity() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\Domain\Model;
13
14
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
15
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
16
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
17
18
/**
19
 * A Frontend User
20
 */
21
class FrontendUser extends AbstractEntity
22
{
23
    protected string $username = '';
24
    protected string $name = '';
25
    protected string $firstName = '';
26
    protected string $middleName = '';
27
    protected string $lastName = '';
28
    protected string $address = '';
29
    protected string $telephone = '';
30
    protected string $fax = '';
31
    protected string $email = '';
32
    protected string $title = '';
33
    protected string $zip = '';
34
    protected string $city = '';
35
    protected string $country = '';
36
    protected string $www = '';
37
    protected string $company = '';
38
39
    /**
40
     * @var ObjectStorage<FileReference>
41
     */
42
    protected ObjectStorage $image;
43
44
    /**
45
     * Constructor
46
     */
47
    public function __construct()
48
    {
49
        $this->initializeObject();
50
    }
51
52
    /**
53
     * Called again with initialize object, as fetching an entity from the DB does not use the constructor
54
     */
55
    public function initializeObject()
56
    {
57
        $this->image = $this->image ?? new ObjectStorage();
58
    }
59
60
    public function setUsername(string $username)
61
    {
62
        $this->username = $username;
63
    }
64
65
    public function getUsername(): string
66
    {
67
        return $this->username;
68
    }
69
70
    public function setName(string $name)
71
    {
72
        $this->name = $name;
73
    }
74
75
    public function getName(): string
76
    {
77
        return $this->name;
78
    }
79
80
    public function setFirstName(string $firstName)
81
    {
82
        $this->firstName = $firstName;
83
    }
84
85
    public function getFirstName(): string
86
    {
87
        return $this->firstName;
88
    }
89
90
    public function setMiddleName(string $middleName)
91
    {
92
        $this->middleName = $middleName;
93
    }
94
95
    public function getMiddleName(): string
96
    {
97
        return $this->middleName;
98
    }
99
100
    public function setLastName(string $lastName)
101
    {
102
        $this->lastName = $lastName;
103
    }
104
105
    public function getLastName(): string
106
    {
107
        return $this->lastName;
108
    }
109
110
    public function setAddress(string $address)
111
    {
112
        $this->address = $address;
113
    }
114
115
    public function getAddress(): string
116
    {
117
        return $this->address;
118
    }
119
120
    public function setTelephone(string $telephone)
121
    {
122
        $this->telephone = $telephone;
123
    }
124
125
    public function getTelephone(): string
126
    {
127
        return $this->telephone;
128
    }
129
130
    public function setFax(string $fax)
131
    {
132
        $this->fax = $fax;
133
    }
134
135
    public function getFax(): string
136
    {
137
        return $this->fax;
138
    }
139
140
    public function setEmail(string $email)
141
    {
142
        $this->email = $email;
143
    }
144
145
    public function getEmail(): string
146
    {
147
        return $this->email;
148
    }
149
150
    public function setTitle(string $title)
151
    {
152
        $this->title = $title;
153
    }
154
155
    public function getTitle(): string
156
    {
157
        return $this->title;
158
    }
159
160
    public function setZip(string $zip)
161
    {
162
        $this->zip = $zip;
163
    }
164
165
    public function getZip(): string
166
    {
167
        return $this->zip;
168
    }
169
170
    public function setCity(string $city)
171
    {
172
        $this->city = $city;
173
    }
174
175
    public function getCity(): string
176
    {
177
        return $this->city;
178
    }
179
180
    public function setCountry(string $country)
181
    {
182
        $this->country = $country;
183
    }
184
185
    public function getCountry(): string
186
    {
187
        return $this->country;
188
    }
189
190
    public function setWww(string $www)
191
    {
192
        $this->www = $www;
193
    }
194
195
    public function getWww(): string
196
    {
197
        return $this->www;
198
    }
199
200
    public function setCompany(string $company)
201
    {
202
        $this->company = $company;
203
    }
204
205
    public function getCompany(): string
206
    {
207
        return $this->company;
208
    }
209
210
    /**
211
     * @param ObjectStorage<FileReference> $image
212
     */
213
    public function setImage(ObjectStorage $image)
214
    {
215
        $this->image = $image;
216
    }
217
218
    /**
219
     * @return ObjectStorage<FileReference>
220
     */
221
    public function getImage(): ObjectStorage
222
    {
223
        return $this->image;
224
    }
225
}
226