1 | <?php |
||
7 | final class Job |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $key; |
||
14 | |||
15 | /** |
||
16 | * @var Index |
||
17 | */ |
||
18 | private $index; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $title; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $company; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $salaryCurrencyCode; |
||
34 | |||
35 | /** |
||
36 | * @var float |
||
37 | */ |
||
38 | private $salaryMin; |
||
39 | |||
40 | /** |
||
41 | * @var float |
||
42 | */ |
||
43 | private $salaryMax; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $city; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | private $state; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | private $country; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | */ |
||
63 | private $source; |
||
64 | |||
65 | /** |
||
66 | * @var \DateTime |
||
67 | */ |
||
68 | private $date; |
||
69 | |||
70 | /** |
||
71 | * @var string |
||
72 | */ |
||
73 | private $snippet; |
||
74 | |||
75 | /** |
||
76 | * @var string |
||
77 | */ |
||
78 | private $description; |
||
79 | |||
80 | /** |
||
81 | * @var string |
||
82 | */ |
||
83 | private $viewUrl; |
||
84 | |||
85 | /** |
||
86 | * @var string |
||
87 | */ |
||
88 | private $applyUrl; |
||
89 | |||
90 | /** |
||
91 | * @var bool |
||
92 | */ |
||
93 | private $featured; |
||
94 | |||
95 | 34 | public function __construct() |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 2 | public function getKey() : string |
|
123 | |||
124 | /** |
||
125 | * @param string $key |
||
126 | * |
||
127 | * @return Job |
||
128 | */ |
||
129 | 18 | public function setKey(string $key) |
|
135 | |||
136 | /** |
||
137 | * @return Index |
||
138 | */ |
||
139 | 2 | public function getIndex() : Index |
|
143 | |||
144 | /** |
||
145 | * @param Index $index |
||
146 | * |
||
147 | * @return Job |
||
148 | */ |
||
149 | 18 | public function setIndex(Index $index) : Job |
|
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | 4 | public function getTitle() : string |
|
163 | |||
164 | /** |
||
165 | * @param string $title |
||
166 | * |
||
167 | * @return Job |
||
168 | */ |
||
169 | 27 | public function setTitle(string $title) : Job |
|
175 | |||
176 | /** |
||
177 | * @return string |
||
178 | */ |
||
179 | 2 | public function getCompany() : string |
|
183 | |||
184 | /** |
||
185 | * @param string $company |
||
186 | * |
||
187 | * @return Job |
||
188 | */ |
||
189 | 18 | public function setCompany(string $company) : Job |
|
195 | |||
196 | /** |
||
197 | * @return string |
||
198 | */ |
||
199 | 2 | public function getSalaryCurrencyCode() : string |
|
203 | |||
204 | /** |
||
205 | * @param string $salaryCurrencyCode |
||
206 | * |
||
207 | * @return Job |
||
208 | */ |
||
209 | 18 | public function setSalaryCurrencyCode(string $salaryCurrencyCode) : Job |
|
215 | |||
216 | /** |
||
217 | * @return string |
||
218 | */ |
||
219 | 2 | public function getSalaryMin() : string |
|
223 | |||
224 | /** |
||
225 | * @param string $salaryMin |
||
226 | * |
||
227 | * @return Job |
||
228 | */ |
||
229 | 18 | public function setSalaryMin(string $salaryMin) : Job |
|
235 | |||
236 | /** |
||
237 | * @return string |
||
238 | */ |
||
239 | 2 | public function getSalaryMax() : string |
|
243 | |||
244 | /** |
||
245 | * @param string $salaryMax |
||
246 | * |
||
247 | * @return Job |
||
248 | */ |
||
249 | 18 | public function setSalaryMax(string $salaryMax) : Job |
|
255 | |||
256 | /** |
||
257 | * @return string |
||
258 | */ |
||
259 | 2 | public function getCity() : string |
|
263 | |||
264 | /** |
||
265 | * @param string $city |
||
266 | * |
||
267 | * @return Job |
||
268 | */ |
||
269 | 18 | public function setCity(string $city) : Job |
|
275 | |||
276 | /** |
||
277 | * @return string |
||
278 | */ |
||
279 | 2 | public function getState() : string |
|
283 | |||
284 | /** |
||
285 | * @param string $state |
||
286 | * |
||
287 | * @return Job |
||
288 | */ |
||
289 | 18 | public function setState(string $state) : Job |
|
295 | |||
296 | /** |
||
297 | * @return string |
||
298 | */ |
||
299 | 2 | public function getCountry() : string |
|
303 | |||
304 | /** |
||
305 | * @param string $country |
||
306 | * |
||
307 | * @return Job |
||
308 | */ |
||
309 | 18 | public function setCountry(string $country) : Job |
|
315 | |||
316 | /** |
||
317 | * @return string |
||
318 | */ |
||
319 | 2 | public function getSource() : string |
|
323 | |||
324 | /** |
||
325 | * @param string $source |
||
326 | * |
||
327 | * @return Job |
||
328 | */ |
||
329 | 18 | public function setSource(string $source) : Job |
|
335 | |||
336 | /** |
||
337 | * @return \DateTime |
||
338 | */ |
||
339 | 2 | public function getDate() : \DateTime |
|
343 | |||
344 | /** |
||
345 | * @param \DateTime $date |
||
346 | * |
||
347 | * @return Job |
||
348 | */ |
||
349 | 18 | public function setDate(\DateTime $date) : Job |
|
355 | |||
356 | /** |
||
357 | * @return string |
||
358 | */ |
||
359 | 2 | public function getSnippet() : string |
|
363 | |||
364 | /** |
||
365 | * @param string $snippet |
||
366 | * |
||
367 | * @return Job |
||
368 | */ |
||
369 | 18 | public function setSnippet(string $snippet) : Job |
|
375 | |||
376 | /** |
||
377 | * @return string |
||
378 | */ |
||
379 | 2 | public function getDescription() : string |
|
383 | |||
384 | /** |
||
385 | * @param string $description |
||
386 | * |
||
387 | * @return Job |
||
388 | */ |
||
389 | 18 | public function setDescription(string $description) : Job |
|
395 | |||
396 | /** |
||
397 | * @return string |
||
398 | */ |
||
399 | 2 | public function getViewUrl() : string |
|
403 | |||
404 | /** |
||
405 | * @param string $viewUrl |
||
406 | * |
||
407 | * @return Job |
||
408 | */ |
||
409 | 18 | public function setViewUrl(string $viewUrl) : Job |
|
415 | |||
416 | /** |
||
417 | * @return string |
||
418 | */ |
||
419 | 2 | public function getApplyUrl() : string |
|
423 | |||
424 | /** |
||
425 | * @param string $applyUrl |
||
426 | * |
||
427 | * @return Job |
||
428 | */ |
||
429 | 18 | public function setApplyUrl(string $applyUrl) : Job |
|
435 | |||
436 | /** |
||
437 | * @return boolean |
||
438 | */ |
||
439 | 2 | public function isFeatured() : bool |
|
443 | |||
444 | /** |
||
445 | * @param bool $featured |
||
446 | * |
||
447 | * @return Job |
||
448 | */ |
||
449 | 18 | public function setFeatured(bool $featured) : Job |
|
455 | } |
||
456 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.