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

DirectionsTransitVehicle::setLocalIcon()   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 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\Directions\Response\Transit;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class DirectionsTransitVehicle
18
{
19
    /**
20
     * @var string|null
21
     */
22
    private $name;
23
24
    /**
25
     * @var string|null
26
     */
27
    private $icon;
28
29
    /**
30
     * @var string|null
31
     */
32
    private $type;
33
34
    /**
35
     * @var string|null
36
     */
37
    private $localIcon;
38
39
    /**
40
     * @return bool
41
     */
42
    public function hasName()
43
    {
44
        return $this->name !== null;
45
    }
46
47
    /**
48
     * @return string|null
49
     */
50
    public function getName()
51
    {
52
        return $this->name;
53
    }
54
55
    /**
56
     * @param string|null $name
57
     */
58
    public function setName($name)
59
    {
60
        $this->name = $name;
61
    }
62
63
    /**
64
     * @return bool
65
     */
66
    public function hasIcon()
67
    {
68
        return $this->icon !== null;
69
    }
70
71
    /**
72
     * @return string|null
73
     */
74
    public function getIcon()
75
    {
76
        return $this->icon;
77
    }
78
79
    /**
80
     * @param string|null $icon
81
     */
82
    public function setIcon($icon)
83
    {
84
        $this->icon = $icon;
85
    }
86
87
    /**
88
     * @return bool
89
     */
90
    public function hasType()
91
    {
92
        return $this->type !== null;
93
    }
94
95
    /**
96
     * @return string|null
97
     */
98
    public function getType()
99
    {
100
        return $this->type;
101
    }
102
103
    /**
104
     * @param string|null $type
105
     */
106
    public function setType($type)
107
    {
108
        $this->type = $type;
109
    }
110
111
    /**
112
     * @return bool
113
     */
114
    public function hasLocalIcon()
115
    {
116
        return $this->localIcon !== null;
117
    }
118
119
    /**
120
     * @return string|null
121
     */
122
    public function getLocalIcon()
123
    {
124
        return $this->localIcon;
125
    }
126
127
    /**
128
     * @param string|null $localIcon
129
     */
130
    public function setLocalIcon($localIcon)
131
    {
132
        $this->localIcon = $localIcon;
133
    }
134
}
135