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\Province; |
13
|
|
|
|
14
|
|
|
use Slince\Shopify\Common\Model\Model; |
15
|
|
|
|
16
|
|
|
class Province extends Model |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $countryId; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string |
25
|
|
|
*/ |
26
|
|
|
protected $name; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
protected $code; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var float |
35
|
|
|
*/ |
36
|
|
|
protected $tax; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $taxName; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
protected $taxType; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var int |
50
|
|
|
*/ |
51
|
|
|
protected $shippingZoneId; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var float |
55
|
|
|
*/ |
56
|
|
|
protected $taxPercentage; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @return int |
60
|
|
|
*/ |
61
|
|
|
public function getCountryId() |
62
|
|
|
{ |
63
|
|
|
return $this->countryId; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @param int $countryId |
68
|
|
|
* |
69
|
|
|
* @return Province |
70
|
|
|
*/ |
71
|
|
|
public function setCountryId($countryId) |
72
|
|
|
{ |
73
|
|
|
$this->countryId = $countryId; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return string |
80
|
|
|
*/ |
81
|
|
|
public function getName() |
82
|
|
|
{ |
83
|
|
|
return $this->name; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param string $name |
88
|
|
|
* |
89
|
|
|
* @return Province |
90
|
|
|
*/ |
91
|
|
|
public function setName($name) |
92
|
|
|
{ |
93
|
|
|
$this->name = $name; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return string |
100
|
|
|
*/ |
101
|
|
|
public function getCode() |
102
|
|
|
{ |
103
|
|
|
return $this->code; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @param string $code |
108
|
|
|
* |
109
|
|
|
* @return Province |
110
|
|
|
*/ |
111
|
|
|
public function setCode($code) |
112
|
|
|
{ |
113
|
|
|
$this->code = $code; |
114
|
|
|
|
115
|
|
|
return $this; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return float |
120
|
|
|
*/ |
121
|
|
|
public function getTax() |
122
|
|
|
{ |
123
|
|
|
return $this->tax; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @param float $tax |
128
|
|
|
* |
129
|
|
|
* @return Province |
130
|
|
|
*/ |
131
|
|
|
public function setTax($tax) |
132
|
|
|
{ |
133
|
|
|
$this->tax = $tax; |
134
|
|
|
|
135
|
|
|
return $this; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return string |
140
|
|
|
*/ |
141
|
|
|
public function getTaxName() |
142
|
|
|
{ |
143
|
|
|
return $this->taxName; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string $taxName |
148
|
|
|
* |
149
|
|
|
* @return Province |
150
|
|
|
*/ |
151
|
|
|
public function setTaxName($taxName) |
152
|
|
|
{ |
153
|
|
|
$this->taxName = $taxName; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return string |
160
|
|
|
*/ |
161
|
|
|
public function getTaxType() |
162
|
|
|
{ |
163
|
|
|
return $this->taxType; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* @param string $taxType |
168
|
|
|
* |
169
|
|
|
* @return Province |
170
|
|
|
*/ |
171
|
|
|
public function setTaxType($taxType) |
172
|
|
|
{ |
173
|
|
|
$this->taxType = $taxType; |
174
|
|
|
|
175
|
|
|
return $this; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @return int |
180
|
|
|
*/ |
181
|
|
|
public function getShippingZoneId() |
182
|
|
|
{ |
183
|
|
|
return $this->shippingZoneId; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @param int $shippingZoneId |
188
|
|
|
* |
189
|
|
|
* @return Province |
190
|
|
|
*/ |
191
|
|
|
public function setShippingZoneId($shippingZoneId) |
192
|
|
|
{ |
193
|
|
|
$this->shippingZoneId = $shippingZoneId; |
194
|
|
|
|
195
|
|
|
return $this; |
196
|
|
|
} |
197
|
|
|
|
198
|
|
|
/** |
199
|
|
|
* @return float |
200
|
|
|
*/ |
201
|
|
|
public function getTaxPercentage() |
202
|
|
|
{ |
203
|
|
|
return $this->taxPercentage; |
204
|
|
|
} |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @param float $taxPercentage |
208
|
|
|
* |
209
|
|
|
* @return Province |
210
|
|
|
*/ |
211
|
|
|
public function setTaxPercentage($taxPercentage) |
212
|
|
|
{ |
213
|
|
|
$this->taxPercentage = $taxPercentage; |
214
|
|
|
|
215
|
|
|
return $this; |
216
|
|
|
} |
217
|
|
|
} |