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 ( 136ebc...1faea8 )
by Eric
03:01
created

DirectionsTransitStop::hasLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
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\Directions\Response\Transit;
13
14
use Ivory\GoogleMap\Base\Coordinate;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
class DirectionsTransitStop
20
{
21
    /**
22
     * @var string|null
23
     */
24
    private $name;
25
26
    /**
27
     * @var Coordinate|null
28
     */
29
    private $location;
30
31
    /**
32
     * @return bool
33
     */
34
    public function hasName()
35
    {
36
        return $this->name !== null;
37
    }
38
39
    /**
40
     * @return string|null
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param string|null $name
49
     */
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
    }
54
55
    /**
56
     * @return bool
57
     */
58
    public function hasLocation()
59
    {
60
        return $this->location !== null;
61
    }
62
63
    /**
64
     * @return Coordinate|null
65
     */
66
    public function getLocation()
67
    {
68
        return $this->location;
69
    }
70
71
    /**
72
     * @param Coordinate|null $location
73
     */
74
    public function setLocation(Coordinate $location = null)
75
    {
76
        $this->location = $location;
77
    }
78
}
79