StatusDetails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
eloc 18
c 2
b 1
f 0
dl 0
loc 73
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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\DocIssuance;
24
25
/**
26
 * StatusDetails
27
 *
28
 * @package Amadeus\Client\Struct\DocIssuance
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class StatusDetails
32
{
33
    const OPTION_ETICKET = "ET";
34
    const OPTION_RETRIEVE_PNR = "RT";
35
    const OPTION_ITINERARY_RECEIPT = "ITR";
36
    const OPTION_PRE_ISSUE_VALIDATION = "TKT";
37
    const OPTION_PRINT_ITIN = "IBP";
38
    const OPTION_PRINT_JOINT_ITIN = "IBJ";
39
    const OPTION_PRINT_EXTENDED_ITIN = "IEP";
40
    const OPTION_PRINT_EXTENDED_JOINT_ITIN = "IEJ";
41
    const OPTION_TICKET_ONLY = "TKA";
42
43
    const OPTION_EMD_ISSUANCE = "ED";
44
    const OPTION_BASIC_INVOICE = "INV";
45
    const OPTION_BASIC_JOINT_INVOICE_ALL_PAX = "IVJ";
46
    const OPTION_EXTENDED_INVOICE = "INE";
47
    const OPTION_EXTENDED_INVOICE_ALL_PAX = "INJ";
48
49
    const OPTION_DOCUMENT_RECEIPT = "TRP";
50
51
    /**
52
     * CCC Concealed Credit Card
53
     * CCO Credit Card Override
54
     * ET Electronic Override
55
     * ETR ET Revalidation
56
     * EXC Exchange ticketing
57
     * GRP Group Identifier
58
     * HT Hotel Terms
59
     * IBJ Print Basic Joint Itinerary
60
     * IBP Print Basic Itinerary
61
     * ICP Inhibit Credit Card Charge Form Coupon Print
62
     * IEJ Print Extended Joint Itinerary
63
     * IEP Print Extended Itinerary
64
     * IMP Mini-Itinerary generation
65
     * INE Individual Extended Invoice for each passenger
66
     * INF Infant select
67
     * INJ Print a single Extended Invoice for all passengers
68
     * INV Print individual basic Invoice for each passenger
69
     * IPE PNR Invoice
70
     * IPG GAC Invoice
71
     * IRI Involuntary Rerouting Indicator
72
     * ISH Inhibit shift
73
     * ITR Itinerary Receipt
74
     * IVJ Print a single basic invoice for all passengers
75
     * IWP Itinerary Wallet print generation
76
     * NCC NO CREDIT
77
     * OET Force electronic
78
     * ONC Override Name Check
79
     * OPT Force Paper
80
     * OVR Revalidation Override
81
     * PCC Present Credit Card
82
     * POD Payment On Demand
83
     * PT Paper override
84
     * RT Retrieve PNR
85
     * TKA Ticket Only
86
     * TKP Electronic ticketing via TCH
87
     * TKT Pre-issue validation
88
     * TMD Template display
89
     * TMO Template Override
90
     * ZAA Send Accounting AIR
91
     *
92
     * @var string
93
     */
94
    public $indicator;
95
96
    /**
97
     * StatusDetails constructor.
98
     *
99
     * @param string $option
100
     */
101 45
    public function __construct($option)
102
    {
103 45
        $this->indicator = $option;
104 45
    }
105
}
106