Completed
Push — master ( 6ff209...20c17c )
by Dieter
06:34
created

CustomerReferences::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 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\Fare\MasterPricer;
24
25
/**
26
 * CustomerReferences
27
 *
28
 * @package Amadeus\Client\Struct\Fare\MasterPricer
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class CustomerReferences extends \Amadeus\Client\Struct\Air\MultiAvailability\CustomerReferences
32
{
33
    const QUAL_UNIQUE_PAX_REF = 1;
34
    const QUAL_PAX_SEQUENCE_NUMBER = 2;
35
    const QUAL_PAX_STANDBY_NUMBER = 3;
36
    const QUAL_PAX_BOARDING_SECURITY_NUMBER = 4;
37
    const QUAL_PAX_TICKET_NUMBER = 5;
38
    const QUAL_PAX_CONFIRMATION_NUMBER = 6;
39
    const QUAL_DATE_OF_BIRTH = 7;
40
    const QUAL_EXCEPTIONAL_PNR_SECURITY_ID = 700;
41
    const QUAL_AGENCY_GROUPING_ID = 701;
42
    const QUAL_TICKETING_DATA = 702;
43
    const QUAL_MESSAGE_NUMBER_FOR_FREE_TEXT = 703;
44
    const QUAL_ACCOUNT_PRODUCT_REF = "A";
45
    const QUAL_BUSINESS = "B";
46
    const QUAL_FAX = "F";
47
    const QUAL_HOME = "H";
48
    const QUAL_PAX_TRAVELLER_REF = "P";
49
    const QUAL_SEGMENT_SERVICE_REF = "S";
50
    const QUAL_TELETYPE_ADDRESS = "T";
51
    const QUAL_NOT_KNOWN = "XX";
52
53
    /**
54
     * @var string
55
     */
56
    public $referencePartyName;
57
58
    /**
59
     * @var string
60
     */
61
    public $travellerReferenceNbr;
62
63
    /**
64
     * CustomerReferences constructor.
65
     *
66
     * @param string $reference Customer Reference
67
     * @param int|string $qualifier Type of reference (self::QUAL_*)
68
     */
69 1
    public function __construct($reference, $qualifier)
70
    {
71 1
        $this->referenceQualifier = $qualifier;
72
73 1
        parent::__construct($reference);
74 1
    }
75
}
76