RequestFactory::bing()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace KWTClient;
3
4
use KWTClient\Request\Request;
5
6
class RequestFactory
7
{
8
    /**
9
     * @param string $keyword
10
     *
11
     * @return Request
12
     */
13
    public static function google($keyword)
14
    {
15
        return new Request($keyword, 'http://api.keywordtool.io/v1/search/google');
16
    }
17
18
    /**
19
     * @param string $keyword
20
     *
21
     * @return Request
22
     */
23
    public static function youtube($keyword)
24
    {
25
        return new Request($keyword, 'http://api.keywordtool.io/v1/search/youtube');
26
    }
27
28
    /**
29
     * @param string $keyword
30
     *
31
     * @return Request
32
     */
33
    public static function bing($keyword)
34
    {
35
        return new Request($keyword, 'http://api.keywordtool.io/v1/search/bing');
36
    }
37
38
    /**
39
     * @param string $keyword
40
     *
41
     * @return Request
42
     */
43
    public static function appstore($keyword)
44
    {
45
        return new Request($keyword, 'http://api.keywordtool.io/v1/search/app-store');
46
    }
47
}
48