MerchantContributionEntity.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. namespace app\entity\data\merchant;
  3. use app\entity\data\DataEntity;
  4. class MerchantContributionEntity extends DataEntity
  5. {
  6. public $id = 0; // 自增id
  7. public $title = ''; // 名称
  8. public $start = 0; // 开始百分数
  9. public $end = 0; // 结束百分数
  10. public $type = '赠送'; // 类型
  11. public $jd = 0.00; // 京豆
  12. public $value = 0.00; // 贡献值
  13. public $createTime = 0; // 创建时间
  14. /**
  15. * @return int
  16. */
  17. public function getId(): int
  18. {
  19. return $this->id;
  20. }
  21. /**
  22. * @param int $id
  23. * @return MerchantContributionEntity
  24. */
  25. public function setId(int $id): MerchantContributionEntity
  26. {
  27. $this->id = $id;
  28. return $this;
  29. }
  30. /**
  31. * @return string
  32. */
  33. public function getTitle(): string
  34. {
  35. return $this->title;
  36. }
  37. /**
  38. * @param string $title
  39. * @return MerchantContributionEntity
  40. */
  41. public function setTitle(string $title): MerchantContributionEntity
  42. {
  43. $this->title = $title;
  44. return $this;
  45. }
  46. /**
  47. * @return int
  48. */
  49. public function getStart(): int
  50. {
  51. return $this->start;
  52. }
  53. /**
  54. * @param int $start
  55. * @return MerchantContributionEntity
  56. */
  57. public function setStart(int $start): MerchantContributionEntity
  58. {
  59. $this->start = $start;
  60. return $this;
  61. }
  62. /**
  63. * @return int
  64. */
  65. public function getEnd(): int
  66. {
  67. return $this->end;
  68. }
  69. /**
  70. * @param int $end
  71. * @return MerchantContributionEntity
  72. */
  73. public function setEnd(int $end): MerchantContributionEntity
  74. {
  75. $this->end = $end;
  76. return $this;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getType(): string
  82. {
  83. return $this->type;
  84. }
  85. /**
  86. * @param string $type
  87. * @return MerchantContributionEntity
  88. */
  89. public function setType(string $type): MerchantContributionEntity
  90. {
  91. $this->type = $type;
  92. return $this;
  93. }
  94. /**
  95. * @return float
  96. */
  97. public function getJd(): float
  98. {
  99. return $this->jd;
  100. }
  101. /**
  102. * @param float $jd
  103. * @return MerchantContributionEntity
  104. */
  105. public function setJd(float $jd): MerchantContributionEntity
  106. {
  107. $this->jd = $jd;
  108. return $this;
  109. }
  110. /**
  111. * @return float
  112. */
  113. public function getValue(): float
  114. {
  115. return $this->value;
  116. }
  117. /**
  118. * @param float $value
  119. * @return MerchantContributionEntity
  120. */
  121. public function setValue(float $value): MerchantContributionEntity
  122. {
  123. $this->value = $value;
  124. return $this;
  125. }
  126. /**
  127. * @return int
  128. */
  129. public function getCreateTime(): int
  130. {
  131. return $this->createTime;
  132. }
  133. /**
  134. * @param int $createTime
  135. * @return MerchantContributionEntity
  136. */
  137. public function setCreateTime(int $createTime): MerchantContributionEntity
  138. {
  139. $this->createTime = $createTime;
  140. return $this;
  141. }
  142. }