Completed
Push — master ( 8acc04...458fbe )
by Laurent
02:26
created

CreateFlightCommand   A

Complexity

Total Complexity 39

Size/Duplication

Total Lines 391
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 391
rs 9.28
c 0
b 0
f 0
wmc 39
lcom 1
cbo 0

39 Methods

Rating   Name   Duplication   Size   Complexity  
A getDate() 0 4 1
A setDate() 0 5 1
A getLieuD() 0 4 1
A setLieuD() 0 5 1
A getLieuA() 0 4 1
A setLieuA() 0 5 1
A getHeureD() 0 4 1
A setHeureD() 0 5 1
A getHeureA() 0 4 1
A setHeureA() 0 5 1
A getBBCBallonsIdBBCBallons() 0 4 1
A setBBCBallonsIdBBCBallons() 0 5 1
A getNbrPax() 0 4 1
A setNbrPax() 0 5 1
A getRemarque() 0 4 1
A setRemarque() 0 5 1
A getIncidents() 0 4 1
A setIncidents() 0 5 1
A getFkType() 0 4 1
A setFkType() 0 5 1
A getFkPilot() 0 4 1
A setFkPilot() 0 5 1
A getFkOrganisateur() 0 4 1
A setFkOrganisateur() 0 5 1
A getKilometers() 0 4 1
A setKilometers() 0 5 1
A getCost() 0 4 1
A setCost() 0 5 1
A getFkReceiver() 0 4 1
A setFkReceiver() 0 5 1
A getJustifKilometers() 0 4 1
A setJustifKilometers() 0 5 1
A getPassengerNames() 0 4 1
A setPassengerNames() 0 5 1
A isGroupedFlight() 0 4 1
A setGroupedFlight() 0 5 1
A getOrderId() 0 4 1
A setOrderId() 0 5 1
A hasOrderId() 0 3 1
1
<?php
2
/**
3
 *
4
 */
5
6
/**
7
 * @author Laurent De Coninck <[email protected]>
8
 */
