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 ( b98016...0803ae )
by Mohamed
40:16 queued 14:56
created

Image::getWidth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Neta\Shopware\SDK\Entity.
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author    Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
11
namespace Neta\Shopware\SDK\Entity;
12
13
/**
14
 * Class Image.
15
 */
16
class Image extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var int
24
     */
25
    protected $articleId;
26
    /**
27
     * @var int
28
     */
29
    protected $articleDetailId;
30
    /**
31
     * @var string
32
     */
33
    protected $description;
34
    /**
35
     * @var string
36
     */
37
    protected $path;
38
    /**
39
     * @var int
40
     */
41
    protected $main;
42
    /**
43
     * @var int
44
     */
45
    protected $position;
46
    /**
47
     * @var int
48
     */
49
    protected $width;
50
    /**
51
     * @var int
52
     */
53
    protected $height;
54
    /**
55
     * @var string
56
     */
57
    protected $relations;
58
    /**
59
     * @var string
60
     */
61
    protected $extension;
62
    /**
63
     * @var int
64
     */
65
    protected $parentId;
66
    /**
67
     * @var int
68
     */
69
    protected $mediaId;
70
71
    /**
72
     * @return int
73
     */
74
    public function getId()
75
    {
76
        return $this->id;
77
    }
78
79
    /**
80
     * @param int $id
81
     *
82
     * @return Image
83
     */
84
    public function setId($id)
85
    {
86
        $this->id = $id;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getArticleId()
95
    {
96
        return $this->articleId;
97
    }
98
99
    /**
100
     * @param int $articleId
101
     *
102
     * @return Image
103
     */
104
    public function setArticleId($articleId)
105
    {
106
        $this->articleId = $articleId;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getArticleDetailId()
115
    {
116
        return $this->articleDetailId;
117
    }
118
119
    /**
120
     * @param int $articleDetailId
121
     *
122
     * @return Image
123
     */
124
    public function setArticleDetailId($articleDetailId)
125
    {
126
        $this->articleDetailId = $articleDetailId;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getDescription()
135
    {
136
        return $this->description;
137
    }
138
139
    /**
140
     * @param string $description
141
     *
142
     * @return Image
143
     */
144
    public function setDescription($description)
145
    {
146
        $this->description = $description;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getPath()
155
    {
156
        return $this->path;
157
    }
158
159
    /**
160
     * @param string $path
161
     *
162
     * @return Image
163
     */
164
    public function setPath($path)
165
    {
166
        $this->path = $path;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return int
173
     */
174
    public function getMain()
175
    {
176
        return $this->main;
177
    }
178
179
    /**
180
     * @param int $main
181
     *
182
     * @return Image
183
     */
184
    public function setMain($main)
185
    {
186
        $this->main = $main;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return int
193
     */
194
    public function getPosition()
195
    {
196
        return $this->position;
197
    }
198
199
    /**
200
     * @param int $position
201
     *
202
     * @return Image
203
     */
204
    public function setPosition($position)
205
    {
206
        $this->position = $position;
207
208
        return $this;
209
    }
210
211
    /**
212
     * @return int
213
     */
214
    public function getWidth()
215
    {
216
        return $this->width;
217
    }
218
219
    /**
220
     * @param int $width
221
     *
222
     * @return Image
223
     */
224
    public function setWidth($width)
225
    {
226
        $this->width = $width;
227
228
        return $this;
229
    }
230
231
    /**
232
     * @return int
233
     */
234
    public function getHeight()
235
    {
236
        return $this->height;
237
    }
238
239
    /**
240
     * @param int $height
241
     *
242
     * @return Image
243
     */
244
    public function setHeight($height)
245
    {
246
        $this->height = $height;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @return string
253
     */
254
    public function getRelations()
255
    {
256
        return $this->relations;
257
    }
258
259
    /**
260
     * @param string $relations
261
     *
262
     * @return Image
263
     */
264
    public function setRelations($relations)
265
    {
266
        $this->relations = $relations;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @return string
273
     */
274
    public function getExtension()
275
    {
276
        return $this->extension;
277
    }
278
279
    /**
280
     * @param string $extension
281
     *
282
     * @return Image
283
     */
284
    public function setExtension($extension)
285
    {
286
        $this->extension = $extension;
287
288
        return $this;
289
    }
290
291
    /**
292
     * @return int
293
     */
294
    public function getParentId()
295
    {
296
        return $this->parentId;
297
    }
298
299
    /**
300
     * @param int $parentId
301
     *
302
     * @return Image
303
     */
304
    public function setParentId($parentId)
305
    {
306
        $this->parentId = $parentId;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @return int
313
     */
314
    public function getMediaId()
315
    {
316
        return $this->mediaId;
317
    }
318
319
    /**
320
     * @param int $mediaId
321
     *
322
     * @return Image
323
     */
324
    public function setMediaId($mediaId)
325
    {
326
        $this->mediaId = $mediaId;
327
328
        return $this;
329
    }
330
}
331