UserSignVrEntity.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?php
  2. namespace app\entity\data\user;
  3. use app\entity\data\DataEntity;
  4. class UserSignVrEntity extends DataEntity
  5. {
  6. public $id = 0; // 自增id
  7. public $uid = 0; // 会员id
  8. public $number = 0.00; // 赠送数量
  9. public $mark = ''; // 备注
  10. public $desc = ''; // 描述
  11. public $orderId = ''; // 订单id
  12. public $surplus = 0.00; // 剩余
  13. public $orderType = ''; // 订单类型,关联订单ID
  14. public $type = 0; // vr类型:1兑换,2消耗
  15. public $settlementTime = null; // 结算时间
  16. public $addtime = 0; // 添加时间
  17. /**
  18. * @return int
  19. */
  20. public function getId(): int
  21. {
  22. return $this->id;
  23. }
  24. /**
  25. * @param int $id
  26. * @return UserSignVrEntity
  27. */
  28. public function setId(int $id): UserSignVrEntity
  29. {
  30. $this->id = $id;
  31. return $this;
  32. }
  33. /**
  34. * @return int
  35. */
  36. public function getUid(): int
  37. {
  38. return $this->uid;
  39. }
  40. /**
  41. * @param int $uid
  42. * @return UserSignVrEntity
  43. */
  44. public function setUid(int $uid): UserSignVrEntity
  45. {
  46. $this->uid = $uid;
  47. return $this;
  48. }
  49. /**
  50. * @return float
  51. */
  52. public function getNumber(): float
  53. {
  54. return $this->number;
  55. }
  56. /**
  57. * @param float $number
  58. * @return UserSignVrEntity
  59. */
  60. public function setNumber(float $number): UserSignVrEntity
  61. {
  62. $this->number = $number;
  63. return $this;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getMark(): string
  69. {
  70. return $this->mark;
  71. }
  72. /**
  73. * @param string $mark
  74. * @return UserSignVrEntity
  75. */
  76. public function setMark(string $mark): UserSignVrEntity
  77. {
  78. $this->mark = $mark;
  79. return $this;
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getDesc(): string
  85. {
  86. return $this->desc;
  87. }
  88. /**
  89. * @param string $desc
  90. * @return UserSignVrEntity
  91. */
  92. public function setDesc(string $desc): UserSignVrEntity
  93. {
  94. $this->desc = $desc;
  95. return $this;
  96. }
  97. /**
  98. * @return string
  99. */
  100. public function getOrderId(): string
  101. {
  102. return $this->orderId;
  103. }
  104. /**
  105. * @param string $orderId
  106. * @return UserSignVrEntity
  107. */
  108. public function setOrderId(string $orderId): UserSignVrEntity
  109. {
  110. $this->orderId = $orderId;
  111. return $this;
  112. }
  113. /**
  114. * @return float
  115. */
  116. public function getSurplus(): float
  117. {
  118. return $this->surplus;
  119. }
  120. /**
  121. * @param float $surplus
  122. * @return UserSignVrEntity
  123. */
  124. public function setSurplus(float $surplus): UserSignVrEntity
  125. {
  126. $this->surplus = $surplus;
  127. return $this;
  128. }
  129. /**
  130. * @return string
  131. */
  132. public function getOrderType(): string
  133. {
  134. return $this->orderType;
  135. }
  136. /**
  137. * @param string $orderType
  138. * @return UserSignVrEntity
  139. */
  140. public function setOrderType(string $orderType): UserSignVrEntity
  141. {
  142. $this->orderType = $orderType;
  143. return $this;
  144. }
  145. /**
  146. * @return int
  147. */
  148. public function getType(): int
  149. {
  150. return $this->type;
  151. }
  152. /**
  153. * @param int $type
  154. * @return UserSignVrEntity
  155. */
  156. public function setType(int $type): UserSignVrEntity
  157. {
  158. $this->type = $type;
  159. return $this;
  160. }
  161. /**
  162. * @return null
  163. */
  164. public function getSettlementTime()
  165. {
  166. return $this->settlementTime;
  167. }
  168. /**
  169. * @param null $settlementTime
  170. * @return UserSignVrEntity
  171. */
  172. public function setSettlementTime($settlementTime)
  173. {
  174. $this->settlementTime = $settlementTime;
  175. return $this;
  176. }
  177. /**
  178. * @return int
  179. */
  180. public function getAddtime(): int
  181. {
  182. return $this->addtime;
  183. }
  184. /**
  185. * @param int $addtime
  186. * @return UserSignVrEntity
  187. */
  188. public function setAddtime(int $addtime): UserSignVrEntity
  189. {
  190. $this->addtime = $addtime;
  191. return $this;
  192. }
  193. }