| Total Complexity | 1 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class FlightIdentification |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * IATA code for the airline |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $airlineCode; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Flight number |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $number; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Flight suffix |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | public $suffix; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * FlightIdentification constructor. |
||
| 41 | * |
||
| 42 | * @param string $airline Airline code |
||
| 43 | * @param string|null $flightNumber |
||
| 44 | */ |
||
| 45 | 25 | public function __construct($airline, $flightNumber = null) |
|
| 51 |