Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | private function checkPassengerType(string $checkPassengerType) : void |
||
34 | { |
||
35 | if (!\in_array($checkPassengerType, self::$passengerTypeEnum, true)) { |
||
36 | throw new InvalidArgumentException( |
||
37 | 'Invalid PassengerTypeQuantity.Code value provided. Must be one of these: ' . |
||
38 | implode(', ', self::$passengerTypeEnum) |
||
39 | ); |
||
48 |