StoreConfigInterface.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Store\Api\Data;
  7. /**
  8. * StoreConfig interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface StoreConfigInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  14. {
  15. /**
  16. * Get store id
  17. *
  18. * @return int
  19. */
  20. public function getId();
  21. /**
  22. * Set store id
  23. *
  24. * @param int $id
  25. * @return $this
  26. */
  27. public function setId($id);
  28. /**
  29. * Get store code
  30. *
  31. * @return string
  32. */
  33. public function getCode();
  34. /**
  35. * Set store code
  36. *
  37. * @param string $code
  38. * @return $this
  39. */
  40. public function setCode($code);
  41. /**
  42. * Get website id of the store
  43. *
  44. * @return int
  45. */
  46. public function getWebsiteId();
  47. /**
  48. * Set website id
  49. *
  50. * @param int $websiteId
  51. * @return $this
  52. */
  53. public function setWebsiteId($websiteId);
  54. /**
  55. * Get store locale
  56. *
  57. * @return string
  58. */
  59. public function getLocale();
  60. /**
  61. * Set store locale
  62. *
  63. * @param string $locale
  64. * @return $this
  65. */
  66. public function setLocale($locale);
  67. /**
  68. * Get base currency code
  69. *
  70. * @return string
  71. */
  72. public function getBaseCurrencyCode();
  73. /**
  74. * Set base currency code
  75. *
  76. * @param string $baseCurrencyCode
  77. * @return $this
  78. */
  79. public function setBaseCurrencyCode($baseCurrencyCode);
  80. /**
  81. * Get default display currency code
  82. *
  83. * @return string
  84. */
  85. public function getDefaultDisplayCurrencyCode();
  86. /**
  87. * Set default display currency code
  88. *
  89. * @param string $defaultDisplayCurrencyCode
  90. * @return $this
  91. */
  92. public function setDefaultDisplayCurrencyCode($defaultDisplayCurrencyCode);
  93. /**
  94. * Get timezone of the store
  95. *
  96. * @return string
  97. */
  98. public function getTimezone();
  99. /**
  100. * Set timezone of the store
  101. *
  102. * @param string $timezone
  103. * @return $this
  104. */
  105. public function setTimezone($timezone);
  106. /**
  107. * Return the unit of weight
  108. *
  109. * @return string
  110. */
  111. public function getWeightUnit();
  112. /**
  113. * Set the unit of weight
  114. *
  115. * @param string $weightUnit
  116. * @return $this
  117. */
  118. public function setWeightUnit($weightUnit);
  119. /**
  120. * Get base URL for the store
  121. *
  122. * @return string
  123. */
  124. public function getBaseUrl();
  125. /**
  126. * set base URL
  127. *
  128. * @param string $baseUrl
  129. * @return $this
  130. */
  131. public function setBaseUrl($baseUrl);
  132. /**
  133. * Get base link URL for the store
  134. *
  135. * @return string
  136. */
  137. public function getBaseLinkUrl();
  138. /**
  139. * Set base link URL for the store
  140. *
  141. * @param string $baseLinkUrl
  142. * @return $this
  143. */
  144. public function setBaseLinkUrl($baseLinkUrl);
  145. /**
  146. * Get base static URL for the store
  147. *
  148. * @return string
  149. */
  150. public function getBaseStaticUrl();
  151. /**
  152. * Set base static URL for the store
  153. *
  154. * @param string $baseStaticUrl
  155. * @return $this
  156. */
  157. public function setBaseStaticUrl($baseStaticUrl);
  158. /**
  159. * Get base media URL for the store
  160. *
  161. * @return string
  162. */
  163. public function getBaseMediaUrl();
  164. /**
  165. * Set base media URL for the store
  166. *
  167. * @param string $baseMediaUrl
  168. * @return $this
  169. */
  170. public function setBaseMediaUrl($baseMediaUrl);
  171. /**
  172. * Get secure base URL for the store
  173. *
  174. * @return string
  175. */
  176. public function getSecureBaseUrl();
  177. /**
  178. * set secure base URL
  179. *
  180. * @param string $secureBaseUrl
  181. * @return $this
  182. */
  183. public function setSecureBaseUrl($secureBaseUrl);
  184. /**
  185. * Get secure base link URL for the store
  186. *
  187. * @return string
  188. */
  189. public function getSecureBaseLinkUrl();
  190. /**
  191. * Set secure base link URL for the store
  192. *
  193. * @param string $secureBaseLinkUrl
  194. * @return $this
  195. */
  196. public function setSecureBaseLinkUrl($secureBaseLinkUrl);
  197. /**
  198. * Get secure base static URL for the store
  199. *
  200. * @return string
  201. */
  202. public function getSecureBaseStaticUrl();
  203. /**
  204. * Set secure base static URL for the store
  205. *
  206. * @param string $secureBaseStaticUrl
  207. * @return $this
  208. */
  209. public function setSecureBaseStaticUrl($secureBaseStaticUrl);
  210. /**
  211. * Get secure base media URL for the store
  212. *
  213. * @return string
  214. */
  215. public function getSecureBaseMediaUrl();
  216. /**
  217. * Set secure base media URL for the store
  218. *
  219. * @param string $secureBaseMediaUrl
  220. * @return $this
  221. */
  222. public function setSecureBaseMediaUrl($secureBaseMediaUrl);
  223. /**
  224. * Retrieve existing extension attributes object or create a new one.
  225. *
  226. * @return \Magento\Store\Api\Data\StoreConfigExtensionInterface|null
  227. */
  228. public function getExtensionAttributes();
  229. /**
  230. * Set an extension attributes object.
  231. *
  232. * @param \Magento\Store\Api\Data\StoreConfigExtensionInterface $extensionAttributes
  233. * @return $this
  234. */
  235. public function setExtensionAttributes(
  236. \Magento\Store\Api\Data\StoreConfigExtensionInterface $extensionAttributes
  237. );
  238. }