ZiprecruiterQuery::getKeyword()   A
last analyzed

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 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace JobApis\Jobs\Client\Queries;
2
3
class ZiprecruiterQuery extends AbstractQuery
4
{
5
    /**
6
     * api_key
7
     *
8
     * @var string
9
     */
10
    protected $api_key;
11
12
    /**
13
     * search
14
     *
15
     * The search query.
16
     *
17
     * @var string
18
     */
19
    protected $search;
20
21
    /**
22
     * location
23
     *
24
     * e.g., “Santa Monica, CA” or “London, UK”
25
     *
26
     * @var string
27
     */
28
    protected $location;
29
30
    /**
31
     * radius_miles
32
     *
33
     * @var integer
34
     */
35
    protected $radius_miles;
36
37
    /**
38
     * page
39
     *
40
     * @var integer
41
     */
42
    protected $page;
43
44
    /**
45
     * jobs_per_page
46
     *
47
     * @var integer
48
     */
49
    protected $jobs_per_page;
50
51
    /**
52
     * days_ago
53
     *
54
     * @var integer
55
     */
56
    protected $days_ago;
57
58
    /**
59
     * Get baseUrl
60
     *
61
     * @return  string Value of the base url to this api
62
     */
63 6
    public function getBaseUrl()
64
    {
65 6
        return 'https://api.ziprecruiter.com/jobs/v1';
66
    }
67
68
    /**
69
     * Get keyword
70
     *
71
     * @return  string Attribute being used as the search keyword
72
     */
73 4
    public function getKeyword()
74
    {
75 4
        return $this->search;
76
    }
77
78
    /**
79
     * Required parameters
80
     *
81
     * @return array
82
     */
83 6
    protected function requiredAttributes()
84
    {
85
        return [
86 6
            'api_key',
87 6
        ];
88
    }
89
}
90