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::getHash()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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