9
class CreateFlightCommand implements CommandInterface
10
{
11
12
    private $date;
13
    private $lieuD;
14
    private $lieuA;
15
    private $heureD;
16
    private $heureA;
17
    private $BBC_ballons_idBBC_ballons;
18
    private $nbrPax;
19
    private $remarque;
20
    private $incidents;
21
    private $fk_type;
22
    private $fk_pilot;
23
    private $fk_organisateur;
24
    private $kilometers;
25
    private $cost;
26
    private $fk_receiver;
27
    private $justif_kilometers;
28
    private $passengerNames;
29
    private $groupedFlight;
30
    private $orderId;
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getDate()
36
    {
37
        return $this->date;
38
    }
39
40
    /**
41
     * @param mixed $date
42
     *
43
     * @return CreateFlightCommand
44
     */
45
    public function setDate($date)
46
    {
47
        $this->date = $date;
48
        return $this;
49
    }
50
51
    /**
52
     * @return mixed
53
     */
54
    public function getLieuD()
55
    {
56
        return $this->lieuD;
57
    }
58
59
    /**
60
     * @param mixed $lieuD
61
     *
62
     * @return CreateFlightCommand
63
     */
64
    public function setLieuD($lieuD)
65
    {
66
        $this->lieuD = $lieuD;
67
        return $this;
68
    }
69
70
    /**
71
     * @return mixed
72
     */
73
    public function getLieuA()
74
    {
75
        return $this->lieuA;
76
    }
77
78
    /**
79
     * @param mixed $lieuA
80
     *
81
     * @return CreateFlightCommand
82
     */
83
    public function setLieuA($lieuA)
84
    {
85
        $this->lieuA = $lieuA;
86
        return $this;
87
    }
88
89
    /**
90
     * @return mixed
91
     */
92
    public function getHeureD()
93
    {
94
        return $this->heureD;
95
    }
96
97
    /**
98
     * @param mixed $heureD
99
     *
100
     * @return CreateFlightCommand
101
     */
102
    public function setHeureD($heureD)
103
    {
104
        $this->heureD = $heureD;
105
        return $this;
106
    }
107
108
    /**
109
     * @return mixed
110
     */
111
    public function getHeureA()
112
    {
113
        return $this->heureA;
114
    }
115
116
    /**
117
     * @param mixed $heureA
118
     *
119
     * @return CreateFlightCommand
120
     */
121
    public function setHeureA($heureA)
122
    {
123
        $this->heureA = $heureA;
124
        return $this;
125
    }
126
127
    /**
128
     * @return mixed
129
     */
130
    public function getBBCBallonsIdBBCBallons()
131
    {
132
        return $this->BBC_ballons_idBBC_ballons;
133
    }
134
135
    /**
136
     * @param mixed $BBC_ballons_idBBC_ballons
137
     *
138
     * @return CreateFlightCommand
139
     */
140
    public function setBBCBallonsIdBBCBallons($BBC_ballons_idBBC_ballons)
141
    {
142
        $this->BBC_ballons_idBBC_ballons = $BBC_ballons_idBBC_ballons;
143
        return $this;
144
    }
145
146
    /**
147
     * @return mixed
148
     */
149
    public function getNbrPax()
150
    {
151
        return $this->nbrPax;
152
    }
153
154
    /**
155
     * @param mixed $nbrPax
156
     *
157
     * @return CreateFlightCommand
158
     */
159
    public function setNbrPax($nbrPax)
160
    {
161
        $this->nbrPax = $nbrPax;
162
        return $this;
163
    }
164
165
    /**
166
     * @return mixed
167
     */
168
    public function getRemarque()
169
    {
170
        return $this->remarque;
171
    }
172
173
    /**
174
     * @param mixed $remarque
175
     *
176
     * @return CreateFlightCommand
177
     */
178
    public function setRemarque($remarque)
179
    {
180
        $this->remarque = $remarque;
181
        return $this;
182
    }
183
184
    /**
185
     * @return mixed
186
     */
187
    public function getIncidents()
188
    {
189
        return $this->incidents;
190
    }
191
192
    /**
193
     * @param mixed $incidents
194
     *
195
     * @return CreateFlightCommand
196
     */
197
    public function setIncidents($incidents)
198
    {
199
        $this->incidents = $incidents;
200
        return $this;
201
    }
202
203
    /**
204
     * @return mixed
205
     */
206
    public function getFkType()
207
    {
208
        return $this->fk_type;
209
    }
210
211
    /**
212
     * @param mixed $fk_type
213
     *
214
     * @return CreateFlightCommand
215
     */
216
    public function setFkType($fk_type)
217
    {
218
        $this->fk_type = $fk_type;
219
        return $this;
220
    }
221
222
    /**
223
     * @return mixed
224
     */
225
    public function getFkPilot()
226
    {
227
        return $this->fk_pilot;
228
    }
229
230
    /**
231
     * @param mixed $fk_pilot
232
     *
233
     * @return CreateFlightCommand
234
     */
235
    public function setFkPilot($fk_pilot)
236
    {
237
        $this->fk_pilot = $fk_pilot;
238
        return $this;
239
    }
240
241
    /**
242
     * @return mixed
243
     */
244
    public function getFkOrganisateur()
245
    {
246
        return $this->fk_organisateur;
247
    }
248
249
    /**
250
     * @param mixed $fk_organisateur
251
     *
252
     * @return CreateFlightCommand
253
     */
254
    public function setFkOrganisateur($fk_organisateur)
255
    {
256
        $this->fk_organisateur = $fk_organisateur;
257
        return $this;
258
    }
259
260
    /**
261
     * @return mixed
262
     */
263
    public function getKilometers()
264
    {
265
        return $this->kilometers;
266
    }
267
268
    /**
269
     * @param mixed $kilometers
270
     *
271
     * @return CreateFlightCommand
272
     */
273
    public function setKilometers($kilometers)
274
    {
275
        $this->kilometers = $kilometers;
276
        return $this;
277
    }
278
279
    /**
280
     * @return mixed
281
     */
282
    public function getCost()
283
    {
284
        return $this->cost;
285
    }
286
287
    /**
288
     * @param mixed $cost
289
     *
290
     * @return CreateFlightCommand
291
     */
292
    public function setCost($cost)
293
    {
294
        $this->cost = $cost;
295
        return $this;
296
    }
297
298
    /**
299
     * @return mixed
300
     */
301
    public function getFkReceiver()
302
    {
303
        return $this->fk_receiver;
304
    }
305
306
    /**
307
     * @param mixed $fk_receiver
308
     *
309
     * @return CreateFlightCommand
310
     */
311
    public function setFkReceiver($fk_receiver)
312
    {
313
        $this->fk_receiver = $fk_receiver;
314
        return $this;
315
    }
316
317
    /**
318
     * @return mixed
319
     */
320
    public function getJustifKilometers()
321
    {
322
        return $this->justif_kilometers;
323
    }
324
325
    /**
326
     * @param mixed $justif_kilometers
327
     *
328
     * @return CreateFlightCommand
329
     */
330
    public function setJustifKilometers($justif_kilometers)
331
    {
332
        $this->justif_kilometers = $justif_kilometers;
333
        return $this;
334
    }
335
336
    /**
337
     * @return mixed
338
     */
339
    public function getPassengerNames()
340
    {
341
        return $this->passengerNames;
342
    }
343
344
    /**
345
     * @param mixed $passengerNames
346
     *
347
     * @return CreateFlightCommand
348
     */
349
    public function setPassengerNames($passengerNames)
350
    {
351
        $this->passengerNames = $passengerNames;
352
        return $this;
353
    }
354
355
    /**
356
     * @return mixed
357
     */
358
    public function isGroupedFlight()
359
    {
360
        return $this->groupedFlight;
361
    }
362
363
    /**
364
     * @param mixed $groupedFlight
365
     *
366
     * @return CreateFlightCommand
367
     */
368
    public function setGroupedFlight($groupedFlight)
369
    {
370
        $this->groupedFlight = $groupedFlight;
371
        return $this;
372
    }
373
374
    /**
375
     * @return mixed
376
     */
377
    public function getOrderId()
378
    {
379
        return $this->orderId;
380
    }
381
382
    /**
383
     * @param mixed $orderId
384
     *
385
     * @return CreateFlightCommand
386
     */
387
    public function setOrderId($orderId)
388
    {
389
        $this->orderId = $orderId;
390
        return $this;
391
    }
392
393
    /**
394
     * @return bool
395
     */
396
    public function hasOrderId(){
397
        return $this->orderId !== null;
398
    }
399
}