Completed
Push — master ( 8e0293...4a8ded )
by Taosikai
12s
created

InventoryItem::getAdminGraphqlApiId()   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\Inventory;
13
14
use Slince\Shopify\Common\Model\Model;
15
use Slince\Shopify\Common\Model\AdminGraphqlApiId;
16
17
class InventoryItem extends Model
18
{
19
    use AdminGraphqlApiId;
20
21
    /**
22
     * @var string
23
     */
24
    protected $sku;
25
26
    /**
27
     * @var float
28
     */
29
    protected $cost;
30
31
    /**
32
     * @var boolean
33
     */
34
    protected $tracked;
35
36
    /**
37
     * @var \DateTimeInterface
38
     */
39
    protected $createdAt;
40
41
    /**
42
     * @var \DateTimeInterface
43
     */
44
    protected $updatedAt;
45
46
    /**
47
     * @return string
48
     */
49
    public function getSku()
50
    {
51
        return $this->sku;
52
    }
53
54
    /**
55
     * @param string $sku
56
     * @return InventoryItem
57
     */
58
    public function setSku($sku)
59
    {
60
        $this->sku = $sku;
61
        return $this;
62
    }
63
64
    /**
65
     * @return float
66
     */
67
    public function getCost()
68
    {
69
        return $this->cost;
70
    }
71
72
    /**
73
     * @param float $cost
74
     * @return InventoryItem
75
     */
76
    public function setCost($cost)
77
    {
78
        $this->cost = $cost;
79
        return $this;
80
    }
81
82
    /**
83
     * @return bool
84
     */
85
    public function isTracked()
86
    {
87
        return $this->tracked;
88
    }
89
90
    /**
91
     * @param bool $tracked
92
     * @return InventoryItem
93
     */
94
    public function setTracked($tracked)
95
    {
96
        $this->tracked = $tracked;
97
        return $this;
98
    }
99
100
    /**
101
     * @return \DateTimeInterface
102
     */
103
    public function getCreatedAt()
104
    {
105
        return $this->createdAt;
106
    }
107
108
    /**
109
     * @param \DateTimeInterface $createdAt
110
     * @return InventoryItem
111
     */
112
    public function setCreatedAt($createdAt)
113
    {
114
        $this->createdAt = $createdAt;
115
        return $this;
116
    }
117
118
    /**
119
     * @return \DateTimeInterface
120
     */
121
    public function getUpdatedAt()
122
    {
123
        return $this->updatedAt;
124
    }
125
126
    /**
127
     * @param \DateTimeInterface $updatedAt
128
     * @return InventoryItem
129
     */
130
    public function setUpdatedAt($updatedAt)
131
    {
132
        $this->updatedAt = $updatedAt;
133
        return $this;
134
    }
135
}