1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the timechimp bundle package. |
7
|
|
|
* (c) Connect Holland. |
8
|
|
|
*/ |
9
|
|
|
|
10
|
|
|
namespace ConnectHolland\TimechimpBundle\Api\Model; |
11
|
|
|
|
12
|
|
|
class User |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var int |
16
|
|
|
*/ |
17
|
|
|
protected $id; |
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
protected $userName; |
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
protected $displayName; |
26
|
|
|
/** |
27
|
|
|
* 0 = Onbekend, 1 = Gebruiker, 2 = Beheerder, 4 = Projectmanager. |
28
|
|
|
* |
29
|
|
|
* @var int |
30
|
|
|
*/ |
31
|
|
|
protected $accountType; |
32
|
|
|
/** |
33
|
|
|
* @var bool |
34
|
|
|
*/ |
35
|
|
|
protected $isLocked; |
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
*/ |
39
|
|
|
protected $picture; |
40
|
|
|
/** |
41
|
|
|
* @var string[] |
42
|
|
|
*/ |
43
|
|
|
protected $tagNames; |
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
protected $language; |
48
|
|
|
/** |
49
|
|
|
* @var float |
50
|
|
|
*/ |
51
|
|
|
protected $contractHours; |
52
|
|
|
/** |
53
|
|
|
* @var float |
54
|
|
|
*/ |
55
|
|
|
protected $contractHourlyRate; |
56
|
|
|
/** |
57
|
|
|
* @var float |
58
|
|
|
*/ |
59
|
|
|
protected $contractCostHourlyRate; |
60
|
|
|
/** |
61
|
|
|
* @var \DateTime |
62
|
|
|
*/ |
63
|
|
|
protected $contractStartDate; |
64
|
|
|
/** |
65
|
|
|
* @var \DateTime |
66
|
|
|
*/ |
67
|
|
|
protected $contractEndDate; |
68
|
|
|
/** |
69
|
|
|
* @var \DateTime |
70
|
|
|
*/ |
71
|
|
|
protected $created; |
72
|
|
|
/** |
73
|
|
|
* @var string |
74
|
|
|
*/ |
75
|
|
|
protected $teamName; |
76
|
|
|
/** |
77
|
|
|
* @var string |
78
|
|
|
*/ |
79
|
|
|
protected $employeeNumber; |
80
|
|
|
|
81
|
|
|
public function getId(): int |
82
|
|
|
{ |
83
|
|
|
return $this->id; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function setId(int $id): self |
87
|
|
|
{ |
88
|
|
|
$this->id = $id; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getUserName(): string |
94
|
|
|
{ |
95
|
|
|
return $this->userName; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function setUserName(string $userName): self |
99
|
|
|
{ |
100
|
|
|
$this->userName = $userName; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function getDisplayName(): string |
106
|
|
|
{ |
107
|
|
|
return $this->displayName; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function setDisplayName(string $displayName): self |
111
|
|
|
{ |
112
|
|
|
$this->displayName = $displayName; |
113
|
|
|
|
114
|
|
|
return $this; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
/** |
118
|
|
|
* 0 = Onbekend, 1 = Gebruiker, 2 = Beheerder, 4 = Projectmanager. |
119
|
|
|
*/ |
120
|
|
|
public function getAccountType(): int |
121
|
|
|
{ |
122
|
|
|
return $this->accountType; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
/** |
126
|
|
|
* 0 = Onbekend, 1 = Gebruiker, 2 = Beheerder, 4 = Projectmanager. |
127
|
|
|
*/ |
128
|
|
|
public function setAccountType(int $accountType): self |
129
|
|
|
{ |
130
|
|
|
$this->accountType = $accountType; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function getIsLocked(): bool |
136
|
|
|
{ |
137
|
|
|
return $this->isLocked; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function setIsLocked(bool $isLocked): self |
141
|
|
|
{ |
142
|
|
|
$this->isLocked = $isLocked; |
143
|
|
|
|
144
|
|
|
return $this; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
public function getPicture(): string |
148
|
|
|
{ |
149
|
|
|
return $this->picture; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
public function setPicture(string $picture): self |
153
|
|
|
{ |
154
|
|
|
$this->picture = $picture; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return string[] |
161
|
|
|
*/ |
162
|
|
|
public function getTagNames(): array |
163
|
|
|
{ |
164
|
|
|
return $this->tagNames; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param string[] $tagNames |
169
|
|
|
*/ |
170
|
|
|
public function setTagNames(array $tagNames): self |
171
|
|
|
{ |
172
|
|
|
$this->tagNames = $tagNames; |
173
|
|
|
|
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
public function getLanguage(): string |
178
|
|
|
{ |
179
|
|
|
return $this->language; |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
public function setLanguage(string $language): self |
183
|
|
|
{ |
184
|
|
|
$this->language = $language; |
185
|
|
|
|
186
|
|
|
return $this; |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
public function getContractHours(): float |
190
|
|
|
{ |
191
|
|
|
return $this->contractHours; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
public function setContractHours(float $contractHours): self |
195
|
|
|
{ |
196
|
|
|
$this->contractHours = $contractHours; |
197
|
|
|
|
198
|
|
|
return $this; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
public function getContractHourlyRate(): float |
202
|
|
|
{ |
203
|
|
|
return $this->contractHourlyRate; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
public function setContractHourlyRate(float $contractHourlyRate): self |
207
|
|
|
{ |
208
|
|
|
$this->contractHourlyRate = $contractHourlyRate; |
209
|
|
|
|
210
|
|
|
return $this; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
public function getContractCostHourlyRate(): float |
214
|
|
|
{ |
215
|
|
|
return $this->contractCostHourlyRate; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
public function setContractCostHourlyRate(float $contractCostHourlyRate): self |
219
|
|
|
{ |
220
|
|
|
$this->contractCostHourlyRate = $contractCostHourlyRate; |
221
|
|
|
|
222
|
|
|
return $this; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
public function getContractStartDate(): \DateTime |
226
|
|
|
{ |
227
|
|
|
return $this->contractStartDate; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
public function setContractStartDate(\DateTime $contractStartDate): self |
231
|
|
|
{ |
232
|
|
|
$this->contractStartDate = $contractStartDate; |
233
|
|
|
|
234
|
|
|
return $this; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
public function getContractEndDate(): \DateTime |
238
|
|
|
{ |
239
|
|
|
return $this->contractEndDate; |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
public function setContractEndDate(\DateTime $contractEndDate): self |
243
|
|
|
{ |
244
|
|
|
$this->contractEndDate = $contractEndDate; |
245
|
|
|
|
246
|
|
|
return $this; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
public function getCreated(): \DateTime |
250
|
|
|
{ |
251
|
|
|
return $this->created; |
252
|
|
|
} |
253
|
|
|
|
254
|
|
|
public function setCreated(\DateTime $created): self |
255
|
|
|
{ |
256
|
|
|
$this->created = $created; |
257
|
|
|
|
258
|
|
|
return $this; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
public function getTeamName(): string |
262
|
|
|
{ |
263
|
|
|
return $this->teamName; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
public function setTeamName(string $teamName): self |
267
|
|
|
{ |
268
|
|
|
$this->teamName = $teamName; |
269
|
|
|
|
270
|
|
|
return $this; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
public function getEmployeeNumber(): string |
274
|
|
|
{ |
275
|
|
|
return $this->employeeNumber; |
276
|
|
|
} |
277
|
|
|
|
278
|
|
|
public function setEmployeeNumber(string $employeeNumber): self |
279
|
|
|
{ |
280
|
|
|
$this->employeeNumber = $employeeNumber; |
281
|
|
|
|
282
|
|
|
return $this; |
283
|
|
|
} |
284
|
|
|
} |
285
|
|
|
|