Completed
Push — master ( ed48d3...e52a1e )
by Daniel
02:16
created

Job::isFeatured()   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
     * @var string
11
     */
12
    private $key;
13
14
    /**
15
     * @var Index
16
     */
17
    private $index;
18
19
    /**
20
     * @var string
21
     */
22
    private $title;
23
24
    /**
25
     * @var string
26
     */
27
    private $company;
28
29
    /**
30
     * @var string
31
     */
32
    private $salaryCurrencyCode;
33
34
    /**
35
     * @var string
36
     */
37
    private $salaryMin;
38
39
    /**
40
     * @var string
41
     */
42
    private $salaryMax;
43
44
    /**
45
     * @var string
46
     */
47
    private $city;
48
49
    /**
50
     * @var string
51
     */
52
    private $state;
53
54
    /**
55
     * @var string
56
     */
57
    private $country;
58
59
    /**
60
     * @var string
61
     */
62
    private $source;
63
64
    /**
65
     * @var \DateTime
66
     */
67
    private $date;
68
69
    /**
70
     * @var string
71
     */
72
    private $snippet;
73
74
    /**
75
     * @var string
76
     */
77
    private $description;
78
79
    /**
80
     * @var string
81
     */
82
    private $viewUrl;
83
84
    /**
85
     * @var string
86
     */
87
    private $applyUrl;
88
89
    /**
90
     * @var bool
91
     */
92
    private $featured;
93
94
    /**
95
     * @return string
96
     */
97 1
    public function getKey()
98
    {
99 1
        return $this->key;
100
    }
101
102
    /**
103
     * @param string $key
104
     * @return Job
105
     */
106 17
    public function setKey($key)
107
    {
108 17
        $this->key = $key;
109
110 17
        return $this;
111
    }
112
113
    /**
114
     * @return Index
115
     */
116 1
    public function getIndex()
117
    {
118 1
        return $this->index;
119
    }
120
121
    /**
122
     * @param Index $index
123
     * @return Job
124
     */
125 17
    public function setIndex(Index $index)
126
    {
127 17
        $this->index = $index;
128
129 17
        return $this;
130
    }
131
132
    /**
133
     * @return string
134
     */
135 3
    public function getTitle()
136
    {
137 3
        return $this->title;
138
    }
139
140
    /**
141
     * @param string $title
142
     * @return Job
143
     */
144 26
    public function setTitle($title)
