GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#177)
by Eric
08:01 queued 05:17
created

PageTokenPlaceSearchRequest::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory Google Map package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\GoogleMap\Service\Place\Search\Request;
13
14
use Ivory\GoogleMap\Service\Place\Search\Response\PlaceSearchResponse;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
class PageTokenPlaceSearchRequest implements PlaceSearchRequestInterface
20
{
21
    /**
22
     * @var PlaceSearchResponse
23
     */
24
    private $response;
25
26
    /**
27
     * @param PlaceSearchResponse $response
28
     */
29
    public function __construct(PlaceSearchResponse $response)
30
    {
31
        $this->setResponse($response);
32
    }
33
34
    /**
35
     * @return PlaceSearchResponse
36
     */
37
    public function getResponse()
38
    {
39
        return $this->response;
40
    }
41
42
    /**
43
     * @param PlaceSearchResponse $response
44
     */
45
    public function setResponse(PlaceSearchResponse $response)
46
    {
47
        $this->response = $response;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function buildContext()
54
    {
55
        return $this->response->getRequest()->buildContext();
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function buildQuery()
62
    {
63
        return ['pagetoken' => $this->response->getNextPageToken()];
64
    }
65
}
66