Completed
Push — master ( f1a8ac...4d9804 )
by Taosikai
30:58 queued 16:01
created

Variant::getInventoryItemId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\ProductVariant;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Variant extends Model
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $productId;
22
23
    /**
24
     * @var string
25
     */
26
    protected $title;
27
28
    /**
29
     * @var float
30
     */
31
    protected $price;
32
33
    /**
34
     * @var string
35
     */
36
    protected $sku;
37
38
    /**
39
     * @var int
40
     */
41
    protected $position;
42
43
    /**
44
     * @var int
45
     */
46
    protected $grams;
47
48
    /**
49
     * @var string
50
     */
51
    protected $inventoryPolicy;
52
53
    /**
54
     * @var string
55
     */
56
    protected $compareAtPrice;
57
58
    /**
59
     * @var string
60
     */
61
    protected $fulfillmentService;
62
63
    /**
64
     * @var string
65
     */
66
    protected $inventoryManagement;
67
68
    /**
69
     * @var string
70
     */
71
    protected $option1;
72
73
    /**
74
     * @var string
75
     */
76
    protected $option2;
77
78
    /**
79
     * @var string
80
     */
81
    protected $option3;
82
83
    /**
84
     * @var string
85
     */
86
    protected $createdAt;
87
88
    /**
89
     * @var string
90
     */
91
    protected $updatedAt;
92
93
    /**
94
     * @var bool
95
     */
96
    protected $taxable;
97
98
    /**
99
     * @var string
100
     */
101
    protected $barcode;
102
103
    /**
104
     * @var int
105
     */
106
    protected $imageId;
107
108
    /**
109
     * @var int
110
     */
111
    protected $inventoryQuantity;
112
113
    /**
114
     * @var float
115
     */
116
    protected $weight;
117
118
    /**
119
     * @var string
120
     */
121
    protected $weightUnit;
122
123
    /**
124
     * @var int
125
     */
126
    protected $inventoryItemId;
127
128
    /**
129
     * @var int
130
     */
131
    protected $oldInventoryQuantity;
132
133
    /**
134
     * @var bool
135
     */
136
    protected $requiresShipping;
137
138
    /**
139
     * @var string
140
     */
141
    protected $adminGraphqlApiId;
142
143
    /**
144
     * @return int
145
     */
146
    public function getProductId()
147
    {
148
        return $this->productId;
149
    }
150
151
    /**
152
     * @param int $productId
153
     *
154
     * @return Variant
155
     */
156
    public function setProductId($productId)
157
    {
158
        $this->productId = $productId;
159
160
        return $this;
161
    }
162
163
    /**
164
     * @return string
165
     */
166
    public function getTitle()
167
    {
168
        return $this->title;
169
    }
170
171
    /**
172
     * @param string $title
173
     *
174
     * @return Variant
175
     */
176
    public function setTitle($title)
