Completed
Push — feature/pilot_information ( 13ff1e...cc067b )
by Laurent
01:46
created

setLastTrainingFireDate()   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
namespace FlightLog\Application\Pilot\Command;
5
6
7
use FlightLog\Domain\Pilot\Pilot;
8
9
final class CreateUpdatePilotInformationCommand
10
{
11
12
    /**
13
     * @var int
14
     */
15
    private $pilotId;
16
17
    /**
18
     * @var string
19
     */
20
    private $pilotLicenceNumber = '';
21
22
    /**
23
     * @var string
24
     */
25
    private $trainingPilotLicenceNumber = '';
26
27
    /**
28
     * @var string
29
     */
30
    private $lastTrainingFlightDate = '';
31
32
    /**
33
     * @var bool
34
     */
35
    private $isPilotClassA = false;
36
37
    /**
38
     * @var bool
39
     */
40
    private $isPilotClassB = false;
41
    /**
42
     * @var bool
43
     */
44
    private $isPilotClassC = false;
45
    /**
46
     * @var bool
47
     */
48
    private $isPilotClassD = false;
49
    /**
50
     * @var bool
51
     */
52
    private $isPilotGaz = false;
53
    /**
54
     * @var bool
55
     */
56
    private $isMedicalOwner = false;
57
    /**
58
     * @var string
59
     */
60
    private $endMedicalDate = '';
61
    /**
62
     * @var string
63
     */
64
    private $startMedicalDate = '';
65
    /**
66
     * @var bool
67
     */
68
    private $hasQualifStatic = false;
69
    /**
70
     * @var bool
71
     */
72
    private $hasQualifNight = false;
73
    /**
74
     * @var bool
75
     */
76
    private $hasQualifPro = false;
77
    /**
78
     * @var string
79
     */
80
    private $lastOpcDate = '';
81
    /**
82
     * @var string
83
     */
84
    private $lastProRefreshDate = '';
85
    /**
86
     * @var bool
87
     */
88
    private $hasQualifInstructor = false;
89
    /**
90
     * @var string
91
     */
92
    private $lastInstructorRefreshDate = '';
93
    /**
94
     * @var bool
95
     */
96
    private $hasQualifExaminator = false;
97
    /**
98
     * @var string
99
     */
100
    private $lastExaminatorRefreshDate = '';
101
    /**
102
     * @var bool
103
     */
104
    private $hasRadio = false;
105
    /**
106
     * @var string
107
     */
108
    private $radioLicenceNumber = '';
109
    /**
110
     * @var string
111
     */
112
    private $radioLicenceDate = '';
113
    /**
114
     * @var bool
115
     */
116
    private $hasTrainingFirstHelp = false;
117
    /**
118
     * @var string
119
     */
120
    private $lastTrainingFirstHelpDate = '';
121
    /**
122
     * @var string
123
     */
124
    private $certificationNumberTrainingFirstHelp = '';
125
    /**
126
     * @var bool
127
     */
128
    private $hasTrainingFire = false;
129
    /**
130
     * @var string
131
     */
132
    private $lastTrainingFireDate = '';
133
    /**
134
     * @var string
135
     */
136
    private $certificationNumberTrainingFire = '';
137
138
    public function __construct($pilotId)
139
    {
140
        $this->pilotId = $pilotId;
141
    }
142
143
    /**
144
     * @return mixed
145
     */
146
    public function getPilotId()
147
    {
148
        return $this->pilotId;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getPilotLicenceNumber(): string
155
    {
156
        return $this->pilotLicenceNumber;
157
    }
158
159
    /**
160
     * @param string $pilotLicenceNumber
161
     * @return CreateUpdatePilotInformationCommand
162
     */
163
    public function setPilotLicenceNumber(string $pilotLicenceNumber): CreateUpdatePilotInformationCommand
164
    {
165
        $this->pilotLicenceNumber = $pilotLicenceNumber;
166
        return $this;
167
    }
168
169
    /**
170
     * @return string
171
     */
172
    public function getTrainingPilotLicenceNumber(): string
173
    {
174
        return $this->trainingPilotLicenceNumber;
175
    }
176
177
    /**
178
     * @param string $trainingPilotLicenceNumber
179
     * @return CreateUpdatePilotInformationCommand
180
     */
181
    public function setTrainingPilotLicenceNumber(string $trainingPilotLicenceNumber
182
    ): CreateUpdatePilotInformationCommand {
183
        $this->trainingPilotLicenceNumber = $trainingPilotLicenceNumber;
184
        return $this;
185
    }
186
187
    /**
188
     * @return string
189
     */
190
    public function getLastTrainingFlightDate(): string
191
    {
192
        return $this->lastTrainingFlightDate;
193
    }
194
195
    /**
196
     * @param string $lastTrainingFlightDate
197
     * @return CreateUpdatePilotInformationCommand
198
     */
199
    public function setLastTrainingFlightDate(string $lastTrainingFlightDate): CreateUpdatePilotInformationCommand
200
    {
201
        $this->lastTrainingFlightDate = $lastTrainingFlightDate;
202
        return $this;
203
    }
204
205
    /**
206
     * @return bool
207
     */
208
    public function isPilotClassA(): bool
209
    {
210
        return $this->isPilotClassA;
211
    }
212
213
    /**
214
     * @return bool
215
     */
216
    public function getIsPilotClassA(): bool
217
    {
218
        return $this->isPilotClassA;
219
    }
220
221
    /**
222
     * @param bool $isPilotClassA
223
     * @return CreateUpdatePilotInformationCommand
224
     */
225
    public function setIsPilotClassA(bool $isPilotClassA): CreateUpdatePilotInformationCommand
226
    {
227
        $this->isPilotClassA = $isPilotClassA;
228
        return $this;
229
    }
230
231
    /**
232
     * @return bool
233
     */
234
    public function isPilotClassB(): bool
235
    {
236
        return $this->isPilotClassB;
237
    }
238
239
    /**
240
     * @return bool
241
     */
242
    public function getIsPilotClassB(): bool
243
    {
244
        return $this->isPilotClassB;
245
    }
246
247
    /**
248
     * @param bool $isPilotClassB
249
     * @return CreateUpdatePilotInformationCommand
250
     */
251
    public function setIsPilotClassB(bool $isPilotClassB): CreateUpdatePilotInformationCommand
252
    {
253
        $this->isPilotClassB = $isPilotClassB;
254
        return $this;
255
    }
256
257
    /**
258
     * @return bool
259
     */
260
    public function isPilotClassC(): bool
261
    {
262
        return $this->isPilotClassC;
263
    }
264
265
    /**
266
     * @return bool
267
     */
268
    public function getIsPilotClassC(): bool
269
    {
270
        return $this->isPilotClassC;
271
    }
272
273
    /**
274
     * @param bool $isPilotClassC
275
     * @return CreateUpdatePilotInformationCommand
276
     */
277
    public function setIsPilotClassC(bool $isPilotClassC): CreateUpdatePilotInformationCommand
278
    {
279
        $this->isPilotClassC = $isPilotClassC;
280
        return $this;
281
    }
282
283
    /**
284
     * @return bool
285
     */
286
    public function isPilotClassD(): bool
287
    {
288
        return $this->isPilotClassD;
289
    }
290
291
292
    /**
293
     * @return bool
294
     */
295
    public function getIsPilotClassD(): bool
296
    {
297
        return $this->isPilotClassD;
298
    }
299
300
    /**
301
     * @param bool $isPilotClassD
302
     * @return CreateUpdatePilotInformationCommand
303
     */
304
    public function setIsPilotClassD(bool $isPilotClassD): CreateUpdatePilotInformationCommand
305
    {
306
        $this->isPilotClassD = $isPilotClassD;
307
        return $this;
308
    }
309
310
    /**
311
     * @return bool
312
     */
313
    public function isPilotGaz(): bool
314
    {
315
        return $this->isPilotGaz;
316
    }
317
318
    /**
319
     * @return bool
320
     */
321
    public function getIsPilotGaz(): bool
322
    {
323
        return $this->isPilotGaz;
324
    }
325
326
    /**
327
     * @param bool $isPilotGaz
328
     * @return CreateUpdatePilotInformationCommand
329
     */
330
    public function setIsPilotGaz(bool $isPilotGaz): CreateUpdatePilotInformationCommand
331
    {
332
        $this->isPilotGaz = $isPilotGaz;
333
        return $this;
334
    }
335
336
    /**
337
     * @return bool
338
     */
339
    public function getIsMedicalOwner(): bool
340
    {
341
        return $this->isMedicalOwner;
342
    }
343
344
    /**
345
     * @param bool $isMedicalOwner
346
     * @return CreateUpdatePilotInformationCommand
347
     */
348
    public function setIsMedicalOwner(bool $isMedicalOwner): CreateUpdatePilotInformationCommand
349
    {
350
        $this->isMedicalOwner = $isMedicalOwner;
351
        return $this;
352
    }
353
354
    /**
355
     * @return string
356
     */
357
    public function getEndMedicalDate(): string
358
    {
359
        return $this->endMedicalDate;
360
    }
361
362
    /**
363
     * @param string $endMedicalDate
364
     * @return CreateUpdatePilotInformationCommand
365
     */
366
    public function setEndMedicalDate(string $endMedicalDate): CreateUpdatePilotInformationCommand
367
    {
368
        $this->endMedicalDate = $endMedicalDate;
369
        return $this;
370
    }
371
372
    /**
373
     * @return string
374
     */
375
    public function getStartMedicalDate(): string
376
    {
377
        return $this->startMedicalDate;
378
    }
379
380
    /**
381
     * @param string $startMedicalDate
382
     * @return CreateUpdatePilotInformationCommand
383
     */
384
    public function setStartMedicalDate(string $startMedicalDate): CreateUpdatePilotInformationCommand
385
    {
386
        $this->startMedicalDate = $startMedicalDate;
387
        return $this;
388
    }
389
390
    /**
391
     * @return bool
392
     */
393
    public function getIsHasQualifStatic(): bool
394
    {
395
        return $this->hasQualifStatic;
396
    }
397
398
    /**
399
     * @return bool
400
     */
401
    public function getHasQualifStatic(): bool
402
    {
403
        return $this->hasQualifStatic;
404
    }
405
406
    /**
407
     * @param bool $hasQualifStatic
408
     * @return CreateUpdatePilotInformationCommand
409
     */
410
    public function setHasQualifStatic(bool $hasQualifStatic): CreateUpdatePilotInformationCommand
411
    {
412
        $this->hasQualifStatic = $hasQualifStatic;
413
        return $this;
414
    }
415
416
    /**
417
     * @return bool
418
     */
419
    public function getIsHasQualifNight(): bool
420
    {
421
        return $this->hasQualifNight;
422
    }
423
424
    /**
425
     * @return bool
426
     */
427
    public function getHasQualifNight(): bool
428
    {
429
        return $this->hasQualifNight;
430
    }
431
432
    /**
433
     * @param bool $hasQualifNight
434
     * @return CreateUpdatePilotInformationCommand
435
     */
436
    public function setHasQualifNight(bool $hasQualifNight): CreateUpdatePilotInformationCommand
437
    {
438
        $this->hasQualifNight = $hasQualifNight;
439
        return $this;
440
    }
441
442
    /**
443
     * @return bool
444
     */
445
    public function getIsHasQualifPro(): bool
446
    {
447
        return $this->hasQualifPro;
448
    }
449
450
    /**
451
     * @return bool
452
     */
453
    public function getHasQualifPro(): bool
454
    {
455
        return $this->hasQualifPro;
456
    }
457
458
    /**
459
     * @param bool $hasQualifPro
460
     * @return CreateUpdatePilotInformationCommand
461
     */
462
    public function setHasQualifPro(bool $hasQualifPro): CreateUpdatePilotInformationCommand
463
    {
464
        $this->hasQualifPro = $hasQualifPro;
465
        return $this;
466
    }
467
468
    /**
469
     * @return string
470
     */
471
    public function getLastOpcDate(): string
472
    {
473
        return $this->lastOpcDate;
474
    }
475
476
    /**
477
     * @param string $lastOpcDate
478
     * @return CreateUpdatePilotInformationCommand
479
     */
480
    public function setLastOpcDate(string $lastOpcDate): CreateUpdatePilotInformationCommand
481
    {
482
        $this->lastOpcDate = $lastOpcDate;
483
        return $this;
484
    }
485
486
    /**
487
     * @return string
488
     */
489
    public function getLastProRefreshDate(): string
490
    {
491
        return $this->lastProRefreshDate;
492
    }
493
494
    /**
495
     * @param string $lastProRefreshDate
496
     * @return CreateUpdatePilotInformationCommand
497
     */
498
    public function setLastProRefreshDate(string $lastProRefreshDate): CreateUpdatePilotInformationCommand
499
    {
500
        $this->lastProRefreshDate = $lastProRefreshDate;
501
        return $this;
502
    }
503
504
    /**
505
     * @return bool
506
     */
507
    public function getIsHasQualifInstructor(): bool
508
    {
509
        return $this->hasQualifInstructor;
510
    }
511
512
    /**
513
     * @return bool
514
     */
515
    public function getHasQualifInstructor(): bool
516
    {
517
        return $this->hasQualifInstructor;
518
    }
519
520
    /**
521
     * @param bool $hasQualifInstructor
522
     * @return CreateUpdatePilotInformationCommand
523
     */
524
    public function setHasQualifInstructor(bool $hasQualifInstructor): CreateUpdatePilotInformationCommand
525
    {
526
        $this->hasQualifInstructor = $hasQualifInstructor;
527
        return $this;
528
    }
529
530
    /**
531
     * @return string
532
     */
533
    public function getLastInstructorRefreshDate(): string
534
    {
535
        return $this->lastInstructorRefreshDate;
536
    }
537
538
    /**
539
     * @param string $lastInstructorRefreshDate
540
     * @return CreateUpdatePilotInformationCommand
541
     */
542
    public function setLastInstructorRefreshDate(string $lastInstructorRefreshDate): CreateUpdatePilotInformationCommand
543
    {
544
        $this->lastInstructorRefreshDate = $lastInstructorRefreshDate;
545
        return $this;
546
    }
547
548
    /**
549
     * @return bool
550
     */
551
    public function getIsHasQualifExaminator(): bool
552
    {
553
        return $this->hasQualifExaminator;
554
    }
555
556
    /**
557
     * @return bool
558
     */
559
    public function getHasQualifExaminator(): bool
560
    {
561
        return $this->hasQualifExaminator;
562
    }
563
564
    /**
565
     * @param bool $hasQualifExaminator
566
     * @return CreateUpdatePilotInformationCommand
567
     */
568
    public function setHasQualifExaminator(bool $hasQualifExaminator): CreateUpdatePilotInformationCommand
569
    {
570
        $this->hasQualifExaminator = $hasQualifExaminator;
571
        return $this;
572
    }
573
574
    /**
575
     * @return string
576
     */
577
    public function getLastExaminatorRefreshDate(): string
578
    {
579
        return $this->lastExaminatorRefreshDate;
580
    }
581
582
    /**
583
     * @param string $lastExaminatorRefreshDate
584
     * @return CreateUpdatePilotInformationCommand
585
     */
586
    public function setLastExaminatorRefreshDate(string $lastExaminatorRefreshDate): CreateUpdatePilotInformationCommand
587
    {
588
        $this->lastExaminatorRefreshDate = $lastExaminatorRefreshDate;
589
        return $this;
590
    }
591
592
    /**
593
     * @return bool
594
     */
595
    public function getIsHasRadio(): bool
596
    {
597
        return $this->hasRadio;
598
    }
599
600
    /**
601
     * @return bool
602
     */
603
    public function getHasRadio(): bool
604
    {
605
        return $this->hasRadio;
606
    }
607
608
    /**
609
     * @param bool $hasRadio
610
     * @return CreateUpdatePilotInformationCommand
611
     */
612
    public function setHasRadio(bool $hasRadio): CreateUpdatePilotInformationCommand
613
    {
614
        $this->hasRadio = $hasRadio;
615
        return $this;
616
    }
617
618
    /**
619
     * @return string
620
     */
621
    public function getRadioLicenceNumber(): string
622
    {
623
        return $this->radioLicenceNumber;
624
    }
625
626
    /**
627
     * @param string $radioLicenceNumber
628
     * @return CreateUpdatePilotInformationCommand
629
     */
630
    public function setRadioLicenceNumber(string $radioLicenceNumber): CreateUpdatePilotInformationCommand
631
    {
632
        $this->radioLicenceNumber = $radioLicenceNumber;
633
        return $this;
634
    }
635
636
    /**
637
     * @return string
638
     */
639
    public function getRadioLicenceDate(): string
640
    {
641
        return $this->radioLicenceDate;
642
    }
643
644
    /**
645
     * @param string $radioLicenceDate
646
     * @return CreateUpdatePilotInformationCommand
647
     */
648
    public function setRadioLicenceDate(string $radioLicenceDate): CreateUpdatePilotInformationCommand
649
    {
650
        $this->radioLicenceDate = $radioLicenceDate;
651
        return $this;
652
    }
653
654
    /**
655
     * @return bool
656
     */
657
    public function getIsHasTrainingFirstHelp(): bool
658
    {
659
        return $this->hasTrainingFirstHelp;
660
    }
661
662
    /**
663
     * @return bool
664
     */
665
    public function getHasTrainingFirstHelp(): bool
666
    {
667
        return $this->hasTrainingFirstHelp;
668
    }
669
670
    /**
671
     * @param bool $hasTrainingFirstHelp
672
     * @return CreateUpdatePilotInformationCommand
673
     */
674
    public function setHasTrainingFirstHelp(bool $hasTrainingFirstHelp): CreateUpdatePilotInformationCommand
675
    {
676
        $this->hasTrainingFirstHelp = $hasTrainingFirstHelp;
677
        return $this;
678
    }
679
680
    /**
681
     * @return string
682
     */
683
    public function getLastTrainingFirstHelpDate(): string
684
    {
685
        return $this->lastTrainingFirstHelpDate;
686
    }
687
688
    /**
689
     * @param string $lastTrainingFirstHelpDate
690
     * @return CreateUpdatePilotInformationCommand
691
     */
692
    public function setLastTrainingFirstHelpDate(string $lastTrainingFirstHelpDate): CreateUpdatePilotInformationCommand
693
    {
694
        $this->lastTrainingFirstHelpDate = $lastTrainingFirstHelpDate;
695
        return $this;
696
    }
697
698
    /**
699
     * @return string
700
     */
701
    public function getCertificationNumberTrainingFirstHelp(): string
702
    {
703
        return $this->certificationNumberTrainingFirstHelp;
704
    }
705
706
    /**
707
     * @param string $certificationNumberTrainingFirstHelp
708
     * @return CreateUpdatePilotInformationCommand
709
     */
710
    public function setCertificationNumberTrainingFirstHelp(string $certificationNumberTrainingFirstHelp
711
    ): CreateUpdatePilotInformationCommand {
712
        $this->certificationNumberTrainingFirstHelp = $certificationNumberTrainingFirstHelp;
713
        return $this;
714
    }
715
716
    /**
717
     * @return bool
718
     */
719
    public function getIsHasTrainingFire(): bool
720
    {
721
        return $this->hasTrainingFire;
722
    }
723
724
    /**
725
     * @return bool
726
     */
727
    public function getHasTrainingFire(): bool
728
    {
729
        return $this->hasTrainingFire;
730
    }
731
732
    /**
733
     * @param bool $hasTrainingFire
734
     * @return CreateUpdatePilotInformationCommand
735
     */
736
    public function setHasTrainingFire(bool $hasTrainingFire): CreateUpdatePilotInformationCommand
737
    {
738
        $this->hasTrainingFire = $hasTrainingFire;
739
        return $this;
740
    }
741
742
    /**
743
     * @return string
744
     */
745
    public function getLastTrainingFireDate(): string
746
    {
747
        return $this->lastTrainingFireDate;
748
    }
749
750
    /**
751
     * @param string $lastTrainingFireDate
752
     * @return CreateUpdatePilotInformationCommand
753
     */
754
    public function setLastTrainingFireDate(string $lastTrainingFireDate): CreateUpdatePilotInformationCommand
755
    {
756
        $this->lastTrainingFireDate = $lastTrainingFireDate;
757
        return $this;
758
    }
759
760
    /**
761
     * @return string
762
     */
763
    public function getCertificationNumberTrainingFire(): string
764
    {
765
        return $this->certificationNumberTrainingFire;
766
    }
767
768
    /**
769
     * @param string $certificationNumberTrainingFire
770
     * @return CreateUpdatePilotInformationCommand
771
     */
772
    public function setCertificationNumberTrainingFire(string $certificationNumberTrainingFire
773
    ): CreateUpdatePilotInformationCommand {
774
        $this->certificationNumberTrainingFire = $certificationNumberTrainingFire;
775
        return $this;
776
    }
777
778
    public function fromPilot(Pilot $pilot)
779
    {
780
        $state = $pilot->state();
781
782
        if (null !== $state['pilot_licence_number']) {
783
            $this->pilotLicenceNumber = $state['pilot_licence_number'];
784
        }
785
        if (null !== $state['training_pilot_licence_number']) {
786
            $this->trainingPilotLicenceNumber = $state['training_pilot_licence_number'];
787
        }
788
        if (null !== $state['last_training_flight_date']) {
789
            $this->lastTrainingFlightDate = $state['last_training_flight_date'];
790
        }
791
        if (null !== $state['is_pilot_class_a']) {
792
            $this->isPilotClassA = $state['is_pilot_class_a'];
793
        }
794
        if (null !== $state['is_pilot_class_b']) {
795
            $this->isPilotClassB = $state['is_pilot_class_b'];
796
        }
797
        if (null !== $state['is_pilot_class_c']) {
798
            $this->isPilotClassC = $state['is_pilot_class_c'];
799
        }
800
        if (null !== $state['is_pilot_class_d']) {
801
            $this->isPilotClassD = $state['is_pilot_class_d'];
802
        }
803
        if (null !== $state['is_pilot_gaz']) {
804
            $this->isPilotGaz = $state['is_pilot_gaz'];
805
        }
806
        if (null !== $state['is_medical_owner']) {
807
            $this->isMedicalOwner = $state['is_medical_owner'];
808
        }
809
        if (null !== $state['end_medical_date']) {
810
            $this->endMedicalDate = $state['end_medical_date'];
811
        }
812
        if (null !== $state['start_medical_date']) {
813
            $this->startMedicalDate = $state['start_medical_date'];
814
        }
815
        if (null !== $state['has_qualif_static']) {
816
            $this->hasQualifStatic = $state['has_qualif_static'];
817
        }
818
        if (null !== $state['has_qualif_night']) {
819
            $this->hasQualifNight = $state['has_qualif_night'];
820
        }
821
        if (null !== $state['has_qualif_pro']) {
822
            $this->hasQualifPro = $state['has_qualif_pro'];
823
        }
824
        if (null !== $state['last_opc_date']) {
825
            $this->lastOpcDate = $state['last_opc_date'];
826
        }
827
        if (null !== $state['last_pro_refresh_date']) {
828
            $this->lastProRefreshDate = $state['last_pro_refresh_date'];
829
        }
830
        if (null !== $state['has_qualif_instructor']) {
831
            $this->hasQualifInstructor = $state['has_qualif_instructor'];
832
        }
833
        if (null !== $state['last_instructor_refresh_date']) {
834
            $this->lastInstructorRefreshDate = $state['last_instructor_refresh_date'];
835
        }
836
        if (null !== $state['has_qualif_examinator']) {
837
            $this->hasQualifExaminator = $state['has_qualif_examinator'];
838
        }
839
        if (null !== $state['last_examinator_refresh_date']) {
840
            $this->lastExaminatorRefreshDate = $state['last_examinator_refresh_date'];
841
        }
842
        if (null !== $state['has_radio']) {
843
            $this->hasRadio = $state['has_radio'];
844
        }
845
        if (null !== $state['radio_licence_number']) {
846
            $this->radioLicenceNumber = $state['radio_licence_number'];
847
        }
848
        if (null !== $state['radio_licence_date']) {
849
            $this->radioLicenceDate = $state['radio_licence_date'];
850
        }
851
        if (null !== $state['has_training_first_help']) {
852
            $this->hasTrainingFirstHelp = $state['has_training_first_help'];
853
        }
854
        if (null !== $state['last_training_first_help_date']) {
855
            $this->lastTrainingFirstHelpDate = $state['last_training_first_help_date'];
856
        }
857
        if (null !== $state['certification_number_training_first_help']) {
858
            $this->certificationNumberTrainingFirstHelp = $state['certification_number_training_first_help'];
859
        }
860
        if (null !== $state['has_training_fire']) {
861
            $this->hasTrainingFire = $state['has_training_fire'];
862
        }
863
        if (null !== $state['last_training_fire_date']) {
864
            $this->lastTrainingFireDate = $state['last_training_fire_date'];
865
        }
866
        if (null !== $state['certification_number_training_fire']) {
867
            $this->certificationNumberTrainingFire = $state['certification_number_training_fire'];
868
        }
869
    }
870
871
872
}