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

Travelleridentification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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
 * Travelleridentification
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class Travelleridentification
17
{
18
    /**
19
     * @var FrequentTravellerDetails
20
     */
21
    public $frequentTravellerDetails;
22
23
    /**
24
     * @var FrequentTravellerDetails[]
25
     */
26
    public $otherFrequentTravellerDetails = [];
27
28
    /**
29
     * Travelleridentification constructor.
30
     *
31
     * @param string $carrier
32
     * @param string $number
33
     * @param string|null $refType
34
     */
35
    public function __construct($carrier, $number, $refType = null)
36
    {
37
        $this->frequentTravellerDetails = new FrequentTravellerDetails(
38
            $carrier,
39
            $number,
40
            $refType
41
        );
42
    }
43
}
44