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

GeocoderCoordinateRequest   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 getCoordinate() 0 4 1
A setCoordinate() 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
use Ivory\GoogleMap\Base\Coordinate;
15
16
/**
17
 * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GeocoderRequest
18
 *
19
 * @author GeLo <[email protected]>
20
 */
21
class GeocoderCoordinateRequest extends AbstractGeocoderReverseRequest
22
{
23
    /**
24
     * @var Coordinate
25
     */
26
    private $coordinate;
27
28
    /**
29
     * @param Coordinate $coordinate
30
     */
31
    public function __construct(Coordinate $coordinate)
32
    {
33
        $this->setCoordinate($coordinate);
34
    }
35
36
    /**
37
     * @return Coordinate
38
     */
39
    public function getCoordinate()
40
    {
41
        return $this->coordinate;
42
    }
43
44
    /**
45
     * @param Coordinate $coordinate
46
     */
47
    public function setCoordinate(Coordinate $coordinate)
48
    {
49
        $this->coordinate = $coordinate;
50
    }
51
52
    /**
53
     * @return mixed[]
54
     */
55
    public function buildQuery()
56
    {
57
        return array_merge(['latlng' => $this->buildPlace($this->coordinate)], parent::buildQuery());
58
    }
59
}
60