FlightIdentification   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 33
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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