Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function addMission( |
||
38 | $quarter, |
||
39 | $pilotId, |
||
40 | $pilotFirstname, |
||
41 | $pilotLastname, |
||
42 | $numberOfFlights, |
||
43 | $numberOfKilometers |
||
44 | ) { |
||
45 | Assert::integerish($pilotId); |
||
46 | $pilotId = (int) $pilotId; |
||
47 | |||
48 | if (!isset($this->items[$pilotId])) { |
||
49 | $this->items[$pilotId] = new PilotMissions($pilotId, $pilotFirstname, $pilotLastname); |
||
50 | } |
||
51 | |||
52 | $this->items[$pilotId]->addQuarter($quarter, $numberOfFlights, $numberOfKilometers); |
||
53 | } |
||
54 | |||
71 | } |