Passed
Pull Request — master (#481)
by Artem
03:53
created

TravellerNameInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 149
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 12
c 1
b 0
f 0
dl 0
loc 149
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * amadeus-ws-client
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 * http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 *
19
 * @package Amadeus
20
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
21
 */
22
23
namespace Amadeus\Client\Struct\Pnr\NameChange;
24
25
/**
26
 * TravellerNameInfo
27
 *
28
 * @package Amadeus\Client\Struct\Pnr\NameChange
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class TravellerNameInfo
32
{
33
    /**
34
     * @var string|string
35
     */
36
    public $quantity;
37
38
    /**
39
     * Possible values:
40
     *
41
     * ADT  Adult
42
     * AGT  Agent
43
     * ASB  Adult Standby
44
     * ASF  Air-Sea Fare
45
     * BAG  Excess Baggage
46
     * BLD  Blind passenger
47
     * BRV  Bereavement
48
     * BUD  Airline Buddy Standby Fare
49
     * C00  Accompanied Child
50
     * CHD  Child
51
     * CLG  Clergy
52
     * CMA  Adult with companion
53
     * CMM  Commuter
54
     * CMP  Companion
55
     * CMX  ANN-CMP-CMA-Blended
56
     * CNV  Convention
57
     * CPN  coupon discount PSGR
58
     * CTZ  Category Z PSGR
59
     * DOD  DEPT of Defense PSGR
60
     * E    EXST - Extra Seat
61
     * E00  Group Inclusive tour Child
62
     * EMI  Emigrant
63
     * F00  Family Plan Child
64
     * FFY  Frequent Flyer
65
     * G00  Group Child
66
     * GCF  Government Contract.
67
     * GCT  City/Council Government PSGR
68
     * GDP  City/Council Government PSGR
69
     * GEX  Government Exchange PSGR
70
     * GIT  Group Inclusive Tour PSGR
71
     * GRP  Group Passenger
72
     * GSP  GROUP SCHOOL PARTY
73
     * GST  State Government
74
     * GVT  Government Travel
75
     * H00  Children Charter
76
     * HOF  Head of Family
77
     * I00  Individual Inclusive Tour Child
78
     * ICP  Incentive Certificates
79
     * IIT  Individual Inclusive Tour PSGR
80
     * INF  Infant not Occupying a Seat
81
     * INS  Infant Occupying a Seat
82
     * INY  INFANT ACCOMPANIED BY YOUTH
83
     * LBR  Laborer / Worker
84
     * M00  Military Child
85
     * MBT  Military - basic Training Graduate
86
     * MCR  Military Charter
87
     * MDP  Spouse and Dependent Children of Military Personnel
88
     * MED  Patients Travel for Medical treatment
89
     * MIL  Military Confirmed passenger
90
     * MIR  Military Reserve on Active Duty
91
     * MIS  Missionary.
92
     * MPA  Military parents/Parents in Law
93
     * MRE  Retired military and Dependent
94
     * MSB  Military Standby
95
     * MSG  Multi State Government
96
     * MUS  Military DOD based in Usa
97
     * MXS  Military DOD not based in USA
98
     * NAT  NATO
99
     * NSB  Non Revenue Standby
100
     * OTS  PSGR occupying two Seats
101
     * P00  Children Charter
102
     * PCR  Adult Charter
103
     * PIL  (no description)
104
     * REC  Military Recruit
105
     * REF  Refugee
106
     * S00  Senior Citizen
107
     * SEA  Seaman
108
     * SPA  SPOUSE - ACCOMPANIED
109
     * SPH  SPOUSE - HEAD OF FAMILY
110
     * SPS  Spouse
111
     * STR  State Resident
112
     * STU  Student
113
     * T00  Frequent Flyer Child
114
     * TUR  Tour Conductor
115
     * U00  Unaccompanied Child
116
     * UNV  University Employee
117
     * V00  Visit Another Country Child
118
     * VAC  Visit Another Country Adult
119
     * VFR  Visit friends Relatives
120
     * WEB  (no description)
121
     * Y00  Government Travel Child
122
     * YCB  Senior Citizen Standby
123
     * YCD  Senior Citizen
124
     * YCL  Clergy
125
     * YCR  Youth Charter
126
     * YSB  Youth Standby
127
     * YTH  Youth Confirmed
128
     * Z00  Group Visit Another Country,Child
129
     *
130
     * @var string
131
     */
132
    public $type;
133
134
    /**
135
     *
136
     * BKB  Bookable Staff Travel
137
     * SBY  Standby Staff Travel
138
     *
139
     * @var string
140
     */
141
    public $otherType;
142
143
    /**
144
     * @var int
145
     */
146
    public $uniqueCustomerIdentifier;
147
148
    /**
149
     * 1  Infant no surname and no given name
150
     * 2  Infant with given name only
151
     * 3  Infant with surname and given name
152
     *
153
     * @var string|int
154
     */
155
    public $infantIndicator;
156
157
    /**
158
     * @var string
159
     */
160
    public $travellerIdentificationCode;
161
162
    /**
163
     * @var int
164
     */
165
    public $age;
166
167
    /**
168
     * TravellerNameInfo constructor.
169
     *
170
     * @param int $identifier
171
     * @param string|null $type
172
     * @param string|int|null $infantIndicator
173
     */
174 35
    public function __construct($identifier, $type = null, $infantIndicator = null)
175
    {
176 35
        $this->quantity = 1;
177 35
        $this->uniqueCustomerIdentifier = $identifier;
178 35
        $this->type = $type;
179 35
        $this->infantIndicator = $infantIndicator;
180 35
    }
181
}
182