Passed
Push — master ( 4f4e52...cfbd52 )
by Dieter
07:23
created

PricingOption   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 77
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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\Ticket\RepricePnrWithBookingClass;
24
25
use Amadeus\Client\Struct\Fare\PricePnr13\CarrierInformation;
26
use Amadeus\Client\Struct\Fare\PricePnr13\Currency;
27
use Amadeus\Client\Struct\Fare\PricePnr13\DateInformation;
28
use Amadeus\Client\Struct\Fare\PricePnr13\FormOfPaymentInformation;
29
use Amadeus\Client\Struct\Fare\PricePnr13\FrequentFlyerInformation;
30
use Amadeus\Client\Struct\Fare\PricePnr13\LocationInformation;
31
use Amadeus\Client\Struct\Fare\PricePnr13\MonetaryInformation;
32
use Amadeus\Client\Struct\Fare\PricePnr13\OptionDetail;
33
use Amadeus\Client\Struct\Fare\PricePnr13\PaxSegTstReference;
34
use Amadeus\Client\Struct\Fare\PricePnr13\PenDisInformation;
35
use Amadeus\Client\Struct\Fare\PricePnr13\TaxInformation;
36
37
/**
38
 * PricingOption
39
 *
40
 * @package Amadeus\Client\Struct\Ticket\RepricePnrWithBookingClass
41
 * @author Dieter Devlieghere <[email protected]>
42
 */
43
class PricingOption
44
{
45
    /**
46
     * @var PricingOptionKey
47
     */
48
    public $pricingOptionKey;
49
50
    /**
51
     * @var OptionDetail
52
     */
53
    public $optionDetail;
54
55
    /**
56
     * @var CarrierInformation
57
     */
58
    public $carrierInformation;
59
60
    /**
61
     * @var Currency
62
     */
63
    public $currency;
64
65
    /**
66
     * @var PenDisInformation
67
     */
68
    public $penDisInformation;
69
70
    /**
71
     * @var MonetaryInformation
72
     */
73
    public $monetaryInformation;
74
75
    /**
76
     * @var TaxInformation[]
77
     */
78
    public $taxInformation = [];
79
80
    /**
81
     * @var DateInformation[]
82
     */
83
    public $dateInformation = [];
84
85
    /**
86
     * @var FrequentFlyerInformation
87
     */
88
    public $frequentFlyerInformation;
89
90
    /**
91
     * @var FormOfPaymentInformation
92
     */
93
    public $formOfPaymentInformation;
94
95
    /**
96
     * @var LocationInformation
97
     */
98
    public $locationInformation;
99
100
    /**
101
     * @var CouponInformation
102
     */
103
    public $couponInformation;
104
105
    /**
106
     * @var PaxSegTstReference
107
     */
108
    public $paxSegTstReference;
109
110
    /**
111
     * PricingOption constructor.
112
     *
113
     * @param string $key
114
     */
115 19
    public function __construct($key)
116
    {
117 19
        $this->pricingOptionKey = new PricingOptionKey($key);
118 19
    }
119
}
120