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.

Customer::setId()   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 Customer.
15
 */
16
class Customer extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $salutation;
26
    /**
27
     * @var string
28
     */
29
    protected $number;
30
    /**
31
     * @var string
32
     */
33
    protected $email;
34
    /**
35
     * @var string
36
     */
37
    protected $firstname;
38
    /**
39
     * @var string
40
     */
41
    protected $lastname;
42
    /**
43
     * @var CustomerAttribute[]
44
     */
45
    protected $attribute;
46
    /**
47
     * @var CustomerDefaultBillingAddress[]
48
     */
49
    protected $defaultBillingAddress;
50
51
    /**
52
     * @return int
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @param int $id
61
     *
62
     * @return Customer
63
     */
64
    public function setId($id)
65
    {
66
        $this->id = $id;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getSalutation()
75
    {
76
        return $this->salutation;
77
    }
78
79
    /**
80
     * @param string $salutation
81
     *
82
     * @return Customer
83
     */
84
    public function setSalutation($salutation)
85
    {
86
        $this->salutation = $salutation;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getNumber()
95
    {
96
        return $this->number;
97
    }
98
99
    /**
100
     * @param string $number
101
     *
102
     * @return Customer
103
     */
104
    public function setNumber($number)
105
    {
106
        $this->number = $number;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getFirstName()
115
    {
116
        return $this->firstname;
117
    }
118
119
    /**
120
     * @param string $firstname
121
     *
122
     * @return Customer
123
     */
124
    public function setFirstName($firstname)
125
    {
126
        $this->firstname = $firstname;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getLastName()
135
    {
136
        return $this->lastname;
137
    }
138
139
    /**
140
     * @param string $lastname
141
     *
142
     * @return Customer
143
     */
144
    public function setLastName($lastname)
145
    {
146
        $this->lastname = $lastname;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return CustomerAttribute[]
153
     */
154
    public function getAttributes()
155
    {
156
        return $this->attribute;
157
    }
158
159
    /**
160
     * @param CustomerAttribute[] $attribute
161
     *
162
     * @return Customer
163
     */
164
    public function setAttributes($attribute)
165
    {
166
        $this->attribute = $attribute;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return CustomerDefaultBillingAddress[]
173
     */
174
    public function getDefaultBillingAddress()
175
    {
176
        return $this->defaultBillingAddress;
177
    }
178
179
    /**
180
     * @param CustomerDefaultBillingAddress[] $defaultBillingAddress
181
     *
182
     * @return Customer
183
     */
184
    public function setDefaultBillingAddress($defaultBillingAddress)
185
    {
186
        $this->defaultBillingAddress = $defaultBillingAddress;
187
188
        return $this;
189
    }
190
}
191