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.

CustomerGroupSurcharge::setValue()   A
last analyzed

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 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
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 CustomerGroupSurcharge
14
 */
15
class CustomerGroupSurcharge extends Base
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var int
23
     */
24
    protected $discount;
25
    /**
26
     * @var int
27
     */
28
    protected $value;
29
30
    /**
31
     * @return int
32
     */
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * @param int $id
40
     *
41
     * @return CustomerGroupSurcharge
42
     */
43
    public function setId($id)
44
    {
45
        $this->id = $id;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function getDiscount()
54
    {
55
        return $this->discount;
56
    }
57
58
    /**
59
     * @param int $discount
60
     *
61
     * @return CustomerGroupSurcharge
62
     */
63
    public function setDiscount($discount)
64
    {
65
        $this->discount = $discount;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return int
72
     */
73
    public function getValue()
74
    {
75
        return $this->value;
76
    }
77
78
    /**
79
     * @param int $value
80
     *
81
     * @return CustomerGroupSurcharge
82
     */
83
    public function setValue($value)
84
    {
85
        $this->value = $value;
86
87
        return $this;
88
    }
89
}
90