Completed
Push — upgrade-3.0-refacto ( fdaaea...0b6538 )
by Tristan
04:15
created

SearchMock::processResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * MyPoseo API Bundle
5
 *
6
 * @author Tristan Bessoussa <[email protected]>
7
 */
8
9
namespace Tristanbes\MyPoseoBundle\Api;
10
11
use Tristanbes\MyPoseoBundle\Connection\RestClient;
12
13
/**
14
 * Class used when the application is in test environment
15
 */
16
class SearchMock implements SearchInterface
17
{
18
    /**
19
     * @var RestClient
20
     */
21
    private $client;
22
23
    /**
24
     * @param RestClient $client The guzzle client
25
     */
26
    public function __construct(RestClient $client)
27
    {
28
        $this->client = $client;
29
    }
30
31
    /**
32
     * Returns the identifiers of the search engine's extension
33
     *
34
     * @param string  $searchEngine The search engine
35
     * @param integer $ttl          The time to live for the cache
36
     *
37
     * @return array
38
     */
39
    public function getSearchEngineExtensions($searchEngine, $ttl = null)
40
    {
41
        $data             = [];
42
        $data[13]['id']   = 13;
43
        $data[13]['name'] = '.fr (fr)';
44
45
        return $data;
46
    }
47
48
    public function getNaturalSeoResult()
49
    {
50
    }
51
52
    public function getSemResult()
53
    {
54
    }
55
56
    public function getTownCode($name, $country = 'FR')
57
    {
58
    }
59
60
    public function getUrlRankByKeyword($keyword, $url, $searchEngine = 'google', $callback = null, $geolocId = null, $location = 13, $maxPage = null)
61
    {
62
    }
63
}
64