Completed
Push — master ( 8e28ab...2236d8 )
by Taosikai
15:04
created

AddressTrait::getCountryCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Taosikai <[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
    /**
88
     * @return string
89
     */
90
    public function getFirstName()
91
    {
92
        return $this->firstName;
93
    }
94
95
    /**
96
     * @param string $firstName
97
     *
98
     * @return self
99
     */
100
    public function setFirstName($firstName)
101
    {
102
        $this->firstName = $firstName;
103
104
        return $this;
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getLastName()
111
    {
112
        return $this->lastName;
113
    }
114
115
    /**
116
     * @param string $lastName
117
     *
118
     * @return self
119
     */
120
    public function setLastName($lastName)
121
    {
122
        $this->lastName = $lastName;
123
124
        return $this;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getCompany()
131
    {
132
        return $this->company;
133
    }
134
135
    /**
136
     * @param string $company
137
     *
138
     * @return self
139
     */
140
    public function setCompany($company)
141
    {
142
        $this->company = $company;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getAddress1()
151
    {
152
        return $this->address1;
153
    }
154
155
    /**
156
     * @param string $address1
157
     *
158
     * @return self
159
     */
160
    public function setAddress1($address1)
161
    {
162
        $this->address1 = $address1;
163
164
        return $this;
165
    }
166
167
    /**
168
     * @return string
169
     */
170
    public function getAddress2()
171
    {
172
        return $this->address2;
173
    }
174
175
    /**
176
     * @param string $address2
177
     *
178
     * @return self
179
     */
180
    public function setAddress2($address2)
181
    {
182
        $this->address2 = $address2;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @return string
189
     */
190
    public function getCity()
191
    {
192
        return $this->city;
193
    }
194
195
    /**
196
     * @param string $city
197
     *
198
     * @return self
199
     */
200
    public function setCity($city)
201
    {
202
        $this->city = $city;
203
204
        return $this;
205
    }
206
207
    /**
208
     * @return string
209
     */
210
    public function getProvince()
211
    {
212
        return $this->province;
213
    }
214
215
    /**
216
     * @param string $province
217
     *
218
     * @return self
219
     */
220
    public function setProvince($province)
221
    {
222
        $this->province = $province;
223
224
        return $this;
225
    }
226
227
    /**
228
     * @return string
229
     */
230
    public function getCountry()
231
    {
232
        return $this->country;
233
    }
234
235
    /**
236
     * @param string $country
237
     *
238
     * @return self
239
     */
240
    public function setCountry($country)
241
    {
242
        $this->country = $country;
243
244
        return $this;
245
    }
246
247
    /**
248
     * @return string
249
     */
250
    public function getZip()
251
    {
252
        return $this->zip;
253
    }
254
255
    /**
256
     * @param string $zip
257
     *
258
     * @return self
259
     */
260
    public function setZip($zip)
261
    {
262
        $this->zip = $zip;
263
264
        return $this;
265
    }
266
267
    /**
268
     * @return string
269
     */
270
    public function getPhone()
271
    {
272
        return $this->phone;
273
    }
274
275
    /**
276
     * @param string $phone
277
     *
278
     * @return self
279
     */
280
    public function setPhone($phone)
281
    {
282
        $this->phone = $phone;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @return string
289
     */
290
    public function getName()
291
    {
292
        return $this->name;
293
    }
294
295
    /**
296
     * @param string $name
297
     *
298
     * @return self
299
     */
300
    public function setName($name)
301
    {
302
        $this->name = $name;
303
304
        return $this;
305
    }
306
307
    /**
308
     * @return string
309
     */
310
    public function getProvinceCode()
311
    {
312
        return $this->provinceCode;
313
    }
314
315
    /**
316
     * @param string $provinceCode
317
     *
318
     * @return self
319
     */
320
    public function setProvinceCode($provinceCode)
321
    {
322
        $this->provinceCode = $provinceCode;
323
324
        return $this;
325
    }
326
327
    /**
328
     * @return string
329
     */
330
    public function getCountryCode()
331
    {
332
        return $this->countryCode;
333
    }
334
335
    /**
336
     * @param string $countryCode
337
     *
338
     * @return self
339
     */
340
    public function setCountryCode($countryCode)
341
    {
342
        $this->countryCode = $countryCode;
343
344
        return $this;
345
    }
346
347
    /**
348
     * @return string
349
     */
350
    public function getCountryName()
351
    {
352
        return $this->countryName;
353
    }
354
355
    /**
356
     * @param string $countryName
357
     *
358
     * @return self
359
     */
360
    public function setCountryName($countryName)
361
    {
362
        $this->countryName = $countryName;
363
364
        return $this;
365
    }
366
}