JobinventoryQuery   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 163
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 163
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBaseUrl() 0 4 1
A getKeyword() 0 4 1
A requiredAttributes() 0 6 1
1
<?php namespace JobApis\Jobs\Client\Queries;
2
3
class JobinventoryQuery extends AbstractQuery
4
{
5
    /**
6
     * q
7
     *
8
     * The search query.
9
     *
10
     * @var string
11
     */
12
    protected $q;
13
14
    /**
15
     * l
16
     *
17
     * The search location.
18
     *
19
     * @var string
20
     */
21
    protected $l;
22
23
    /**
24
     * limit
25
     *
26
     * Number of results per page
27
     *
28
     * @var integer
29
     */
30
    protected $limit;
31
32
    /**
33
     * p
34
     *
35
     * Page
36
     *
37
     * @var integer
38
     */
39
    protected $p;
40
41
    /**
42
     * radius
43
     *
44
     * Miles away to search
45
     *
46
     * @var integer
47
     */
48
    protected $radius;
49
50
    /**
51
     * t
52
     *
53
     * Job title.
54
     *
55
     * @var string
56
     */
57
    protected $t;
58
59
    /**
60
     * company
61
     *
62
     * @var string
63
     */
64
    protected $company;
65
66
    /**
67
     * date
68
     *
69
     * Number of days back to search.
70
     *
71
     * @var integer
72
     */
73
    protected $date;
74
75
    /**
76
     * jobtype
77
     *
78
     * Valid options include:
79
     *  Full-time
80
     *  Contract
81
     *  Part-time
82
     *  Temporary
83
     *  Seasonal
84
     *
85
     * @var string
86
     */
87
    protected $jobtype;
88
89
    /**
90
     */
91
92
    /**
93
     * education
94
     *
95
     * Valid options include:
96
     *  Professional
97
     *  High School
98
     *  Doctorate
99
     *  Associate's Degree
100
     *  Some College
101
     *  Bachelor's Degree
102
     *
103
     * @var string
104
     */
105
    protected $education;
106
107
    /**
108
     * c
109
     *
110
     * Category (see website for options).
111
     *
112
     * @var string
113
     */
114
    protected $c;
115
116
    /**
117
     * o
118
     *
119
     * Job source (see website for options).
120
     *
121
     * @var string
122
     */
123
    protected $o;
124
125
    /**
126
     * experience
127
     *
128
     * Experience required (see website for options).
129
     *
130
     * @var string
131
     */
132
    protected $experience;
133
134
    /**
135
     * Get baseUrl
136
     *
137
     * @return  string Value of the base url to this api
138
     */
139 6
    public function getBaseUrl()
140
    {
141 6
        return 'http://www.jobinventory.com/rss';
142
    }
143
144
    /**
145
     * Get keyword
146
     *
147
     * @return  string Attribute being used as the search keyword
148
     */
149 4
    public function getKeyword()
150
    {
151 4
        return $this->q;
152
    }
153
154
    /**
155
     * Required parameters
156
     *
157
     * @return array
158
     */
159 6
    protected function requiredAttributes()
160
    {
161
        return [
162 6
            'q',
163 6
        ];
164
    }
165
}
166