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

TravellerDetails::__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
 * TravellerDetails
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class TravellerDetails
17
{
18
    /**
19
     * @var PaxDetails
20
     */
21
    public $paxDetails;
22
23
    /**
24
     * @var OtherPaxDetails[]
25
     */
26
    public $otherPaxDetails = [];
27
28
    /**
29
     * TravellerDetails constructor.
30
     *
31
     * @param string $lastName
32
     * @param string $firstName
33
     */
34
    public function __construct($lastName, $firstName)
35
    {
36
        $this->paxDetails = new PaxDetails($lastName);
37
        $this->otherPaxDetails[] = new OtherPaxDetails($firstName);
38
    }
39
}
40