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 — master ( 1faea8...2295f4 )
by Eric
03:10
created

ElevationResult::setElevation()   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 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\Elevation\Response;
13
14
use Ivory\GoogleMap\Base\Coordinate;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
class ElevationResult
20
{
21
    /**
22
     * @var Coordinate|null
23
     */
24
    private $location;
25
26
    /**
27
     * @var float|null
28
     */
29
    private $elevation;
30
31
    /**
32
     * @var float|null
33
     */
34
    private $resolution;
35
36
    /**
37
     * @return bool
38
     */
39
    public function hasLocation()
40
    {
41
        return $this->location !== null;
42
    }
43
44
    /**
45
     * @return Coordinate|null
46
     */
47
    public function getLocation()
48
    {
49
        return $this->location;
50
    }
51
52
    /**
53
     * @param Coordinate|null $location
54
     */
55
    public function setLocation(Coordinate $location = null)
56
    {
57
        $this->location = $location;
58
    }
59
60
    /**
61
     * @return bool
62
     */
63
    public function hasElevation()
64
    {
65
        return $this->elevation !== null;
66
    }
67
68
    /**
69
     * @return float|null
70
     */
71
    public function getElevation()
72
    {
73
        return $this->elevation;
74
    }
75
76
    /**
77
     * @param float|null $elevation
78
     */
79
    public function setElevation($elevation)
80
    {
81
        $this->elevation = $elevation;
82
    }
83
84
    /**
85
     * @return bool
86
     */
87
    public function hasResolution()
88
    {
89
        return $this->resolution !== null;
90
    }
91
92
    /**
93
     * @return float|null
94
     */
95
    public function getResolution()
96
    {
97
        return $this->resolution;
98
    }
99
100
    /**
101
     * @param float|null $resolution
102
     */
103
    public function setResolution($resolution)
104
    {
105
        $this->resolution = $resolution;
106
    }
107
}
108