1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Store\Model\Data;
/**
* Class StoreConfig
*
* @codeCoverageIgnore
*/
class StoreConfig extends \Magento\Framework\Api\AbstractExtensibleObject implements
\Magento\Store\Api\Data\StoreConfigInterface
{
const KEY_ID = 'id';
const KEY_CODE = 'code';
const KEY_WEBSITE_ID = 'website_id';
const KEY_LOCALE = 'locale';
const KEY_BASE_CURRENCY_CODE = 'base_currency_code';
const KEY_DEFAULT_DISPLAY_CURRENCY_CODE = 'default_display_currency_code';
const KEY_TIMEZONE = 'timezone';
const KEY_WEIGHT_UNIT = 'weight_unit';
const KEY_BASE_URL = 'base_url';
const KEY_BASE_LINK_URL = 'base_link_url';
const KEY_BASE_STATIC_URL = 'base_static_url';
const KEY_BASE_MEDIA_URL = 'base_media_url';
const KEY_SECURE_BASE_URL = 'secure_base_url';
const KEY_SECURE_BASE_LINK_URL = 'secure_base_link_url';
const KEY_SECURE_BASE_STATIC_URL = 'secure_base_static_url';
const KEY_SECURE_BASE_MEDIA_URL = 'secure_base_media_url';
/**
* Get store id
*
* @return int
*/
public function getId()
{
return $this->_get(self::KEY_ID);
}
/**
* Set store id
*
* @param int $id
* @return $this
*/
public function setId($id)
{
return $this->setData(self::KEY_ID, $id);
}
/**
* Get store code
*
* @return string
*/
public function getCode()
{
return $this->_get(self::KEY_CODE);
}
/**
* Set store code
*
* @param string $code
* @return $this
*/
public function setCode($code)
{
return $this->setData(self::KEY_CODE, $code);
}
/**
* Get website id of the store
*
* @return int
*/
public function getWebsiteId()
{
return $this->_get(self::KEY_WEBSITE_ID);
}
/**
* Set website id
*
* @param int $websiteId
* @return $this
*/
public function setWebsiteId($websiteId)
{
return $this->setData(self::KEY_WEBSITE_ID, $websiteId);
}
/**
* Get store locale
*
* @return string
*/
public function getLocale()
{
return $this->_get(self::KEY_LOCALE);
}
/**
* Set store locale
*
* @param string $locale
* @return $this
*/
public function setLocale($locale)
{
return $this->setData(self::KEY_LOCALE, $locale);
}
/**
* Get base currency code
*
* @return string
*/
public function getBaseCurrencyCode()
{
return $this->_get(self::KEY_BASE_CURRENCY_CODE);
}
/**
* Set base currency code
*
* @param string $baseCurrencyCode
* @return $this
*/
public function setBaseCurrencyCode($baseCurrencyCode)
{
return $this->setData(self::KEY_BASE_CURRENCY_CODE, $baseCurrencyCode);
}
/**
* Get default display currency code
*
* @return string
*/
public function getDefaultDisplayCurrencyCode()
{
return $this->_get(self::KEY_DEFAULT_DISPLAY_CURRENCY_CODE);
}
/**
* Set default display currency code
*
* @param string $defaultDisplayCurrencyCode
* @return $this
*/
public function setDefaultDisplayCurrencyCode($defaultDisplayCurrencyCode)
{
return $this->setData(self::KEY_DEFAULT_DISPLAY_CURRENCY_CODE, $defaultDisplayCurrencyCode);
}
/**
* Return the unit of weight
*
* @return string
*/
public function getWeightUnit()
{
return $this->_get(self::KEY_WEIGHT_UNIT);
}
/**
* Set the unit of weight
*
* @param string $weightUnit
* @return $this
*/
public function setWeightUnit($weightUnit)
{
return $this->setData(self::KEY_WEIGHT_UNIT, $weightUnit);
}
/**
* Get base URL for the store
*
* @return string
*/
public function getBaseUrl()
{
return $this->_get(self::KEY_BASE_URL);
}
/**
* set base URL
*
* @param string $baseUrl
* @return $this
*/
public function setBaseUrl($baseUrl)
{
return $this->setData(self::KEY_BASE_URL, $baseUrl);
}
/**
* Get base link URL for the store
*
* @return string
*/
public function getBaseLinkUrl()
{
return $this->_get(self::KEY_BASE_LINK_URL);
}
/**
* Get base link URL for the store
*
* @param string $baseLinkUrl
* @return $this
*/
public function setBaseLinkUrl($baseLinkUrl)
{
return $this->setData(self::KEY_BASE_LINK_URL, $baseLinkUrl);
}
/**
* Get timezone of the store
*
* @return string
*/
public function getTimezone()
{
return $this->_get(self::KEY_TIMEZONE);
}
/**
* Set timezone of the store
*
* @param string $timezone
* @return $this
*/
public function setTimezone($timezone)
{
return $this->setData(self::KEY_TIMEZONE, $timezone);
}
/**
* Get base static URL for the store
*
* @return string
*/
public function getBaseStaticUrl()
{
return $this->_get(self::KEY_BASE_STATIC_URL);
}
/**
* Set base static URL for the store
*
* @param string $baseStaticUrl
* @return $this
*/
public function setBaseStaticUrl($baseStaticUrl)
{
return $this->setData(self::KEY_BASE_STATIC_URL, $baseStaticUrl);
}
/**
* Get base media URL for the store
*
* @return string
*/
public function getBaseMediaUrl()
{
return $this->_get(self::KEY_BASE_MEDIA_URL);
}
/**
* Set base media URL for the store
*
* @param string $baseMediaUrl
* @return $this
*/
public function setBaseMediaUrl($baseMediaUrl)
{
return $this->setData(self::KEY_BASE_MEDIA_URL, $baseMediaUrl);
}
/**
* Get secure base URL for the store
*
* @return string
*/
public function getSecureBaseUrl()
{
return $this->_get(self::KEY_SECURE_BASE_URL);
}
/**
* set secure base URL
*
* @param string $secureBaseUrl
* @return $this
*/
public function setSecureBaseUrl($secureBaseUrl)
{
return $this->setData(self::KEY_SECURE_BASE_URL, $secureBaseUrl);
}
/**
* Get secure base link URL for the store
*
* @return string
*/
public function getSecureBaseLinkUrl()
{
return $this->_get(self::KEY_SECURE_BASE_LINK_URL);
}
/**
* Set secure base link URL for the store
*
* @param string $secureBaseLinkUrl
* @return $this
*/
public function setSecureBaseLinkUrl($secureBaseLinkUrl)
{
return $this->setData(self::KEY_SECURE_BASE_LINK_URL, $secureBaseLinkUrl);
}
/**
* Get secure base static URL for the store
*
* @return string
*/
public function getSecureBaseStaticUrl()
{
return $this->_get(self::KEY_SECURE_BASE_STATIC_URL);
}
/**
* Set secure base static URL for the store
*
* @param string $secureBaseStaticUrl
* @return $this
*/
public function setSecureBaseStaticUrl($secureBaseStaticUrl)
{
return $this->setData(self::KEY_SECURE_BASE_STATIC_URL, $secureBaseStaticUrl);
}
/**
* Get secure base media URL for the store
*
* @return string
*/
public function getSecureBaseMediaUrl()
{
return $this->_get(self::KEY_SECURE_BASE_MEDIA_URL);
}
/**
* Set secure base media URL for the store
*
* @param string $secureBaseMediaUrl
* @return $this
*/
public function setSecureBaseMediaUrl($secureBaseMediaUrl)
{
return $this->setData(self::KEY_SECURE_BASE_MEDIA_URL, $secureBaseMediaUrl);
}
/**
* {@inheritdoc}
*
* @return \Magento\Store\Api\Data\StoreConfigExtensionInterface|null
*/
public function getExtensionAttributes()
{
return $this->_getExtensionAttributes();
}
/**
* {@inheritdoc}
*
* @param \Magento\Store\Api\Data\StoreConfigExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(
\Magento\Store\Api\Data\StoreConfigExtensionInterface $extensionAttributes
) {
return $this->_setExtensionAttributes($extensionAttributes);
}
}