FlightIdentification::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * Amadeus
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 */
7
8
namespace Amadeus\Client\Struct\Air\MultiAvailability;
9
10
/**
11
 * FlightIdentification
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
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)
46
    {
47 25
        $this->airlineCode = $airline;
48 25
        $this->number = $flightNumber;
49 25
    }
50
}
51