Completed
Push — develop ( a8951f...6805ee )
by Dieter
05:48
created

CabinDesignation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 32
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
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 */
7
8
namespace Amadeus\Client\Struct\Air\MultiAvailability;
9
10
/**
11
 * CabinDesignation
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class CabinDesignation
17
{
18
    const CABIN_FIRST = 1;
19
    const CABIN_BUSINESS = 2;
20
    const CABIN_ECONOMY_PREMIUM_MAIN = 3;
21
    const CABIN_ECONOMY_MAIN = 4;
22
    const CABIN_ECONOMY_PREMIUM = 5;
23
24
    /**
25
     * 700	Request for cabin is expanded to include non matching cabins in the connections
26
     *
27
     * @var string
28
     */
29
    public $expandCabinIndicator;
30
31
    /**
32
     * self::CABIN_*
33
     *
34
     * @var int
35
     */
36
    public $cabinClassOfServiceList;
37
38
    /**
39
     * CabinDesignation constructor.
40
     *
41
     * @param int $cabinCode self::CABIN_*
42
     */
43
    public function __construct($cabinCode)
44
    {
45
        $this->cabinClassOfServiceList = $cabinCode;
46
    }
47
}
48