Completed
Push — master ( b73efb...175f05 )
by Bukashk0zzz
03:39
created

OfferTour::setName()   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 array
78
     */
79
    public function toArray()
80
    {
81
        return array_merge($this->getHeaderOptions(), [
82
            'worldRegion' => $this->getWorldRegion(),
83
            'country' => $this->getCountry(),
84
            'region' => $this->getRegion(),
85
            'days' => $this->getDays(),
86
            'dataTour' => $this->getDataTour(),
87
            'name' => $this->getName(),
88
            'hotel_stars' => $this->getHotelStars(),
89
            'room' => $this->getRoom(),
90
            'meal' => $this->getMeal(),
91
            'included' => $this->getIncluded(),
92
            'transport' => $this->getTransport(),
93
        ], $this->getFooterOptions());
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getType()
100
    {
101
        return 'tour';
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getWorldRegion()
108
    {
109
        return $this->worldRegion;
110
    }
111
112
    /**
113
     * @param string $worldRegion
114
     * @return $this
115
     */
116
    public function setWorldRegion($worldRegion)
117
    {
118
        $this->worldRegion = $worldRegion;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return string
125
     */
126
    public function getCountry()
127
    {
128
        return $this->country;
129
    }
130
131
    /**
132
     * @param string $country
133
     * @return $this
134
     */
135
    public function setCountry($country)
136
    {
137
        $this->country = $country;
138
139
        return $this;
140
    }
141
142
    /**
143
     * @return string
144
     */
145
    public function getRegion()
146
    {
147
        return $this->region;
148
    }
149
150
    /**
151
     * @param string $region
152
     * @return $this
153
     */
154
    public function setRegion($region)
155
    {
156
        $this->region = $region;
157
158
        return $this;
159
    }
160
161
    /**
162
     * @return int
163
     */
164
    public function getDays()
165
    {
166
        return $this->days;
167
    }
168
169
    /**
170
     * @param int $days
171
     * @return $this
172
     */
173
    public function setDays($days)
174
    {
175
        $this->days = $days;
176
177
        return $this;
178
    }
179
180
    /**
181
     * @return array
182
     */
183
    public function getDataTour()
184
    {
185
        return $this->dataTour;
186
    }
187
188
    /**
189
     * @param array $dataTour
190
     * @return $this
191
     */
192
    public function addDataTour($dataTour)
193
    {
194
        $this->dataTour[] = $dataTour;
195
196
        return $this;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getName()
203
    {
204
        return $this->name;
205
    }
206
207
    /**
208
     * @param string $name
209
     * @return $this
210
     */
211
    public function setName($name)
212
    {
213
        $this->name = $name;
214
215
        return $this;
216
    }
217
218
    /**
219
     * @return string
220
     */
221
    public function getHotelStars()
222
    {
223
        return $this->hotelStars;
224
    }
225
226
    /**
227
     * @param string $hotelStars
228
     * @return $this
229
     */
230
    public function setHotelStars($hotelStars)
231
    {
232
        $this->hotelStars = $hotelStars;
233
234
        return $this;
235
    }
236
237
    /**
238
     * @return string
239
     */
240
    public function getRoom()
241
    {
242
        return $this->room;
243
    }
244
245
    /**
246
     * @param string $room
247
     * @return $this
248
     */
249
    public function setRoom($room)
250
    {
251
        $this->room = $room;
252
253
        return $this;
254
    }
255
256
    /**
257
     * @return string
258
     */
259
    public function getMeal()
260
    {
261
        return $this->meal;
262
    }
263
264
    /**
265
     * @param string $meal
266
     * @return $this
267
     */
268
    public function setMeal($meal)
269
    {
270
        $this->meal = $meal;
271
272
        return $this;
273
    }
274
275
    /**
276
     * @return string
277
     */
278
    public function getIncluded()
279
    {
280
        return $this->included;
281
    }
282
283
    /**
284
     * @param string $included
285
     * @return $this
286
     */
287
    public function setIncluded($included)
288
    {
289
        $this->included = $included;
290
291
        return $this;
292
    }
293
294
    /**
295
     * @return string
296
     */
297
    public function getTransport()
298
    {
299
        return $this->transport;
300
    }
301
302
    /**
303
     * @param string $transport
304
     * @return $this
305
     */
306
    public function setTransport($transport)
307
    {
308
        $this->transport = $transport;
309
310
        return $this;
311
    }
312
}
313