SelectionDetails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 37
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\Queue;
24
25
/**
26
 * Structure class for the SelectionDetails message part for Queue_* messages
27
 *
28
 * @package Amadeus\Client\Struct\Queue
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class SelectionDetails
32
{
33
    const PLACEPNR_OPTION_QUEUE = "QEQ";
34
    const PLACEPNR_OPTION_DELAYQUEUE = "QED";
35
    const MOVE_OPTION_COPY_QUEUE_KEEP = "QBB";
36
    const MOVE_OPTION_COPY_QUEUE_REMOVE = "QBD";
37
    const LIST_OPTION_SORT_CREATION = "CD";
38
    const LIST_OPTION_SORT_DEPARTURE = "DD";
39
    const LIST_OPTION_SORT_TICKETING = "TD";
40
    const REMOVE_OPTION_SPECIFIC_PNR = "QRP";
41
    const REMOVE_OPTION_ALL = "QR";
42
43
    /* Queue_* options:
44
     * QBA  copy PNR/msg to specified delay queue and keep existing
45
     * QBB  copy PNR/msg to specified queue and keep existing
46
     * QBC  copy PNR/msg to specified delay queue and remove existing
47
     * QBD  copy PNR/msg to specified queue and remove existing
48
     * QWD  copy PNR from delay planner and keep existing
49
     * QWO  copy PNR from option planner and keep existing
50
     * QWR  copy PNR from planner and remove existing
51
     * QWS  copy PNR from planner and keep existing
52
     * QWT  copy PNR from ticketing planner and keep existing
53
     */
54
55
    /**
56
     * @var string
57
     */
58
    public $option;
59
60
    /**
61
     * @param string $optionCode
62
     */
63
    public function __construct($optionCode)
64
    {
65
        $this->option = $optionCode;
66
    }
67
}
68