GovtQuery::getBaseUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php namespace JobApis\Jobs\Client\Queries;
2
3
class GovtQuery extends AbstractQuery
4
{
5
    /**
6
     * Search query
7
     *
8
     * @var string
9
     */
10
    protected $query;
11
12
    /**
13
     * Organizations to search (comma-separated list of IDs)
14
     *
15
     * @var string
16
     */
17
    protected $organization_ids;
18
19
    /**
20
     * Highlight
21
     *
22
     * @var boolean
23
     */
24
    protected $hl;
25
26
    /**
27
     * Result set size
28
     *
29
     * @var integer
30
     */
31
    protected $size;
32
33
    /**
34
     * Starting record
35
     *
36
     * @var integer
37
     */
38
    protected $from;
39
40
    /**
41
     * Comma-separated list of agency tags.
42
     *
43
     * Available tags: federal, state, county, city
44
     *
45
     * @var string
46
     */
47
    protected $tags;
48
49
    /**
50
     * Comma-separated latitude and longitude
51
     *
52
     * @var string
53
     */
54
    protected $lat_lon;
55
56
    /**
57
     * Get baseUrl
58
     *
59
     * @return  string Value of the base url to this api
60
     */
61 6
    public function getBaseUrl()
62
    {
63 6
        return 'https://jobs.search.gov/jobs/search.json';
64
    }
65
66
    /**
67
     * Get keyword
68
     *
69
     * @return  string Attribute being used as the search keyword
70
     */
71 4
    public function getKeyword()
72
    {
73 4
        return $this->query;
74
    }
75
}
76