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   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 75
ccs 0
cts 27
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getDiscount() 0 4 1
A setDiscount() 0 6 1
A getValue() 0 4 1
A setValue() 0 6 1
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