Passed
Push — master ( 9db3d0...354d5b )
by Reyo
02:53
created

Mileage   A

Complexity

Total Complexity 34

Size/Duplication

Total Lines 321
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 69
c 1
b 0
f 0
dl 0
loc 321
ccs 0
cts 152
cp 0
rs 9.68
wmc 34

34 Methods

Rating   Name   Duplication   Size   Complexity  
A setToAddress() 0 5 1
A getDate() 0 3 1
A getCustomerId() 0 3 1
A setCustomerName() 0 5 1
A getProjectId() 0 3 1
A getType() 0 3 1
A getBillable() 0 3 1
A setUserId() 0 5 1
A setFromAddress() 0 5 1
A setProjectName() 0 5 1
A setVehicleName() 0 5 1
A setId() 0 5 1
A getDistance() 0 3 1
A getVehicleName() 0 3 1
A getCustomerName() 0 3 1
A getFromAddress() 0 3 1
A setBillable() 0 5 1
A setProjectId() 0 5 1
A setStatus() 0 5 1
A setCustomerId() 0 5 1
A getStatus() 0 3 1
A setDistance() 0 5 1
A setNotes() 0 5 1
A getUserId() 0 3 1
A setVehicleId() 0 5 1
A setDate() 0 5 1
A getVehicleId() 0 3 1
A getNotes() 0 3 1
A getProjectName() 0 3 1
A getToAddress() 0 3 1
A getId() 0 3 1
A getUserDisplayName() 0 3 1
A setUserDisplayName() 0 5 1
A setType() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Model;
11
12
class Mileage
13
{
14
    /**
15
     * @var int|null
16
     */
17
    protected $id;
18
    /**
19
     * @var int|null
20
     */
21
    protected $customerId;
22
    /**
23
     * @var string|null
24
     */
25
    protected $customerName;
26
    /**
27
     * When ProjectId is filled, CustomerId can be empty.
28
     *
29
     * @var int|null
30
     */
31
    protected $projectId;
32
    /**
33
     * @var string|null
34
     */
35
    protected $projectName;
36
    /**
37
     * @var int|null
38
     */
39
    protected $vehicleId;
40
    /**
41
     * @var string|null
42
     */
43
    protected $vehicleName;
44
    /**
45
     * If UserId is empty, current user will be linked.
46
     *
47
     * @var int|null
48
     */
49
    protected $userId;
50
    /**
51
     * @var string|null
52
     */
53
    protected $userDisplayName;
54
    /**
55
     * Date is required.
56
     *
57
     * @var \DateTime|null
58
     */
59
    protected $date;
60
    /**
61
     * @var string|null
62
     */
63
    protected $fromAddress;
64
    /**
65
     * @var string|null
66
     */
67
    protected $toAddress;
68
    /**
69
     * @var string|null
70
     */
71
    protected $notes;
72
    /**
73
     * Distance is required.
74
     *
75
     * @var float|null
76
     */
77
    protected $distance;
78
    /**
79
     * @var bool|null
80
     */
81
    protected $billable;
82
    /**
83
     * Type is required1 = Private, 2 = Business, 3 = HomeWork.
84
     *
85
     * @var int|null
86
     */
87
    protected $type;
88
    /**
89
     * 0 = Open, 1 = PendingApproval, 2 = Approved, 3 = Invoiced, 4 = WrittenOff, -1 = Rejected.
90
     *
91
     * @var int|null
92
     */
93
    protected $status;
94
95
    public function getId(): ?int
96
    {
97
        return $this->id;
98
    }
99
100
    public function setId(?int $id): self
101
    {
102
        $this->id = $id;
103
104
        return $this;
105
    }
106
107
    public function getCustomerId(): ?int
108
    {
109
        return $this->customerId;
110
    }
111
112
    public function setCustomerId(?int $customerId): self
113
    {
114
        $this->customerId = $customerId;
115
116
        return $this;
117
    }
118
119
    public function getCustomerName(): ?string
120
    {
121
        return $this->customerName;
122
    }
123
124
    public function setCustomerName(?string $customerName): self
125
    {
126
        $this->customerName = $customerName;
127
128
        return $this;
129
    }
130
131
    /**
132
     * When ProjectId is filled, CustomerId can be empty.
133
     */
134
    public function getProjectId(): ?int
135
    {
136
        return $this->projectId;
137
    }
138
139
    /**
140
     * When ProjectId is filled, CustomerId can be empty.
141
     */
142
    public function setProjectId(?int $projectId): self
143
    {
144
        $this->projectId = $projectId;
145
146
        return $this;
147
    }
148
149
    public function getProjectName(): ?string
150
    {
151
        return $this->projectName;
152
    }
153
154
    public function setProjectName(?string $projectName): self
155
    {
156
        $this->projectName = $projectName;
157
158
        return $this;
159
    }
160
161
    public function getVehicleId(): ?int
162
    {
163
        return $this->vehicleId;
164
    }
165
166
    public function setVehicleId(?int $vehicleId): self
167
    {
168
        $this->vehicleId = $vehicleId;
169
170
        return $this;
171
    }
172
173
    public function getVehicleName(): ?string
174
    {
175
        return $this->vehicleName;
176
    }
177
178
    public function setVehicleName(?string $vehicleName): self
179
    {
180
        $this->vehicleName = $vehicleName;
181
182
        return $this;
183
    }
184
185
    /**
186
     * If UserId is empty, current user will be linked.
187
     */
188
    public function getUserId(): ?int
189
    {
190
        return $this->userId;
191
    }
192
193
    /**
194
     * If UserId is empty, current user will be linked.
195
     */
196
    public function setUserId(?int $userId): self
197
    {
198
        $this->userId = $userId;
199
200
        return $this;
201
    }
202
203
    public function getUserDisplayName(): ?string
204
    {
205
        return $this->userDisplayName;
206
    }
207
208
    public function setUserDisplayName(?string $userDisplayName): self
209
    {
210
        $this->userDisplayName = $userDisplayName;
211
212
        return $this;
213
    }
214
215
    /**
216
     * Date is required.
217
     */
218
    public function getDate(): ?\DateTime
219
    {
220
        return $this->date;
221
    }
222
223
    /**
224
     * Date is required.
225
     */
226
    public function setDate(?\DateTime $date): self
227
    {
228
        $this->date = $date;
229
230
        return $this;
231
    }
232
233
    public function getFromAddress(): ?string
234
    {
235
        return $this->fromAddress;
236
    }
237
238
    public function setFromAddress(?string $fromAddress): self
239
    {
240
        $this->fromAddress = $fromAddress;
241
242
        return $this;
243
    }
244
245
    public function getToAddress(): ?string
246
    {
247
        return $this->toAddress;
248
    }
249
250
    public function setToAddress(?string $toAddress): self
251
    {
252
        $this->toAddress = $toAddress;
253
254
        return $this;
255
    }
256
257
    public function getNotes(): ?string
258
    {
259
        return $this->notes;
260
    }
261
262
    public function setNotes(?string $notes): self
263
    {
264
        $this->notes = $notes;
265
266
        return $this;
267
    }
268
269
    /**
270
     * Distance is required.
271
     */
272
    public function getDistance(): ?float
273
    {
274
        return $this->distance;
275
    }
276
277
    /**
278
     * Distance is required.
279
     */
280
    public function setDistance(?float $distance): self
281
    {
282
        $this->distance = $distance;
283
284
        return $this;
285
    }
286
287
    public function getBillable(): ?bool
288
    {
289
        return $this->billable;
290
    }
291
292
    public function setBillable(?bool $billable): self
293
    {
294
        $this->billable = $billable;
295
296
        return $this;
297
    }
298
299
    /**
300
     * Type is required1 = Private, 2 = Business, 3 = HomeWork.
301
     */
302
    public function getType(): ?int
303
    {
304
        return $this->type;
305
    }
306
307
    /**
308
     * Type is required1 = Private, 2 = Business, 3 = HomeWork.
309
     */
310
    public function setType(?int $type): self
311
    {
312
        $this->type = $type;
313
314
        return $this;
315
    }
316
317
    /**
318
     * 0 = Open, 1 = PendingApproval, 2 = Approved, 3 = Invoiced, 4 = WrittenOff, -1 = Rejected.
319
     */
320
    public function getStatus(): ?int
321
    {
322
        return $this->status;
323
    }
324
325
    /**
326
     * 0 = Open, 1 = PendingApproval, 2 = Approved, 3 = Invoiced, 4 = WrittenOff, -1 = Rejected.
327
     */
328
    public function setStatus(?int $status): self
329
    {
330
        $this->status = $status;
331
332
        return $this;
333
    }
334
}
335