177
    {
178
        $this->title = $title;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @return float
185
     */
186
    public function getPrice()
187
    {
188
        return $this->price;
189
    }
190
191
    /**
192
     * @param float $price
193
     *
194
     * @return Variant
195
     */
196
    public function setPrice($price)
197
    {
198
        $this->price = $price;
199
200
        return $this;
201
    }
202
203
    /**
204
     * @return string
205
     */
206
    public function getSku()
207
    {
208
        return $this->sku;
209
    }
210
211
    /**
212
     * @param string $sku
213
     *
214
     * @return Variant
215
     */
216
    public function setSku($sku)
217
    {
218
        $this->sku = $sku;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @return int
225
     */
226
    public function getPosition()
227
    {
228
        return $this->position;
229
    }
230
231
    /**
232
     * @param int $position
233
     *
234
     * @return Variant
235
     */
236
    public function setPosition($position)
237
    {
238
        $this->position = $position;
239
240
        return $this;
241
    }
242
243
    /**
244
     * @return int
245
     */
246
    public function getGrams()
247
    {
248
        return $this->grams;
249
    }
250
251
    /**
252
     * @param int $grams
253
     *
254
     * @return Variant
255
     */
256
    public function setGrams($grams)
257
    {
258
        $this->grams = $grams;
259
260
        return $this;
261
    }
262
263
    /**
264
     * @return string
265
     */
266
    public function getInventoryPolicy()
267
    {
268
        return $this->inventoryPolicy;
269
    }
270
271
    /**
272
     * @param string $inventoryPolicy
273
     *
274
     * @return Variant
275
     */
276
    public function setInventoryPolicy($inventoryPolicy)
277
    {
278
        $this->inventoryPolicy = $inventoryPolicy;
279
280
        return $this;
281
    }
282
283
    /**
284
     * @return string
285
     */
286
    public function getCompareAtPrice()
287
    {
288
        return $this->compareAtPrice;
289
    }
290
291
    /**
292
     * @param string $compareAtPrice
293
     *
294
     * @return Variant
295
     */
296
    public function setCompareAtPrice($compareAtPrice)
297
    {
298
        $this->compareAtPrice = $compareAtPrice;
299
300
        return $this;
301
    }
302
303
    /**
304
     * @return string
305
     */
306
    public function getFulfillmentService()
307
    {
308
        return $this->fulfillmentService;
309
    }
310
311
    /**
312
     * @param string $fulfillmentService
313
     *
314
     * @return Variant
315
     */
316
    public function setFulfillmentService($fulfillmentService)
317
    {
318
        $this->fulfillmentService = $fulfillmentService;
319
320
        return $this;
321
    }
322
323
    /**
324
     * @return string
325
     */
326
    public function getInventoryManagement()
327
    {
328
        return $this->inventoryManagement;
329
    }
330
331
    /**
332
     * @param string $inventoryManagement
333
     *
334
     * @return Variant
335
     */
336
    public function setInventoryManagement($inventoryManagement)
337
    {
338
        $this->inventoryManagement = $inventoryManagement;
339
340
        return $this;
341
    }
342
343
    /**
344
     * @return string
345
     */
346
    public function getOption1()
347
    {
348
        return $this->option1;
349
    }
350
351
    /**
352
     * @param string $option1
353
     *
354
     * @return Variant
355
     */
356
    public function setOption1($option1)
357
    {
358
        $this->option1 = $option1;
359
360
        return $this;
361
    }
362
363
    /**
364
     * @return string
365
     */
366
    public function getOption2()
367
    {
368
        return $this->option2;
369
    }
370
371
    /**
372
     * @param string $option2
373
     *
374
     * @return Variant
375
     */
376
    public function setOption2($option2)
377
    {
378
        $this->option2 = $option2;
379
380
        return $this;
381
    }
382
383
    /**
384
     * @return string
385
     */
386
    public function getOption3()
387
    {
388
        return $this->option3;
389
    }
390
391
    /**
392
     * @param string $option3
393
     *
394
     * @return Variant
395
     */
396
    public function setOption3($option3)
397
    {
398
        $this->option3 = $option3;
399
400
        return $this;
401
    }
402
403
    /**
404
     * @return string
405
     */
406
    public function getCreatedAt()
407
    {
408
        return $this->createdAt;
409
    }
410
411
    /**
412
     * @param string $createdAt
413
     *
414
     * @return Variant
415
     */
416
    public function setCreatedAt($createdAt)
417
    {
418
        $this->createdAt = $createdAt;
419
420
        return $this;
421
    }
422
423
    /**
424
     * @return string
425
     */
426
    public function getUpdatedAt()
427
    {
428
        return $this->updatedAt;
429
    }
430
431
    /**
432
     * @param string $updatedAt
433
     *
434
     * @return Variant
435
     */
436
    public function setUpdatedAt($updatedAt)
437
    {
438
        $this->updatedAt = $updatedAt;
439
440
        return $this;
441
    }
442
443
    /**
444
     * @return bool
445
     */
446
    public function isTaxable()
447
    {
448
        return $this->taxable;
449
    }
450
451
    /**
452
     * @param bool $taxable
453
     *
454
     * @return Variant
455
     */
456
    public function setTaxable($taxable)
457
    {
458
        $this->taxable = $taxable;
459
460
        return $this;
461
    }
462
463
    /**
464
     * @return string
465
     */
466
    public function getBarcode()
467
    {
468
        return $this->barcode;
469
    }
470
471
    /**
472
     * @param string $barcode
473
     *
474
     * @return Variant
475
     */
476
    public function setBarcode($barcode)
477
    {
478
        $this->barcode = $barcode;
479
480
        return $this;
481
    }
482
483
    /**
484
     * @return int
485
     */
486
    public function getImageId()
487
    {
488
        return $this->imageId;
489
    }
490
491
    /**
492
     * @param int $imageId
493
     *
494
     * @return Variant
495
     */
496
    public function setImageId($imageId)
497
    {
498
        $this->imageId = $imageId;
499
500
        return $this;
501
    }
502
503
    /**
504
     * @return int
505
     */
506
    public function getInventoryQuantity()
507
    {
508
        return $this->inventoryQuantity;
509
    }
510
511
    /**
512
     * @param int $inventoryQuantity
513
     *
514
     * @return Variant
515
     */
516
    public function setInventoryQuantity($inventoryQuantity)
517
    {
518
        $this->inventoryQuantity = $inventoryQuantity;
519
520
        return $this;
521
    }
522
523
    /**
524
     * @return float
525
     */
526
    public function getWeight()
527
    {
528
        return $this->weight;
529
    }
530
531
    /**
532
     * @param float $weight
533
     *
534
     * @return Variant
535
     */
536
    public function setWeight($weight)
537
    {
538
        $this->weight = $weight;
539
540
        return $this;
541
    }
542
543
    /**
544
     * @return string
545
     */
546
    public function getWeightUnit()
547
    {
548
        return $this->weightUnit;
549
    }
550
551
    /**
552
     * @param string $weightUnit
553
     *
554
     * @return Variant
555
     */
556
    public function setWeightUnit($weightUnit)
557
    {
558
        $this->weightUnit = $weightUnit;
559
560
        return $this;
561
    }
562
563
    /**
564
     * @param int $inventoryItemId
565
     */
566
    public function setInventoryItemId($inventoryItemId)
567
    {
568
        $this->inventoryItemId = $inventoryItemId;
569
    }
570
571
    /**
572
     * @return int
573
     */
574
    public function getInventoryItemId()
575
    {
576
        return $this->inventoryItemId;
577
    }
578
579
    /**
580
     * @return int
581
     */
582
    public function getOldInventoryQuantity()
583
    {
584
        return $this->oldInventoryQuantity;
585
    }
586
587
    /**
588
     * @param int $oldInventoryQuantity
589
     *
590
     * @return Variant
591
     */
592
    public function setOldInventoryQuantity($oldInventoryQuantity)
593
    {
594
        $this->oldInventoryQuantity = $oldInventoryQuantity;
595
596
        return $this;
597
    }
598
599
    /**
600
     * @return bool
601
     */
602
    public function isRequiresShipping()
603
    {
604
        return $this->requiresShipping;
605
    }
606
607
    /**
608
     * @param bool $requiresShipping
609
     *
610
     * @return Variant
611
     */
612
    public function setRequiresShipping($requiresShipping)
613
    {
614
        $this->requiresShipping = $requiresShipping;
615
616
        return $this;
617
    }
618
619
    /**
620
     * @param string $adminGraphqlApiId
621
     */
622
    public function setAdminGraphqlApiId($adminGraphqlApiId)
623
    {
624
        $this->adminGraphqlApiId = $adminGraphqlApiId;
625
    }
626
627
    /**
628
     * @return string
629
     */
630
    public function getAdminGraphqlApiId()
631
    {
632
        return $this->adminGraphqlApiId;
633
    }
634
}