Completed
Push — master ( 9ef71e...74e530 )
by Daniel
02:20
created

Job::getSalaryCurrencyCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Jobles\Core\Job;
4
5
use Jobles\Core\Index\Index;
6
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 string
37
     */
38
    private $salaryMin;
39
40
    /**
41
     * @var string
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 = false;
94
95
    /**
96
     * @return string
97
     */
98 1
    public function getKey() : string
99
    {
100 1
        return $this->key;
101
    }
102
103
    /**
104
     * @param string $key
105
     *
106
     * @return Job
107
     */
108 17
    public function setKey(string $key)
109
    {
110 17
        $this->key = $key;
111
112 17
        return $this;
113
    }
114
115
    /**
116
     * @return Index
117
     */
118 1
    public function getIndex() : Index
119
    {
120 1
        return $this->index;
121
    }
122
123
    /**
124
     * @param Index $index
125
     *
126
     * @return Job
127
     */
128 17
    public function setIndex(Index $index) : Job
129
    {
130 17
        $this->index = $index;
131
132 17
        return $this;
133
    }
134
135
    /**
136
     * @return string
137
     */
138 3
    public function getTitle() : string
139
    {
140 3
        return $this->title;
141
    }
142
143
    /**
144
     * @param string $title
145
     *
146
     * @return Job
147
     */
148 26
    public function setTitle(string $title) : Job
149
    {
150 26
        $this->title = $title;
151
152 26
        return $this;
153
    }
154
155
    /**
156
     * @return string
157
     */
158 1
    public function getCompany() : string
159
    {
160 1
        return $this->company;
161
    }
162
163
    /**
164
     * @param string $company
165
     *
166
     * @return Job
167
     */
168 17
    public function setCompany(string $company) : Job
169
    {
170 17
        $this->company = $company;
171
172 17
        return $this;
173
    }
174
175
    /**
176
     * @return string
177
     */
178 1
    public function getSalaryCurrencyCode() : string
179
    {
180 1
        return $this->salaryCurrencyCode;
181
    }
182
183
    /**
184
     * @param string $salaryCurrencyCode
185
     *
186
     * @return Job
187
     */
188 17
    public function setSalaryCurrencyCode(string $salaryCurrencyCode) : Job
189
    {
190 17
        $this->salaryCurrencyCode = $salaryCurrencyCode;
191
192 17
        return $this;
193
    }
194
195
    /**
196
     * @return string
197
     */
198 1
    public function getSalaryMin() : string
199
    {
200 1
        return $this->salaryMin;
201
    }
202
203
    /**
204
     * @param string $salaryMin
205
     *
206
     * @return Job
207
     */
208 17
    public function setSalaryMin(string $salaryMin) : Job
209
    {
210 17
        $this->salaryMin = $salaryMin;
211
212 17
        return $this;
213
    }
214
215
    /**
216
     * @return string
217
     */
218 1
    public function getSalaryMax() : string
219
    {
220 1
        return $this->salaryMax;
221
    }
222
223
    /**
224
     * @param string $salaryMax
225
     *
226
     * @return Job
227
     */
228 17
    public function setSalaryMax(string $salaryMax) : Job
229
    {
230 17
        $this->salaryMax = $salaryMax;
231
232 17
        return $this;
233
    }
234
235
    /**
236
     * @return string
237
     */
238 1
    public function getCity() : string
239
    {
240 1
        return $this->city;
241
    }
242
243
    /**
244
     * @param string $city
245
     *
246
     * @return Job
247
     */
248 17
    public function setCity(string $city) : Job
249
    {
250 17
        $this->city = $city;
251
252 17
        return $this;
253
    }
254
255
    /**
256
     * @return string
257
     */
258 1
    public function getState() : string
259
    {
260 1
        return $this->state;
261
    }
262
263
    /**
264
     * @param string $state
265
     *
266
     * @return Job
267
     */
268 17
    public function setState(string $state) : Job
269
    {
270 17
        $this->state = $state;
271
272 17
        return $this;
273
    }
274
275
    /**
276
     * @return string
277
     */
278 1
    public function getCountry() : string
279
    {
280 1
        return $this->country;
281
    }
282
283
    /**
284
     * @param string $country
285
     *
286
     * @return Job
287
     */
288 17
    public function setCountry(string $country) : Job
289
    {
290 17
        $this->country = $country;
291
292 17
        return $this;
293
    }
294
295
    /**
296
     * @return string
297
     */
298 1
    public function getSource() : string
299
    {
300 1
        return $this->source;
301
    }
302
303
    /**
304
     * @param string $source
305
     *
306
     * @return Job
307
     */
308 17
    public function setSource(string $source) : Job
309
    {
310 17
        $this->source = $source;
311
312 17
        return $this;
313
    }
314
315
    /**
316
     * @return \DateTime
317
     */
318 1
    public function getDate() : \DateTime
319
    {
320 1
        return $this->date;
321
    }
322
323
    /**
324
     * @param \DateTime $date
325
     *
326
     * @return Job
327
     */
328 17
    public function setDate(\DateTime $date) : Job
329
    {
330 17
        $this->date = $date;
331
332 17
        return $this;
333
    }
334
335
    /**
336
     * @return string
337
     */
338 1
    public function getSnippet() : string
339
    {
340 1
        return $this->snippet;
341
    }
342
343
    /**
344
     * @param string $snippet
345
     *
346
     * @return Job
347
     */
348 17
    public function setSnippet(string $snippet) : Job
349
    {
350 17
        $this->snippet = $snippet;
351
352 17
        return $this;
353
    }
354
355
    /**
356
     * @return string
357
     */
358 1
    public function getDescription() : string
359
    {
360 1
        return $this->description;
361
    }
362
363
    /**
364
     * @param string $description
365
     *
366
     * @return Job
367
     */
368 17
    public function setDescription(string $description) : Job
369
    {
370 17
        $this->description = $description;
371
372 17
        return $this;
373
    }
374
375
    /**
376
     * @return string
377
     */
378 1
    public function getViewUrl() : string
379
    {
380 1
        return $this->viewUrl;
381
    }
382
383
    /**
384
     * @param string $viewUrl
385
     *
386
     * @return Job
387
     */
388 17
    public function setViewUrl(string $viewUrl) : Job
389
    {
390 17
        $this->viewUrl = $viewUrl;
391
392 17
        return $this;
393
    }
394
395
    /**
396
     * @return string
397
     */
398 1
    public function getApplyUrl() : string
399
    {
400 1
        return $this->applyUrl;
401
    }
402
403
    /**
404
     * @param string $applyUrl
405
     *
406
     * @return Job
407
     */
408 17
    public function setApplyUrl(string $applyUrl) : Job
409
    {
410 17
        $this->applyUrl = $applyUrl;
411
412 17
        return $this;
413
    }
414
415
    /**
416
     * @return boolean
417
     */
418 1
    public function isFeatured() : bool
419
    {
420 1
        return $this->featured;
421
    }
422
423
    /**
424
     * @param bool $featured
425
     *
426
     * @return Job
427
     */
428 17
    public function setFeatured(bool $featured) : Job
429
    {
430 17
        $this->featured = $featured;
431
432 17
        return $this;
433
    }
434
}
435