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
|
|
|
class FrontendUser extends AbstractEntity |
19
|
|
|
{ |
20
|
|
|
protected string $username = ''; |
21
|
|
|
protected string $name = ''; |
22
|
|
|
protected string $firstName = ''; |
23
|
|
|
protected string $middleName = ''; |
24
|
|
|
protected string $lastName = ''; |
25
|
|
|
protected string $address = ''; |
26
|
|
|
protected string $telephone = ''; |
27
|
|
|
protected string $fax = ''; |
28
|
|
|
protected string $email = ''; |
29
|
|
|
protected string $title = ''; |
30
|
|
|
protected string $zip = ''; |
31
|
|
|
protected string $city = ''; |
32
|
|
|
protected string $country = ''; |
33
|
|
|
protected string $www = ''; |
34
|
|
|
protected string $company = ''; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var ObjectStorage<FileReference> |
38
|
|
|
*/ |
39
|
|
|
protected ObjectStorage $image; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Constructor |
43
|
|
|
*/ |
44
|
|
|
public function __construct() |
45
|
|
|
{ |
46
|
|
|
$this->initializeObject(); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Called again with initialize object, as fetching an entity from the DB does not use the constructor |
51
|
|
|
*/ |
52
|
|
|
public function initializeObject(): void |
53
|
|
|
{ |
54
|
|
|
$this->image = $this->image ?? new ObjectStorage(); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
public function setUsername(string $username): void |
58
|
|
|
{ |
59
|
|
|
$this->username = $username; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function getUsername(): string |
63
|
|
|
{ |
64
|
|
|
return $this->username; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function setName(string $name): void |
68
|
|
|
{ |
69
|
|
|
$this->name = $name; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function getName(): string |
73
|
|
|
{ |
74
|
|
|
return $this->name; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
public function setFirstName(string $firstName): void |
78
|
|
|
{ |
79
|
|
|
$this->firstName = $firstName; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
public function getFirstName(): string |
83
|
|
|
{ |
84
|
|
|
return $this->firstName; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
public function setMiddleName(string $middleName): void |
88
|
|
|
{ |
89
|
|
|
$this->middleName = $middleName; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
public function getMiddleName(): string |
93
|
|
|
{ |
94
|
|
|
return $this->middleName; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
public function setLastName(string $lastName): void |
98
|
|
|
{ |
99
|
|
|
$this->lastName = $lastName; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
public function getLastName(): string |
103
|
|
|
{ |
104
|
|
|
return $this->lastName; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
public function setAddress(string $address): void |
108
|
|
|
{ |
109
|
|
|
$this->address = $address; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
public function getAddress(): string |
113
|
|
|
{ |
114
|
|
|
return $this->address; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
public function setTelephone(string $telephone): void |
118
|
|
|
{ |
119
|
|
|
$this->telephone = $telephone; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function getTelephone(): string |
123
|
|
|
{ |
124
|
|
|
return $this->telephone; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function setFax(string $fax): void |
128
|
|
|
{ |
129
|
|
|
$this->fax = $fax; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function getFax(): string |
133
|
|
|
{ |
134
|
|
|
return $this->fax; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
public function setEmail(string $email): void |
138
|
|
|
{ |
139
|
|
|
$this->email = $email; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
public function getEmail(): string |
143
|
|
|
{ |
144
|
|
|
return $this->email; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
public function setTitle(string $title): void |
148
|
|
|
{ |
149
|
|
|
$this->title = $title; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
public function getTitle(): string |
153
|
|
|
{ |
154
|
|
|
return $this->title; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
public function setZip(string $zip): void |
158
|
|
|
{ |
159
|
|
|
$this->zip = $zip; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
public function getZip(): string |
163
|
|
|
{ |
164
|
|
|
return $this->zip; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
public function setCity(string $city): void |
168
|
|
|
{ |
169
|
|
|
$this->city = $city; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
public function getCity(): string |
173
|
|
|
{ |
174
|
|
|
return $this->city; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
public function setCountry(string $country): void |
178
|
|
|
{ |
179
|
|
|
$this->country = $country; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function getCountry(): string |
183
|
|
|
{ |
184
|
|
|
return $this->country; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
public function setWww(string $www): void |
188
|
|
|
{ |
189
|
|
|
$this->www = $www; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
public function getWww(): string |
193
|
|
|
{ |
194
|
|
|
return $this->www; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
public function setCompany(string $company): void |
198
|
|
|
{ |
199
|
|
|
$this->company = $company; |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
public function getCompany(): string |
203
|
|
|
{ |
204
|
|
|
return $this->company; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* @param ObjectStorage<FileReference> $image |
209
|
|
|
*/ |
210
|
|
|
public function setImage(ObjectStorage $image): void |
211
|
|
|
{ |
212
|
|
|
$this->image = $image; |
213
|
|
|
} |
214
|
|
|
|
215
|
|
|
/** |
216
|
|
|
* @return ObjectStorage<FileReference> |
217
|
|
|
*/ |
218
|
|
|
public function getImage(): ObjectStorage |
219
|
|
|
{ |
220
|
|
|
return $this->image; |
221
|
|
|
} |
222
|
|
|
} |
223
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths