Completed
Pull Request — master (#139)
by
unknown
04:18
created

Order::setNotes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Yandex\Market\Partner\Models;
4
5
use Yandex\Market\Partner\Models\Items;
6
use Yandex\Market\Partner\Models\Delivery;
7
use Yandex\Market\Partner\Models\Buyer;
8
use Yandex\Common\Model;
9
10
class Order extends Model
11
{
12
13
    protected $id = null;
14
15
    protected $status = null;
16
17
    protected $substatus = null;
18
19
    protected $creationDate = null;
20
21
    protected $currency = null;
22
23
    protected $itemsTotal = null;
24
25
    protected $total = null;
26
27
    protected $paymentType = null;
28
29
    protected $paymentMethod = null;
30
31
    protected $fake = null;
32
33
    protected $notes = null;
34
35
    protected $items = null;
36
37
    protected $delivery = null;
38
39
    protected $buyer = null;
40
41
    protected $mappingClasses = [
42
        'items' => 'Yandex\Market\Partner\Models\Items',
43
        'delivery' => 'Yandex\Market\Partner\Models\Delivery',
44
        'buyer' => 'Yandex\Market\Partner\Models\Buyer'
45
    ];
46
47
    protected $propNameMap = [];
48
49
    /**
50
     * Retrieve the id property
51
     *
52
     * @return int|null
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * Set the id property
61
     *
62
     * @param int $id
63
     * @return $this
64
     */
65
    public function setId($id)
66
    {
67
        $this->id = $id;
68
        return $this;
69
    }
70
71
    /**
72
     * Retrieve the status property
73
     *
74
     * @return string|null
75
     */
76
    public function getStatus()
77
    {
78
        return $this->status;
79
    }
80
81
    /**
82
     * Set the status property
83
     *
84
     * @param string $status
85
     * @return $this
86
     */
87
    public function setStatus($status)
88
    {
89
        $this->status = $status;
90
        return $this;
91
    }
92
93
    /**
94
     * Retrieve the substatus property
95
     *
96
     * @return string|null
97
     */
98
    public function getSubstatus()
99
    {
100
        return $this->substatus;
101
    }
102
103
    /**
104
     * Set the substatus property
105
     *
106
     * @param string $substatus
107
     * @return $this
108
     */
109
    public function setSubstatus($substatus)
110
    {
111
        $this->substatus = $substatus;
112
        return $this;
113
    }
114
115
    /**
116
     * Retrieve the creationDate property
117
     *
118
     * @return string|null
119
     */
120
    public function getCreationDate()
121
    {
122
        return $this->creationDate;
123
    }
124
125
    /**
126
     * Set the creationDate property
127
     *
128
     * @param string $creationDate
129
     * @return $this
130
     */
131
    public function setCreationDate($creationDate)
132
    {
133
        $this->creationDate = $creationDate;
134
        return $this;
135
    }
136
137
    /**
138
     * Retrieve the currency property
139
     *
140
     * @return string|null
141
     */
142
    public function getCurrency()
143
    {
144
        return $this->currency;
145
    }
146
147
    /**
148
     * Set the currency property
149
     *
150
     * @param string $currency
151
     * @return $this
152
     */
153
    public function setCurrency($currency)
154
    {
155
        $this->currency = $currency;
156
        return $this;
157
    }
158
159
    /**
160
     * Retrieve the itemsTotal property
161
     *
162
     * @return int|null
163
     */
164
    public function getItemsTotal()
165
    {
166
        return $this->itemsTotal;
167
    }
168
169
    /**
170
     * Set the itemsTotal property
171
     *
172
     * @param int $itemsTotal
173
     * @return $this
174
     */
175
    public function setItemsTotal($itemsTotal)
176
    {
177
        $this->itemsTotal = $itemsTotal;
178
        return $this;
179
    }
180
181
    /**
182
     * Retrieve the total property
183
     *
184
     * @return int|null
185
     */
186
    public function getTotal()
187
    {
188
        return $this->total;
189
    }
190
191
    /**
192
     * Set the total property
193
     *
194
     * @param int $total
195
     * @return $this
196
     */
197
    public function setTotal($total)
198
    {
199
        $this->total = $total;
200
        return $this;
201
    }
202
203
    /**
204
     * Retrieve the paymentType property
205
     *
206
     * @return string|null
207
     */
208
    public function getPaymentType()
209
    {
210
        return $this->paymentType;
211
    }
212
213
    /**
214
     * Set the paymentType property
215
     *
216
     * @param string $paymentType
217
     * @return $this
218
     */
219
    public function setPaymentType($paymentType)
220
    {
221
        $this->paymentType = $paymentType;
222
        return $this;
223
    }
224
225
    /**
226
     * Retrieve the paymentMethod property
227
     *
228
     * @return string|null
229
     */
230
    public function getPaymentMethod()
231
    {
232
        return $this->paymentMethod;
233
    }
234
235
    /**
236
     * Set the paymentMethod property
237
     *
238
     * @param string $paymentMethod
239
     * @return $this
240
     */
241
    public function setPaymentMethod($paymentMethod)
242
    {
243
        $this->paymentMethod = $paymentMethod;
244
        return $this;
245
    }
246
247
    /**
248
     * Retrieve the fake property
249
     *
250
     * @return boolean|null
251
     */
252
    public function getFake()
253
    {
254
        return $this->fake;
255
    }
256
257
    /**
258
     * Set the fake property
259
     *
260
     * @param boolean $fake
261
     * @return $this
262
     */
263
    public function setFake($fake)
264
    {
265
        $this->fake = $fake;
266
        return $this;
267
    }
268
269
    /**
270
     * Retrieve the notes property
271
     *
272
     * @return string|null
273
     */
274
    public function getNotes()
275
    {
276
        return $this->notes;
277
    }
278
279
    /**
280
     * Set the notes property
281
     *
282
     * @param string $notes
283
     * @return $this
284
     */
285
    public function setNotes($notes)
286
    {
287
        $this->notes = $notes;
288
        return $this;
289
    }
290
291
    /**
292
     * Retrieve the items property
293
     *
294
     * @return Items|null
295
     */
296
    public function getItems()
297
    {
298
        return $this->items;
299
    }
300
301
    /**
302
     * Set the items property
303
     *
304
     * @param Items $items
305
     * @return $this
306
     */
307
    public function setItems($items)
308
    {
309
        $this->items = $items;
310
        return $this;
311
    }
312
313
    /**
314
     * Retrieve the delivery property
315
     *
316
     * @return Delivery|null
317
     */
318
    public function getDelivery()
319
    {
320
        return $this->delivery;
321
    }
322
323
    /**
324
     * Set the delivery property
325
     *
326
     * @param Delivery $delivery
327
     * @return $this
328
     */
329
    public function setDelivery($delivery)
330
    {
331
        $this->delivery = $delivery;
332
        return $this;
333
    }
334
335
    /**
336
     * Retrieve the buyer property
337
     *
338
     * @return Buyer|null
339
     */
340
    public function getBuyer()
341
    {
342
        return $this->buyer;
343
    }
344
345
    /**
346
     * Set the buyer property
347
     *
348
     * @param Buyer $buyer
349
     * @return $this
350
     */
351
    public function setBuyer($buyer)
352
    {
353
        $this->buyer = $buyer;
354
        return $this;
355
    }
356
}
357