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

FlightIdentification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

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