/system/app/Store/Model/CartSessionOption.php

https://github.com/seosamba/ecommerce · PHP · 325 lines · 153 code · 63 blank · 109 comment · 0 complexity · 1e6bafc65eaa79a017555e22d2b6777b MD5 · raw file

  1. <?php
  2. /**
  3. *
  4. *
  5. */
  6. class Store_Model_CartSessionOption extends Application_Model_Models_Abstract {
  7. protected $_cartId = '';
  8. protected $_productId = '';
  9. protected $_optionId = '';
  10. protected $_optionTitle = '';
  11. protected $_optionType = '';
  12. protected $_title = '';
  13. protected $_priceSign = '';
  14. protected $_priceValue = '';
  15. protected $_priceType = '';
  16. protected $_weightSign = '';
  17. protected $_weightValue = '';
  18. protected $_cartContentId = '';
  19. protected $_cartItemKey = '';
  20. protected $_cartItemOptionKey = '';
  21. protected $_optionSelectionId = '';
  22. /**
  23. * @return string
  24. */
  25. public function getCartId()
  26. {
  27. return $this->_cartId;
  28. }
  29. /**
  30. * @param string $cartId
  31. * @return string
  32. */
  33. public function setCartId($cartId)
  34. {
  35. $this->_cartId = $cartId;
  36. return $this;
  37. }
  38. /**
  39. * @return string
  40. */
  41. public function getProductId()
  42. {
  43. return $this->_productId;
  44. }
  45. /**
  46. * @param string $productId
  47. * @return string
  48. */
  49. public function setProductId($productId)
  50. {
  51. $this->_productId = $productId;
  52. return $this;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getOptionId()
  58. {
  59. return $this->_optionId;
  60. }
  61. /**
  62. * @param string $optionId
  63. * @return string
  64. */
  65. public function setOptionId($optionId)
  66. {
  67. $this->_optionId = $optionId;
  68. return $this;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getOptionTitle()
  74. {
  75. return $this->_optionTitle;
  76. }
  77. /**
  78. * @param string $optionTitle
  79. * @return string
  80. */
  81. public function setOptionTitle($optionTitle)
  82. {
  83. $this->_optionTitle = $optionTitle;
  84. return $this;
  85. }
  86. /**
  87. * @return string
  88. */
  89. public function getOptionType()
  90. {
  91. return $this->_optionType;
  92. }
  93. /**
  94. * @param string $optionType
  95. * @return string
  96. */
  97. public function setOptionType($optionType)
  98. {
  99. $this->_optionType = $optionType;
  100. return $this;
  101. }
  102. /**
  103. * @return string
  104. */
  105. public function getTitle()
  106. {
  107. return $this->_title;
  108. }
  109. /**
  110. * @param string $title
  111. * @return string
  112. */
  113. public function setTitle($title)
  114. {
  115. $this->_title = $title;
  116. return $this;
  117. }
  118. /**
  119. * @return string
  120. */
  121. public function getPriceSign()
  122. {
  123. return $this->_priceSign;
  124. }
  125. /**
  126. * @param string $priceSign
  127. * @return string
  128. */
  129. public function setPriceSign($priceSign)
  130. {
  131. $this->_priceSign = $priceSign;
  132. return $this;
  133. }
  134. /**
  135. * @return string
  136. */
  137. public function getPriceValue()
  138. {
  139. return $this->_priceValue;
  140. }
  141. /**
  142. * @param string $priceValue
  143. * @return string
  144. */
  145. public function setPriceValue($priceValue)
  146. {
  147. $this->_priceValue = $priceValue;
  148. return $this;
  149. }
  150. /**
  151. * @return string
  152. */
  153. public function getPriceType()
  154. {
  155. return $this->_priceType;
  156. }
  157. /**
  158. * @param string $priceType
  159. * @return string
  160. */
  161. public function setPriceType($priceType)
  162. {
  163. $this->_priceType = $priceType;
  164. return $this;
  165. }
  166. /**
  167. * @return string
  168. */
  169. public function getWeightSign()
  170. {
  171. return $this->_weightSign;
  172. }
  173. /**
  174. * @param string $weightSign
  175. * @return string
  176. */
  177. public function setWeightSign($weightSign)
  178. {
  179. $this->_weightSign = $weightSign;
  180. return $this;
  181. }
  182. /**
  183. * @return string
  184. */
  185. public function getWeightValue()
  186. {
  187. return $this->_weightValue;
  188. }
  189. /**
  190. * @param string $weightValue
  191. * @return string
  192. */
  193. public function setWeightValue($weightValue)
  194. {
  195. $this->_weightValue = $weightValue;
  196. return $this;
  197. }
  198. /**
  199. * @return string
  200. */
  201. public function getCartContentId()
  202. {
  203. return $this->_cartContentId;
  204. }
  205. /**
  206. * @param string $cartContentId
  207. * @return string
  208. */
  209. public function setCartContentId($cartContentId)
  210. {
  211. $this->_cartContentId = $cartContentId;
  212. return $this;
  213. }
  214. /**
  215. * @return string
  216. */
  217. public function getCartItemKey()
  218. {
  219. return $this->_cartItemKey;
  220. }
  221. /**
  222. * @param string $cartItemKey
  223. * @return string
  224. */
  225. public function setCartItemKey($cartItemKey)
  226. {
  227. $this->_cartItemKey = $cartItemKey;
  228. return $this;
  229. }
  230. /**
  231. * @return string
  232. */
  233. public function getCartItemOptionKey()
  234. {
  235. return $this->_cartItemOptionKey;
  236. }
  237. /**
  238. * @param string $cartItemOptionKey
  239. * @return string
  240. */
  241. public function setCartItemOptionKey($cartItemOptionKey)
  242. {
  243. $this->_cartItemOptionKey = $cartItemOptionKey;
  244. return $this;
  245. }
  246. /**
  247. * @return string
  248. */
  249. public function getOptionSelectionId()
  250. {
  251. return $this->_optionSelectionId;
  252. }
  253. /**
  254. * @param string $optionSelectionId
  255. * @return string
  256. */
  257. public function setOptionSelectionId($optionSelectionId)
  258. {
  259. $this->_optionSelectionId = $optionSelectionId;
  260. return $this;
  261. }
  262. }