AddressTrait::getCountryCode()   A
last analyzed

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