CareersInGovQuery::getHttpMethodOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php namespace JobApis\Jobs\Client\Queries;
2
3
class CareersInGovQuery extends AbstractQuery
4
{
5
    /**
6
     * Careers in Government provides no search parameters, just
7
     * a feed of all their latest jobs via RSS.
8
     */
9
10
    /**
11
     * Get baseUrl
12
     *
13
     * @return  string Value of the base url to this api
14
     */
15
    public function getBaseUrl()
16
    {
17
        return 'https://www.careersingovernment.com/rss';
18
    }
19
20
21
    /**
22
     * Get http method options based on current client. Good for adding POST parameters.
23
     *
24
     * @return array
25
     */
26
    public function getHttpMethodOptions()
27
    {
28
        return [
29
            // Custom CURL options to connect to this RSS feed
30
            'curl' => [
31
                CURLOPT_HTTPHEADER => array(
32
                    "cache-control: no-cache",
33
                ),
34
            ]
35
        ];
36
    }
37
38
    /**
39
     * Get keyword
40
     *
41
     * @return  string Attribute being used as the search keyword
42
     */
43
    public function getKeyword()
44
    {
45
        return null;
46
    }
47
}
48