Completed
Push — feature/multi_order ( eb7707 )
by Laurent
01:37
created

CreateFlightCommand::setOrderIds()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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