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.

ShippingAttribute   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 195
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 1
dl 195
loc 195
ccs 0
cts 72
cp 0
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 4 4 1
A setId() 6 6 1
A getCustomerShippingId() 4 4 1
A setCustomerShippingId() 6 6 1
A getText1() 4 4 1
A setText1() 6 6 1
A getText2() 4 4 1
A setText2() 6 6 1
A getText3() 4 4 1
A setText3() 6 6 1
A getText4() 4 4 1
A setText4() 6 6 1
A getText5() 4 4 1
A setText5() 6 6 1
A getText6() 4 4 1
A setText6() 6 6 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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 ShippingAttribute.
15
 */
16 View Code Duplication
class ShippingAttribute extends Base
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var int
24
     */
25
    protected $customerShippingId;
26
    /**
27
     * @var string
28
     */
29
    protected $text1;
30
    /**
31
     * @var string
32
     */
33
    protected $text2;
34
    /**
35
     * @var string
36
     */
37
    protected $text3;
38
    /**
39
     * @var string
40
     */
41
    protected $text4;
42
    /**
43
     * @var string
44
     */
45
    protected $text5;
46
    /**
47
     * @var string
48
     */
49
    protected $text6;
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 ShippingAttribute
63
     */
64
    public function setId($id)
65
    {
66
        $this->id = $id;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getCustomerShippingId()
75
    {
76
        return $this->customerShippingId;
77
    }
78
79
    /**
80
     * @param int $customerShippingId
81
     *
82
     * @return ShippingAttribute
83
     */
84
    public function setCustomerShippingId($customerShippingId)
85
    {
86
        $this->customerShippingId = $customerShippingId;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string
93
     */
94
    public function getText1()
95
    {
96
        return $this->text1;
97
    }
98
99
    /**
100
     * @param string $text1
101
     *
102
     * @return ShippingAttribute
103
     */
104
    public function setText1($text1)
105
    {
106
        $this->text1 = $text1;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getText2()
115
    {
116
        return $this->text2;
117
    }
118
119
    /**
120
     * @param string $text2
121
     *
122
     * @return ShippingAttribute
123
     */
124
    public function setText2($text2)
125
    {
126
        $this->text2 = $text2;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getText3()
135
    {
136
        return $this->text3;
137
    }
138
139
    /**
140
     * @param string $text3
141
     *
142
     * @return ShippingAttribute
143
     */
144
    public function setText3($text3)
145
    {
146
        $this->text3 = $text3;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getText4()
155
    {
156
        return $this->text4;
157
    }
158
159
    /**
160
     * @param string $text4
161
     *
162
     * @return ShippingAttribute
163
     */
164
    public function setText4($text4)
165
    {
166
        $this->text4 = $text4;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return string
173
     */
174
    public function getText5()
175
    {
176
        return $this->text5;
177
    }
178
179
    /**
180
     * @param string $text5
181
     *
182
     * @return ShippingAttribute
183
     */
184
    public function setText5($text5)
185
    {
186
        $this->text5 = $text5;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getText6()
195
    {
196
        return $this->text6;
197
    }
198
199
    /**
200
     * @param string $text6
201
     *
202
     * @return ShippingAttribute
203
     */
204
    public function setText6($text6)
205
    {
206
        $this->text6 = $text6;
207
208
        return $this;
209
    }
210
}
211