Completed
Pull Request — master (#23)
by
unknown
14:31
created

InventoryLevel   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 127
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 127
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getInventoryItemId() 0 4 1
A setInventoryItemId() 0 6 1
A getLocationId() 0 4 1
A setLocationId() 0 6 1
A getAvailable() 0 4 1
A setAvailable() 0 6 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 6 1
A getAdminGraphqlApiId() 0 4 1
A setAdminGraphqlApiId() 0 6 1
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\InventoryLevel;
13
14
class InventoryLevel
15
{
16
    /**
17
     * @var int
18
     */
19
    protected $inventoryItemId;
20
21
    /**
22
     * @var int
23
     */
24
    protected $locationId;
25
26
    /**
27
     * @var int
28
     */
29
    protected $available;
30
31
    /**
32
     * @var \DateTimeInterface
33
     */
34
    protected $updatedAt;
35
36
    /**
37
     * @var string
38
     */
39
    protected $adminGraphqlApiId;
40
41
    /**
42
     * @return int
43
     */
44
    public function getInventoryItemId()
45
    {
46
        return $this->inventoryItemId;
47
    }
48
49
    /**
50
     * @param int $inventoryItemId
51
     * 
52
     * @return InventoryLevel
53
     */
54
    public function setInventoryItemId($inventoryItemId)
55
    {
56
        $this->inventoryItemId = $inventoryItemId;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @return int
63
     */
64
    public function getLocationId()
65
    {
66
        return $this->locationId;
67
    }
68
69
    /**
70
     * @param int $locationId
71
     * 
72
     * @return InventoryLevel
73
     */
74
    public function setLocationId($locationId)
75
    {
76
        $this->locationId = $locationId;
77
78
        return $this;
79
    }
80
81
    /**
82
     * @return int
83
     */
84
    public function getAvailable()
85
    {
86
        return $this->available;
87
    }
88
89
    /**
90
     * @param int $available
91
     * 
92
     * @return InventoryLevel
93
     */
94
    public function setAvailable($available)
95
    {
96
        $this->available = $available;
97
98
        return $this;
99
    }
100
101
    /**
102
     * @return \DateTimeInterface
103
     */
104
    public function getUpdatedAt()
105
    {
106
        return $this->updatedAt;
107
    }
108
109
    /**
110
     * @param \DateTimeInterface $updatedAt
111
     * 
112
     * @return InventoryLevel
113
     */
114
    public function setUpdatedAt($updatedAt)
115
    {
116
        $this->updatedAt = $updatedAt;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @return string
123
     */
124
    public function getAdminGraphqlApiId()
125
    {
126
        return $this->adminGraphqlApiId;
127
    }
128
129
    /**
130
     * @param string $adminGraphqlApiId
131
     * 
132
     * @return InventoryLevel
133
     */
134
    public function setAdminGraphqlApiId($adminGraphqlApiId)
135
    {
136
        $this->adminGraphqlApiId = $adminGraphqlApiId;
137
138
        return $this;
139
    }
140
}