PorFndQryParams   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 98
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 98
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
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\PointOfRef\Search;
24
25
/**
26
 * PorFndQryParams
27
 *
28
 * @package Amadeus\Client\Struct\PointOfRef\Search
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class PorFndQryParams
32
{
33
    /**
34
     * Resulting list type
35
     *
36
     * - 'S': Short
37
     *
38
     * @var string
39
     */
40
    public $resultListType;
41
42
    /**
43
     * Code of language (ISO 639-1988).
44
     *
45
     * @var string
46
     */
47
    public $outputLanguage;
48
49
    /**
50
     * Max number of items to be returned
51
     *
52
     * @var int
53
     */
54
    public $resultMaxItems;
55
56
    /**
57
     * Index of item
58
     *
59
     * @var int
60
     */
61
    public $indexOfItem;
62
63
    /**
64
     * Category code
65
     *
66
     * @var string[] Up to 3 elements
67
     */
68
    public $targetCategoryCode = [];
69
70
    /**
71
     * The center of the search area is defined by latitude / longitude
72
     *
73
     * @var GeoCode
74
     */
75
    public $geoCode;
76
77
    /**
78
     * The center of the search area is defined by a POR identified by business id
79
     *
80
     * @var BusinessId
81
     */
82
    public $businessId;
83
84
    /**
85
     * POR internal key
86
     *
87
     * @var string
88
     */
89
    public $porId;
90
91
    /**
92
     * Default search radius for PORs in this primary category
93
     *
94
     * @var int
95
     */
96
    public $radius;
97
98
    /**
99
     * Geographic area filter
100
     *
101
     * @var Area
102
     */
103
    public $area;
104
105
    /**
106
     * Name filter
107
     *
108
     * @var Name
109
     */
110
    public $name;
111
112
    /**
113
     * Search type
114
     *
115
     * @var string
116
     */
117
    public $searchType;
118
119
    /**
120
     * @param string $targetCategoryCode The primary Target Category Code
121
     */
122
    public function __construct($targetCategoryCode = null)
123
    {
124
        if ($targetCategoryCode !== null) {
125
            $this->targetCategoryCode[] = $targetCategoryCode;
126
        }
127
    }
128
}
129