145
    {
146 26
        $this->title = $title;
147
148 26
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154 1
    public function getCompany()
155
    {
156 1
        return $this->company;
157
    }
158
159
    /**
160
     * @param string $company
161
     * @return Job
162
     */
163 17
    public function setCompany($company)
164
    {
165 17
        $this->company = $company;
166
167 17
        return $this;
168
    }
169
170
    /**
171
     * @return string
172
     */
173 1
    public function getSalaryCurrencyCode()
174
    {
175 1
        return $this->salaryCurrencyCode;
176
    }
177
178
    /**
179
     * @param string $salaryCurrencyCode
180
     * @return Job
181
     */
182 17
    public function setSalaryCurrencyCode($salaryCurrencyCode)
183
    {
184 17
        $this->salaryCurrencyCode = $salaryCurrencyCode;
185
186 17
        return $this;
187
    }
188
189
    /**
190
     * @return string
191
     */
192 1
    public function getSalaryMin()
193
    {
194 1
        return $this->salaryMin;
195
    }
196
197
    /**
198
     * @param string $salaryMin
199
     * @return Job
200
     */
201 17
    public function setSalaryMin($salaryMin)
202
    {
203 17
        $this->salaryMin = $salaryMin;
204
205 17
        return $this;
206
    }
207
208
    /**
209
     * @return string
210
     */
211 1
    public function getSalaryMax()
212
    {
213 1
        return $this->salaryMax;
214
    }
215
216
    /**
217
     * @param string $salaryMax
218
     * @return Job
219
     */
220 17
    public function setSalaryMax($salaryMax)
221
    {
222 17
        $this->salaryMax = $salaryMax;
223
224 17
        return $this;
225
    }
226
227
    /**
228
     * @return string
229
     */
230 1
    public function getCity()
231
    {
232 1
        return $this->city;
233
    }
234
235
    /**
236
     * @param string $city
237
     * @return Job
238
     */
239 17
    public function setCity($city)
240
    {
241 17
        $this->city = $city;
242
243 17
        return $this;
244
    }
245
246
    /**
247
     * @return string
248
     */
249 1
    public function getState()
250
    {
251 1
        return $this->state;
252
    }
253
254
    /**
255
     * @param string $state
256
     * @return Job
257
     */
258 17
    public function setState($state)
259
    {
260 17
        $this->state = $state;
261
262 17
        return $this;
263
    }
264
265
    /**
266
     * @return string
267
     */
268 1
    public function getCountry()
269
    {
270 1
        return $this->country;
271
    }
272
273
    /**
274
     * @param string $country
275
     * @return Job
276
     */
277 17
    public function setCountry($country)
278
    {
279 17
        $this->country = $country;
280
281 17
        return $this;
282
    }
283
284
    /**
285
     * @return string
286
     */
287 1
    public function getSource()
288
    {
289 1
        return $this->source;
290
    }
291
292
    /**
293
     * @param string $source
294
     * @return Job
295
     */
296 17
    public function setSource($source)
297
    {
298 17
        $this->source = $source;
299
300 17
        return $this;
301
    }
302
303
    /**
304
     * @return \DateTime
305
     */
306 1
    public function getDate()
307
    {
308 1
        return $this->date;
309
    }
310
311
    /**
312
     * @param \DateTime $date
313
     * @return Job
314
     */
315 17
    public function setDate(\DateTime $date)
316
    {
317 17
        $this->date = $date;
318
319 17
        return $this;
320
    }
321
322
    /**
323
     * @return string
324
     */
325 1
    public function getSnippet()
326
    {
327 1
        return $this->snippet;
328
    }
329
330
    /**
331
     * @param string $snippet
332
     * @return Job
333
     */
334 17
    public function setSnippet($snippet)
335
    {
336 17
        $this->snippet = $snippet;
337
338 17
        return $this;
339
    }
340
341
    /**
342
     * @return string
343
     */
344 1
    public function getDescription()
345
    {
346 1
        return $this->description;
347
    }
348
349
    /**
350
     * @param string $description
351
     * @return Job
352
     */
353 17
    public function setDescription($description)
354
    {
355 17
        $this->description = $description;
356
357 17
        return $this;
358
    }
359
360
    /**
361
     * @return string
362
     */
363 1
    public function getViewUrl()
364
    {
365 1
        return $this->viewUrl;
366
    }
367
368
    /**
369
     * @param string $viewUrl
370
     * @return Job
371
     */
372 17
    public function setViewUrl($viewUrl)
373
    {
374 17
        $this->viewUrl = $viewUrl;
375
376 17
        return $this;
377
    }
378
379
    /**
380
     * @return string
381
     */
382 1
    public function getApplyUrl()
383
    {
384 1
        return $this->applyUrl;
385
    }
386
387
    /**
388
     * @param string $applyUrl
389
     * @return Job
390
     */
391 17
    public function setApplyUrl($applyUrl)
392
    {
393 17
        $this->applyUrl = $applyUrl;
394
395 17
        return $this;
396
    }
397
398
    /**
399
     * @return boolean
400
     */
401 1
    public function isFeatured()
402
    {
403 1
        return $this->featured;
404
    }
405
406
    /**
407
     * @param boolean $featured
408
     * @return Job
409
     */
410 17
    public function setFeatured($featured)
411
    {
412 17
        $this->featured = $featured;
413
414 17
        return $this;
415
    }
416
}
417