Completed
Push — master ( 175f05...5ac193 )
by Bukashk0zzz
04:34
created

OfferTour::setIncluded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Class OfferTour
16
 *
17
 * @author Denis Golubovskiy <[email protected]>
18
 */
19
class OfferTour extends AbstractOffer
20
{
21
    /**
22
     * @var string
23
     */
24
    private $worldRegion;
25
26
    /**
27
     * @var string
28
     */
29
    private $country;
30
31
    /**
32
     * @var string
33
     */
34
    private $region;
35
36
    /**
37
     * @var int
38
     */
39
    private $days;
40
41
    /**
42
     * @var array
43
     */
44
    private $dataTour;
45
46
    /**
47
     * @var string
48
     */
49
    private $name;
50
51
    /**
52
     * @var string
53
     */
54
    private $hotelStars;
55
56
    /**
57
     * @var string
58
     */
59
    private $room;
60
61
    /**
62
     * @var string
63
     */
64
    private $meal;
65
66
    /**
67
     * @var string
68
     */
69
    private $included;
70
71
    /**
72
     * @var string
73
     */
74
    private $transport;
75
76
    /**
77
     * @return string
78
     */
79
    public function getType()
80
    {
81
        return 'tour';
82
    }
83
84
    /**
85
     * @return string
86
     */
87
    public function getWorldRegion()
88
    {
89
        return $this->worldRegion;
90
    }
91
92
    /**
93
     * @param string $worldRegion
94
     * @return $this
95
     */
96
    public function setWorldRegion($worldRegion)
97
    {
98
        $this->worldRegion = $worldRegion;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getCountry()
107
    {
108
        return $this->country;
109
    }
110
111
    /**
112
     * @param string $country
113
     * @return $this
114
     */
115
    public function setCountry($country)
116
    {
117
        $this->country = $country;
118
119
        return $this;
120
    }
121
122
    /**
123
     * @return string
124
     */
125
    public function getRegion()
126
    {
127
        return $this->region;
128
    }
129
130
    /**
131
     * @param string $region
132
     * @return $this
133
     */
134
    public function setRegion($region)
135
    {
136
        $this->region = $region;
137
138
        return $this;
139
    }
140
141
    /**
142
     * @return int
143
     */
144
    public function getDays()
145
    {
146
        return $this->days;
147
    }
148
149
    /**
150
     * @param int $days
151
     * @return $this
152
     */
153
    public function setDays($days)
154
    {
155
        $this->days = $days;
156
157
        return $this;
158
    }
159
160
    /**
161
     * @return array
162
     */
163
    public function getDataTour()
164
    {
165
        return $this->dataTour;
166
    }
167
168
    /**
169
     * @param string $dataTour
170
     * @return $this
171
     */
172
    public function addDataTour($dataTour)
173
    {
174
        $this->dataTour[] = $dataTour;
175
176
        return $this;
177
    }
178
179
    /**
180
     * @return string
181
     */
182
    public function getName()
183
    {
184
        return $this->name;
185
    }
186
187
    /**
188
     * @param string $name
189
     * @return $this
190
     */
191
    public function setName($name)
192
    {
193
        $this->name = $name;
194
195
        return $this;
196
    }
197
198
    /**
199
     * @return string
200
     */
201
    public function getHotelStars()
202
    {
203
        return $this->hotelStars;
204
    }
205
206
    /**
207
     * @param string $hotelStars
208
     * @return $this
209
     */
210
    public function setHotelStars($hotelStars)
211
    {
212
        $this->hotelStars = $hotelStars;
213
214
        return $this;
215
    }
216
217
    /**
218
     * @return string
219
     */
220
    public function getRoom()
221
    {
222
        return $this->room;
223
    }
224
225
    /**
226
     * @param string $room
227
     * @return $this
228
     */
229
    public function setRoom($room)
230
    {
231
        $this->room = $room;
232
233
        return $this;
234
    }
235
236
    /**
237
     * @return string
238
     */
239
    public function getMeal()
240
    {
241
        return $this->meal;
242
    }
243
244
    /**
245
     * @param string $meal
246
     * @return $this
247
     */
248
    public function setMeal($meal)
249
    {
250
        $this->meal = $meal;
251
252
        return $this;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getIncluded()
259
    {
260
        return $this->included;
261
    }
262
263
    /**
264
     * @param string $included
265
     * @return $this
266
     */
267
    public function setIncluded($included)
268
    {
269
        $this->included = $included;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @return string
276
     */
277
    public function getTransport()
278
    {
279
        return $this->transport;
280
    }
281
282
    /**
283
     * @param string $transport
284
     * @return $this
285
     */
286
    public function setTransport($transport)
287
    {
288
        $this->transport = $transport;
289
290
        return $this;
291
    }
292
293
    /**
294
     * @return array
295
     */
296
    protected function getOptions()
297
    {
298
        return [
299
            'worldRegion' => $this->getWorldRegion(),
300
            'country' => $this->getCountry(),
301
            'region' => $this->getRegion(),
302
            'days' => $this->getDays(),
303
            'dataTour' => $this->getDataTour(),
304
            'name' => $this->getName(),
305
            'hotel_stars' => $this->getHotelStars(),
306
            'room' => $this->getRoom(),
307
            'meal' => $this->getMeal(),
308
            'included' => $this->getIncluded(),
309
            'transport' => $this->getTransport(),
310
        ];
311
    }
312
}
313