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.

Document   A
last analyzed

Complexity

Total Complexity 20

Size/Duplication

Total Lines 243
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 20
lcom 0
cbo 1
dl 0
loc 243
ccs 0
cts 90
cp 0
rs 10
c 0
b 0
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getDate() 0 4 1
A setDate() 0 6 1
A getTypeId() 0 4 1
A setTypeId() 0 6 1
A getCustomerId() 0 4 1
A setCustomerId() 0 6 1
A getOrderId() 0 4 1
A setOrderId() 0 6 1
A getAmount() 0 4 1
A setAmount() 0 6 1
A getDocumentId() 0 4 1
A setDocumentId() 0 6 1
A getHash() 0 4 1
A setHash() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
A getAttribute() 0 4 1
A setAttribute() 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 Document
14
 */
15
class Document extends Base
16
{
17
    /**
18
     * @var int
19
     */
20
    protected $id;
21
    /**
22
     * @var string
23
     */
24
    protected $date;
25
    /**
26
     * @var int
27
     */
28
    protected $typeId;
29
    /**
30
     * @var int
31
     */
32
    protected $customerId;
33
    /**
34
     * @var int
35
     */
36
    protected $orderId;
37
    /**
38
     * @var float
39
     */
40
    protected $amount;
41
    /**
42
     * @var int
43
     */
44
    protected $documentId;
45
    /**
46
     * @var string
47
     */
48
    protected $hash;
49
    /**
50
     * @var DocumentType
51
     */
52
    protected $type;
53
    /**
54
     * @var DocumentAttribute
55
     */
56
    protected $attribute;
57
58
    /**
59
     * @return int
60
     */
61
    public function getId()
62
    {
63
        return $this->id;
64
    }
65
66
    /**
67
     * @param int $id
68
     *
69
     * @return Document
70
     */
71
    public function setId($id)
72
    {
73
        $this->id = $id;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getDate()
82
    {
83
        return $this->date;
84
    }
85
86
    /**
87
     * @param string $date
88
     *
89
     * @return Document
90
     */
91
    public function setDate($date)
92
    {
93
        $this->date = $date;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @return int
100
     */
101
    public function getTypeId()
102
    {
103
        return $this->typeId;
104
    }
105
106
    /**
107
     * @param int $typeId
108
     *
109
     * @return Document
110
     */
111
    public function setTypeId($typeId)
112
    {
113
        $this->typeId = $typeId;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getCustomerId()
122
    {
123
        return $this->customerId;
124
    }
125
126
    /**
127
     * @param int $customerId
128
     *
129
     * @return Document
130
     */
131
    public function setCustomerId($customerId)
132
    {
133
        $this->customerId = $customerId;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @return int
140
     */
141
    public function getOrderId()
142
    {
143
        return $this->orderId;
144
    }
145
146
    /**
147
     * @param int $orderId
148
     *
149
     * @return Document
150
     */
151
    public function setOrderId($orderId)
152
    {
153
        $this->orderId = $orderId;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @return float
160
     */
161
    public function getAmount()
162
    {
163
        return $this->amount;
164
    }
165
166
    /**
167
     * @param float $amount
168
     *
169
     * @return Document
170
     */
171
    public function setAmount($amount)
172
    {
173
        $this->amount = $amount;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @return int
180
     */
181
    public function getDocumentId()
182
    {
183
        return $this->documentId;
184
    }
185
186
    /**
187
     * @param int $documentId
188
     *
189
     * @return Document
190
     */
191
    public function setDocumentId($documentId)
192
    {
193
        $this->documentId = $documentId;
194
195
        return $this;
196
    }
197
198
    /**
199
     * @return string
200
     */
201
    public function getHash()
202
    {
203
        return $this->hash;
204
    }
205
206
    /**
207
     * @param string $hash
208
     *
209
     * @return Document
210
     */
211
    public function setHash($hash)
212
    {
213
        $this->hash = $hash;
214
215
        return $this;
216
    }
217
218
    /**
219
     * @return DocumentType
220
     */
221
    public function getType()
222
    {
223
        return $this->type;
224
    }
225
226
    /**
227
     * @param DocumentType $type
228
     *
229
     * @return Document
230
     */
231
    public function setType($type)
232
    {
233
        $this->type = $type;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @return DocumentAttribute
240
     */
241
    public function getAttribute()
242
    {
243
        return $this->attribute;
244
    }
245
246
    /**
247
     * @param DocumentAttribute $attribute
248
     *
249
     * @return Document
250
     */
251
    public function setAttribute($attribute)
252
    {
253
        $this->attribute = $attribute;
254
255
        return $this;
256
    }
257
}
258