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 ( 48dce0...2aae7b )
by Dragos
14:22
created

Beacon   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 230
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 14
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 230
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getUuid() 0 4 1
A setUuid() 0 4 1
A getMajor() 0 4 1
A setMajor() 0 6 1
A getMinor() 0 4 1
A setMinor() 0 6 1
A getMac() 0 4 1
A setMac() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getSettings() 0 4 1
A setSettings() 0 4 1
1
<?php
2
3
namespace Speicher210\Estimote\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Estimote\Model\Beacon\Settings;
7
8
/**
9
 * Model representing a device.
10
 */
11
class Beacon
12
{
13
    const DEVICE_TYPE_BEACON = 'BEACON';
14
    const DEVICE_TYPE_CLOUD_BEACON = 'CLOUD_BEACON';
15
16
    /**
17
     * Beacon ID.
18
     *
19
     * @var string
20
     *
21
     * @JMS\Type("string")
22
     * @JMS\SerializedName("id")
23
     */
24
    protected $id;
25
26
    /**
27
     * UUID.
28
     *
29
     * @var string
30
     *
31
     * @JMS\Type("string")
32
     * @JMS\SerializedName("uuid")
33
     */
34
    protected $uuid;
35
36
    /**
37
     * Major.
38
     *
39
     * @var integer
40
     *
41
     * @JMS\Type("integer")
42
     * @JMS\SerializedName("major")
43
     */
44
    protected $major;
45
46
    /**
47
     * Minor.
48
     *
49
     * @var integer
50
     *
51
     * @JMS\Type("integer")
52
     * @JMS\SerializedName("minor")
53
     */
54
    protected $minor;
55
56
    /**
57
     * MAC address of the beacon.
58
     *
59
     * @var string
60
     *
61
     * @JMS\Type("string")
62
     * @JMS\SerializedName("mac")
63
     */
64
    protected $mac;
65
66
    /**
67
     * Device name.
68
     *
69
     * @var string
70
     *
71
     * @JMS\Type("string")
72
     * @JMS\SerializedName("name")
73
     */
74
    protected $name;
75
76
    /**
77
     * Beacon settings.
78
     *
79
     * @var Settings
80
     *
81
     * @JMS\Type("Speicher210\Estimote\Model\Beacon\Settings")
82
     * @JMS\SerializedName("settings")
83
     */
84
    protected $settings;
85
86
    /**
87
     * Get the ID.
88
     *
89
     * @return string
90
     */
91
    public function getId()
92
    {
93
        return $this->id;
94
    }
95
96
    /**
97
     * Set the ID.
98
     *
99
     * @param string $id The ID.
100
     * @return Beacon
101
     */
102
    public function setId($id)
103
    {
104
        $this->id = $id;
105
106
        return $this;
107
    }
108
109
    /**
110
     * Get the UUID.
111
     *
112
     * @return string
113
     */
114
    public function getUuid()
115
    {
116
        return $this->uuid;
117
    }
118
119
    /**
120
     * Set the UUID.
121
     *
122
     * @param string $uuid The UUID to set.
123
     */
124
    public function setUuid($uuid)
125
    {
126
        $this->uuid = $uuid;
127
    }
128
129
    /**
130
     * Get the major.
131
     *
132
     * @return integer
133
     */
134
    public function getMajor()
135
    {
136
        return $this->major;
137
    }
138
139
    /**
140
     * Set the major.
141
     *
142
     * @param integer $major The major.
143
     * @return Beacon
144
     */
145
    public function setMajor($major)
146
    {
147
        $this->major = $major;
148
149
        return $this;
150
    }
151
152
    /**
153
     * Get the minor.
154
     *
155
     * @return integer
156
     */
157
    public function getMinor()
158
    {
159
        return $this->minor;
160
    }
161
162
    /**
163
     * Set the minor.
164
     *
165
     * @param integer $minor The minor.
166
     * @return Beacon
167
     */
168
    public function setMinor($minor)
169
    {
170
        $this->minor = $minor;
171
172
        return $this;
173
    }
174
175
    /**
176
     * Get the MAC.
177
     *
178
     * @return string
179
     */
180
    public function getMac()
181
    {
182
        return $this->mac;
183
    }
184
185
    /**
186
     * Set the MAC.
187
     *
188
     * @param string $mac The mac.
189
     * @return Beacon
190
     */
191
    public function setMac($mac)
192
    {
193
        $this->mac = $mac;
194
195
        return $this;
196
    }
197
198
    /**
199
     * Get the name.
200
     *
201
     * @return string
202
     */
203
    public function getName()
204
    {
205
        return $this->name;
206
    }
207
208
    /**
209
     * Set the name.
210
     *
211
     * @param string $name The name.
212
     * @return Beacon
213
     */
214
    public function setName($name)
215
    {
216
        $this->name = $name;
217
218
        return $this;
219
    }
220
221
    /**
222
     * Get the beacon settings.
223
     *
224
     * @return Settings
225
     */
226
    public function getSettings()
227
    {
228
        return $this->settings;
229
    }
230
231
    /**
232
     * Set the beacon settings.
233
     *
234
     * @param Settings $settings The settings.
235
     */
236
    public function setSettings(Settings $settings)
237
    {
238
        $this->settings = $settings;
239
    }
240
}
241