BookingClassDetails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 1
f 0
dl 0
loc 63
ccs 3
cts 3
cp 1
rs 10

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\Fare\InformativePricing13;
24
25
/**
26
 * BookingClassDetails
27
 *
28
 * @package Amadeus\Client\Struct\Fare\InformativePricing13
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class BookingClassDetails
32
{
33
    /**
34
     * 1 Request all non-displayable RBD's
35
     * 2 Request all RBD's including non-displayable RBD's.
36
     * 3 Request all Frequent Flyer Program Award Classes
37
     * 4 Total number of seats in the allotment
38
     * 5 Number of seats sold in the allotment
39
     * 6 Number of seats unsold in the allotment
40
     * 700 Request is expanded to include nonmatching connections
41
     *
42
     * @var string
43
     */
44
    public $designator;
45
46
    /**
47
     * 70A Suppress from display
48
     * 70B Class cancelled
49
     * 70C Class closed on limit sales level
50
     * A Quota sell limit as agreed
51
     * AVL Available
52
     * C Closed
53
     * L Waitlist only
54
     * N Near to sell
55
     * R Request only
56
     * X Closed to arrival
57
     * Z All status
58
     *
59
     * @var string|int
60
     */
61
    public $availabilityStatus;
62
63
    /**
64
     * A Luxury or premium meal
65
     * B Breakfast
66
     * BR Brunch
67
     * C Alcoholic beverages - complimentary
68
     * D Dinner
69
     * E Entertainment
70
     * F Food for purchase
71
     * G Lite lunch
72
     * K Cold buffet
73
     * L Lunch
74
     * M Meal (to be used as a generalization)
75
     * P Alcoholic beverages for purchase
76
     * R Refreshment
77
     * S Snack or light meal
78
     * V Continental breakfast
79
     *
80
     * @var string
81
     */
82
    public $specialService;
83
84
    /**
85
     * BookingClassDetails constructor.
86
     *
87
     * @param string $bookingClass
88
     * @param string|int $availabilityAmount
89
     */
90 5
    public function __construct($bookingClass, $availabilityAmount)
91
    {
92 5
        $this->designator = $bookingClass;
93 5
        $this->availabilityStatus = $availabilityAmount;
94 5
    }
95
}
96