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.

Dispatch::setTaxCalculation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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