OptionInfo   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 76
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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
 * OptionInfo
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class OptionInfo
17
{
18
    const OPTION_TYPE_AWARD_CALENDAR_AVAILABILITY = "ACA";
19
    const OPTION_TYPE_BIASED = "BIA";
20
    const OPTION_TYPE_CHARTER_OPTION = "CHA";
21
    const OPTION_TYPE_DAY_OF_OPERATION = "DAY";
22
    const OPTION_TYPE_DIRECT_ACCESS = "DIR";
23
    const OPTION_TYPE_FORWARD_BACKWARD_PENDULUM = "FBP";
24
    const OPTION_TYPE_FREQUENT_FLYER = "FFL";
25
    const OPTION_TYPE_FLIGHT_OPTION = "FLO";
26
    const OPTION_TYPE_FORWARD_SEARCH = "FSE";
27
    const OPTION_TYPE_HORIZONTAL_GEOMETRY = "HOR";
28
    const OPTION_TYPE_MULTI_MODAL = "MOD";
29
    const OPTION_TYPE_MAX_NR_OF_FLIGHT_PER_DAY = "NBI";
30
    const OPTION_TYPE_MAX_NR_OF_JOURNEY_PER_DAY = "NBJ";
31
    const OPTION_TYPE_REDEMPTION_GROUP = "RED";
32
    const OPTION_TYPE_7_DAY_SEARCH = "SEV";
33
    const OPTION_TYPE_TIME = "TIM";
34
    const OPTION_TYPE_TIME_WINDOW = "TIW";
35
    const OPTION_TYPE_VERTICAL_GEOMETRY = "VER";
36
    const OPTION_TYPE_ZONE = "ZON";
37
38
    /**
39
     * self::OPTION_TYPE_*
40
     *
41
     * @var string
42
     */
43
    public $type;
44
45
    /**
46
     * 12 Time on 12 h
47
     * 24 Time on 24 h
48
     * EST Enriched staff
49
     * EU Europe
50
     * FR Friday
51
     * GR Group
52
     * MA show air only
53
     * MF show ferry only
54
     * MM show air and non air services
55
     * MN show non-air-services only
56
     * MO Monday
57
     * MR show rail services only
58
     * OB Request charter and scheduled flights
59
     * OC Request connections only
60
     * OD Request direct flights only
61
     * OF Request charter flights only or geometry of display
62
     * OL Request On-line connections only
63
     * OM Request meal flights only
64
     * ON Request non-stop flights only or geometry of display
65
     * OS Request scheduled flights only
66
     * RE Redemption
67
     * SA Saterday
68
     * ST Staff
69
     * SU Sunday
70
     * TH Thursday
71
     * TU Tuesday
72
     * US USA
73
     * WE Wednesday
74
     *
75
     * @var string[]
76
     */
77
    public $arguments = [];
78
79
80
    /**
81
     * OptionInfo constructor.
82
     *
83
     * @param string $type
84
     * @param string $argument
85
     */
86
    public function __construct($type, $argument)
87
    {
88
        $this->type = $type;
89
        $this->arguments[] = $argument;
90
    }
91
}
92