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
Push — geocoder ( aa3a17 )
by Eric
02:27
created

GeocoderPlaceIdRequest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 39
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPlaceId() 0 4 1
A setPlaceId() 0 4 1
A buildQuery() 0 4 1
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\Geocoder;
13
14
/**
15
 * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GeocoderRequest
16
 *
17
 * @author GeLo <[email protected]>
18
 */
19
class GeocoderPlaceIdRequest extends AbstractGeocoderReverseRequest
20
{
21
    /**
22
     * @var string
23
     */
24
    private $placeId;
25
26
    /**
27
     * @param string $placeId
28
     */
29
    public function __construct($placeId)
30
    {
31
        $this->setPlaceId($placeId);
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getPlaceId()
38
    {
39
        return $this->placeId;
40
    }
41
42
    /**
43
     * @param string $placeId
44
     */
45
    public function setPlaceId($placeId)
46
    {
47
        $this->placeId = $placeId;
48
    }
49
50
    /**
51
     * @return mixed[]
52
     */
53
    public function buildQuery()
54
    {
55
        return array_merge(['place_id' => $this->placeId], parent::buildQuery());
56
    }
57
}
58