Location::setCreatedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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\Location;
13
14
use Slince\Shopify\Common\Model\Model;
15
use Slince\Shopify\Common\Model\AdminGraphqlApiId;
16
17
class Location extends Model
18
{
19
    use AdminGraphqlApiId;
20
21
    /**
22
     * @var string
23
     */
24
    protected $name;
25
26
    /**
27
     * @var string
28
     */
29
    protected $deletedAt;
30
31
    /**
32
     * @var string
33
     */
34
    protected $address1;
35
36
    /**
37
     * @var string
38
     */
39
    protected $address2;
40
41
    /**
42
     * @var string
43
     */
44
    protected $city;
45
46
    /**
47
     * @var string
48
     */
49
    protected $zip;
50
51
    /**
52
     * @var string
53
     */
54
    protected $province;
55
56
    /**
57
     * @var string
58
     */
59
    protected $country;
60
61
    /**
62
     * @var int
63
     */
64
    protected $phone;
65
66
    /**
67
     * @var \DateTimeInterface
68
     */
69
    protected $createdAt;
70
71
    /**
72
     * @var \DateTimeInterface
73
     */
74
    protected $updatedAt;
75
76
    /**
77
     * @var string
78
     */
79
    protected $countryCode;
80
81
    /**
82
     * @var string
83
     */
84
    protected $countryName;
85
86
    /**
87
     * @var string
88
     */
89
    protected $provinceCode;
90
91
    /**
92
     * @return string
93
     */
94
    public function getName()
95
    {
96
        return $this->name;
97
    }
98
99
    /**
100
     * @param string $name
101
     *
102
     * @return Location
103
     */
104
    public function setName($name)
105
    {
106
        $this->name = $name;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getDeletedAt()
115
    {
116
        return $this->deletedAt;
117
    }
118
119
    /**
120
     * @param string $deletedAt
121
     *
122
     * @return Location
123
     */
124
    public function setDeletedAt($deletedAt)
125
    {
126
        $this->deletedAt = $deletedAt;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getAddress1()
135
    {
136
        return $this->address1;
137
    }
138
139
    /**
140
     * @param string $address1
141
     *
142
     * @return Location
143
     */
144
    public function setAddress1($address1)
145
    {
146
        $this->address1 = $address1;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getAddress2()
155
    {
156
        return $this->address2;
157
    }
158
159
    /**
160
     * @param string $address2
161
     *
162
     * @return Location
163
     */
164
    public function setAddress2($address2)
165
    {
166
        $this->address2 = $address2;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @return string
173
     */
174
    public function getCity()
175
    {
176
        return $this->city;
177
    }
178
179
    /**
180
     * @param string $city
181
     *
182
     * @return Location
183
     */
184
    public function setCity($city)
185
    {
186
        $this->city = $city;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getZip()
195
    {
196
        return $this->zip;
197
    }
198
199
    /**
200
     * @param string $zip
201
     *
202
     * @return Location
203
     */
204
    public function setZip($zip)
205
    {
206
        $this->zip = $zip;
207
208
        return $this;
209
    }
210
211
    /**
212
     * @return string
213
     */
214
    public function getProvince()
215
    {
216
        return $this->province;
217
    }
218
219
    /**
220
     * @param string $province
221
     *
222
     * @return Location
223
     */
224
    public function setProvince($province)
225
    {
226
        $this->province = $province;
227
228
        return $this;
229
    }
230
231
    /**
232
     * @return string
233
     */
234
    public function getCountry()
235
    {
236
        return $this->country;
237
    }
238
239
    /**
240
     * @param string $country
241
     *
242
     * @return Location
243
     */
244
    public function setCountry($country)
245
    {
246
        $this->country = $country;
247
248
        return $this;
249
    }
250
251
    /**
252
     * @return int
253
     */
254
    public function getPhone()
255
    {
256
        return $this->phone;
257
    }
258
259
    /**
260
     * @param int $phone
261
     *
262
     * @return Location
263
     */
264
    public function setPhone($phone)
265
    {
266
        $this->phone = $phone;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @return \DateTimeInterface
273
     */
274
    public function getCreatedAt()
275
    {
276
        return $this->createdAt;
277
    }
278
279
    /**
280
     * @param \DateTimeInterface $createdAt
281
     *
282
     * @return Location
283
     */
284
    public function setCreatedAt($createdAt)
285
    {
286
        $this->createdAt = $createdAt;
287
288
        return $this;
289
    }
290
291
    /**
292
     * @return \DateTimeInterface
293
     */
294
    public function getUpdatedAt()
295
    {
296
        return $this->updatedAt;
297
    }
298
299
    /**
300
     * @param \DateTimeInterface $updatedAt
301
     *
302
     * @return Location
303
     */
304
    public function setUpdatedAt($updatedAt)
305
    {
306
        $this->updatedAt = $updatedAt;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @return string
313
     */
314
    public function getCountryCode()
315
    {
316
        return $this->countryCode;
317
    }
318
319
    /**
320
     * @param string $countryCode
321
     *
322
     * @return Location
323
     */
324
    public function setCountryCode($countryCode)
325
    {
326
        $this->countryCode = $countryCode;
327
328
        return $this;
329
    }
330
331
    /**
332
     * @return string
333
     */
334
    public function getCountryName()
335
    {
336
        return $this->countryName;
337
    }
338
339
    /**
340
     * @param string $countryName
341
     *
342
     * @return Location
343
     */
344
    public function setCountryName($countryName)
345
    {
346
        $this->countryName = $countryName;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @return string
353
     */
354
    public function getProvinceCode()
355
    {
356
        return $this->provinceCode;
357
    }
358
359
    /**
360
     * @param string $provinceCode
361
     *
362
     * @return Location
363
     */
364
    public function setProvinceCode($provinceCode)
365
    {
366
        $this->provinceCode = $provinceCode;
367
368
        return $this;
369
    }
370
}