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.
Passed
Pull Request — master (#7)
by Alexander
49:36 queued 24:33
created

Dispatch::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * LeadCommerce\Shopware\SDK\Entity
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
namespace LeadCommerce\Shopware\SDK\Entity;
11
12
/**
13
 * Class Dispatch
14
 */
15
class Dispatch extends Base
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var string
23
     */
24
    protected $name;
25
    /**
26
     * @var int
27
     */
28
    protected $type;
29
    /**
30
     * @var string
31
     */
32
    protected $description;
33
    /**
34
     * @var string
35
     */
36
    protected $comment;
37
    /**
38
     * @var bool
39
     */
40
    protected $active;
41
    /**
42
     * @var int
43
     */
44
    protected $position;
45
    /**
46
     * @var int
47
     */
48
    protected $calculation;
49
    /**
50
     * @var int
51
     */
52
    protected $surchargeCalculation;
53
    /**
54
     * @var int
55
     */
56
    protected $taxCalculation;
57
    /**
58
     * @var float
59
     */
60
    protected $shippingFree;
61
    /**
62
     * @var int
63
     */
64
    protected $multiShopId;
65
    /**
66
     * @var int
67
     */
68
    protected $customerGroupId;
69
    /**
70
     * @var int
71
     */
72
    protected $bindShippingFree;
73
    /**
74
     * @var int
75
     */
76
    protected $bindTimeFrom;
77
    /**
78
     * @var int
79
     */
80
    protected $bindTimeTo;
81
    /**
82
     * @var int
83
     */
84
    protected $bindInStock;
85
    /**
86
     * @var int
87
     */
88
    protected $bindWeekdayFrom;
89
    /**
90
     * @var int
91
     */
92
    protected $bindPriceTo;
93
    /**
94
     * @var string
95
     */
96
    protected $bindSql;
97
    /**
98
     * @var string
99
     */
100
    protected $statusLink;
101
    /**
102
     * @var string
103
     */
104
    protected $calculationSql;
105
106
    /**
107
     * @return int
108
     */
109
    public function getId()
110
    {
111
        return $this->id;
112
    }
113
114
    /**
115
     * @param int $id
116
     *
117
     * @return Dispatch
118
     */
119
    public function setId($id)
120
    {
121
        $this->id = $id;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return string
128
     */
129
    public function getName()
130
    {
131
        return $this->name;
132
    }
133
134
    /**
135
     * @param string $name
136
     *
137
     * @return Dispatch
138
     */
139
    public function setName($name)
140
    {
141
        $this->name = $name;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return int
148
     */
149
    public function getType()
150
    {
151
        return $this->type;
152
    }
153
154
    /**
155
     * @param int $type
156
     *
157
     * @return Dispatch
158
     */
159
    public function setType($type)
160
    {
161
        $this->type = $type;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return string
168
     */
169
    public function getDescription()
170
    {
171
        return $this->description;
172
    }
173
174
    /**
175
     * @param string $description
176
     *
177
     * @return Dispatch
178
     */
179
    public function setDescription($description)
180
    {
181
        $this->description = $description;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return string
188
     */
189
    public function getComment()
190
    {
191
        return $this->comment;
192
    }
193
194
    /**
195
     * @param string $comment
196
     *
197
     * @return Dispatch
198
     */
199
    public function setComment($comment)
200
    {
201
        $this->comment = $comment;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return bool
208
     */
209
    public function isActive()
210
    {
211
        return $this->active;
212
    }
213
214
    /**
215
     * @param bool $active
216
     *
217
     * @return Dispatch
218
     */
219
    public function setActive($active)
220
    {
221
        $this->active = $active;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return int
228
     */
229
    public function getPosition()
230
    {
231
        return $this->position;
232
    }
233
234
    /**
235
     * @param int $position
236
     *
237
     * @return Dispatch
238
     */
239
    public function setPosition($position)
240
    {
241
        $this->position = $position;
242
243
        return $this;
244
    }
245
246
    /**
247
     * @return int
248
     */
249
    public function getCalculation()
250
    {
251
        return $this->calculation;
252
    }
253
254
    /**
255
     * @param int $calculation
256
     *
257
     * @return Dispatch
258
     */
259
    public function setCalculation($calculation)
260
    {
261
        $this->calculation = $calculation;
262
263
        return $this;
264
    }
265
266
    /**
267
     * @return int
268
     */
269
    public function getSurchargeCalculation()
270
    {
271
        return $this->surchargeCalculation;
272
    }
273
274
    /**
275
     * @param int $surchargeCalculation
276
     *
277
     * @return Dispatch
278
     */
279
    public function setSurchargeCalculation($surchargeCalculation)
280
    {
281
        $this->surchargeCalculation = $surchargeCalculation;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @return int
288
     */
289
    public function getTaxCalculation()
290
    {
291
        return $this->taxCalculation;
292
    }
293
294
    /**
295
     * @param int $taxCalculation
296
     *
297
     * @return Dispatch
298
     */
299
    public function setTaxCalculation($taxCalculation)
300
    {
301
        $this->taxCalculation = $taxCalculation;
302
303
        return $this;
304
    }
305
306
    /**
307
     * @return float
308
     */
309
    public function getShippingFree()
310
    {
311
        return $this->shippingFree;
312
    }
313
314
    /**
315
     * @param float $shippingFree
316
     *
317
     * @return Dispatch
318
     */
319
    public function setShippingFree($shippingFree)
320
    {
321
        $this->shippingFree = $shippingFree;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @return int
328
     */
329
    public function getMultiShopId()
330
    {
331
        return $this->multiShopId;
332
    }
333
334
    /**
335
     * @param int $multiShopId
336
     *
337
     * @return Dispatch
338
     */
339
    public function setMultiShopId($multiShopId)
340
    {
341
        $this->multiShopId = $multiShopId;
342
343
        return $this;
344
    }
345
346
    /**
347
     * @return int
348
     */
349
    public function getCustomerGroupId()
350
    {
351
        return $this->customerGroupId;
352
    }
353
354
    /**
355
     * @param int $customerGroupId
356
     *
357
     * @return Dispatch
358
     */
359
    public function setCustomerGroupId($customerGroupId)
360
    {
361
        $this->customerGroupId = $customerGroupId;
362
363
        return $this;
364
    }
365
366
    /**
367
     * @return int
368
     */
369
    public function getBindShippingFree()
370
    {
371
        return $this->bindShippingFree;
372
    }
373
374
    /**
375
     * @param int $bindShippingFree
376
     *
377
     * @return Dispatch
378
     */
379
    public function setBindShippingFree($bindShippingFree)
380
    {
381
        $this->bindShippingFree = $bindShippingFree;
382
383
        return $this;
384
    }
385
386
    /**
387
     * @return int
388
     */
389
    public function getBindTimeFrom()
390
    {
391
        return $this->bindTimeFrom;
392
    }
393
394
    /**
395
     * @param int $bindTimeFrom
396
     *
397
     * @return Dispatch
398
     */
399
    public function setBindTimeFrom($bindTimeFrom)
400
    {
401
        $this->bindTimeFrom = $bindTimeFrom;
402
403
        return $this;
404
    }
405
}
406