Completed
Push — develop ( a8951f...6805ee )
by Dieter
05:48
created

FlightIdentification::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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 $flightNumber
0 ignored issues
show
Documentation introduced by
Should the type for parameter $flightNumber not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
44
     */
45
    public function __construct($airline, $flightNumber = null)
46
    {
47
        $this->airlineCode = $airline;
48
        $this->number = $flightNumber;
49
    }
50
}
51