Completed
Push — master ( 8a3fde...3a0813 )
by Taosikai
14s queued 11s
created

Image::getPosition()   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\ProductImage;
13
14
use Slince\Shopify\Common\Model\Model;
15
use Slince\Shopify\Common\Model\AdminGraphqlApiId;
16
17
class Image extends Model
18
{
19
    use AdminGraphqlApiId;
20
21
    /**
22
     * @var int
23
     */
24
    protected $productId;
25
26
    /**
27
     * @var int
28
     */
29
    protected $position;
30
31
    /**
32
     * @var \DateTimeInterface
33
     */
34
    protected $createdAt;
35
36
    /**
37
     * @var \DateTimeInterface
38
     */
39
    protected $updatedAt;
40
41
    /**
42
     * @var int
43
     */
44
    protected $width;
45
46
    /**
47
     * @var int
48
     */
49
    protected $height;
50
51
    /**
52
     * @var string
53
     */
54
    protected $src;
55
56
    /**
57
     * @var array
58
     */
59
    protected $variantIds;
60
61
    /**
62
     * @var string
63
     */
64
    protected $alt;
65
66
    /**
67
     * @return int
68
     */
69
    public function getProductId()
70
    {
71
        return $this->productId;
72
    }
73
74
    /**
75
     * @param int $productId
76
     *
77
     * @return Image
78
     */
79
    public function setProductId($productId)
80
    {
81
        $this->productId = $productId;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @return int
88
     */
89
    public function getPosition()
90
    {
91
        return $this->position;
92
    }
93
94
    /**
95
     * @param int $position
96
     *
97
     * @return Image
98
     */
99
    public function setPosition($position)
100
    {
101
        $this->position = $position;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return \DateTimeInterface
108
     */
109
    public function getCreatedAt()
110
    {
111
        return $this->createdAt;
112
    }
113
114
    /**
115
     * @param \DateTimeInterface $createdAt
116
     *
117
     * @return Image
118
     */
119
    public function setCreatedAt($createdAt)
120
    {
121
        $this->createdAt = $createdAt;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return \DateTimeInterface
128
     */
129
    public function getUpdatedAt()
130
    {
131
        return $this->updatedAt;
132
    }
133
134
    /**
135
     * @param \DateTimeInterface $updatedAt
136
     *
137
     * @return Image
138
     */
139
    public function setUpdatedAt($updatedAt)
140
    {
141
        $this->updatedAt = $updatedAt;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return string
148
     */
149
    public function getSrc()
150
    {
151
        return $this->src;
152
    }
153
154
    /**
155
     * @param string $src
156
     *
157
     * @return Image
158
     */
159
    public function setSrc($src)
160
    {
161
        $this->src = $src;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return int
168
     */
169
    public function getWidth()
170
    {
171
        return $this->width;
172
    }
173
174
    /**
175
     * @param int $width
176
     *
177
     * @return Image
178
     */
179
    public function setWidth($width)
180
    {
181
        $this->width = $width;
182
183
        return $this;
184
    }
185
186
    /**
187
     * @return int
188
     */
189
    public function getHeight()
190
    {
191
        return $this->height;
192
    }
193
194
    /**
195
     * @param int $height
196
     *
197
     * @return Image
198
     */
199
    public function setHeight($height)
200
    {
201
        $this->height = $height;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @return array
208
     */
209
    public function getVariantIds()
210
    {
211
        return $this->variantIds;
212
    }
213
214
    /**
215
     * @param array $variantIds
216
     *
217
     * @return Image
218
     */
219
    public function setVariantIds($variantIds)
220
    {
221
        $this->variantIds = $variantIds;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @return string
228
     */
229
    public function getAlt()
230
    {
231
        return $this->alt;
232
    }
233
234
    /**
235
     * @param string $alt
236
     *
237
     * @return string
238
     */
239
    public function setAlt($alt)
240
    {
241
        $this->alt = $alt;
242
243
        return $this;
244
    }
245
}