MonsterQuery   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 61
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 61
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 MonsterQuery extends AbstractQuery
4
{
5
    /**
6
     * q
7
     *
8
     * The search query.
9
     *
10
     * @var string
11
     */
12
    protected $q;
13
14
    /**
15
     * where
16
     *
17
     * The search location.
18
     *
19
     * @var string
20
     */
21
    protected $where;
22
23
    /**
24
     * page
25
     *
26
     * Page
27
     *
28
     * @var integer
29
     */
30
    protected $page;
31
32
    /**
33
     * Get baseUrl
34
     *
35
     * @return  string Value of the base url to this api
36
     */
37 6
    public function getBaseUrl()
38
    {
39 6
        return 'http://rss.jobsearch.monster.com/rssquery.ashx';
40
    }
41
42
    /**
43
     * Get keyword
44
     *
45
     * @return  string Attribute being used as the search keyword
46
     */
47 4
    public function getKeyword()
48
    {
49 4
        return $this->q;
50
    }
51
52
    /**
53
     * Required parameters
54
     *
55
     * @return array
56
     */
57 6
    protected function requiredAttributes()
58
    {
59
        return [
60 6
            'q',
61 6
        ];
62
    }
63
}
64