ShippingTemplateEntity.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. namespace app\entity\data\shipping;
  3. use app\entity\data\DataEntity;
  4. class ShippingTemplateEntity extends DataEntity
  5. {
  6. public $shippingTemplateId = 0; // 编号
  7. public $name = ''; // 模板名称
  8. public $type = 1; // 计费方式 0=数量 1=重量 2=体积
  9. public $appoint = 0; // 开启指定包邮
  10. public $undelivery = 0; // 开启指定区域不配送
  11. public $merId = 0; // 商户 id
  12. public $isDefault = 0; // 默认模板
  13. public $sort = 0; // 排序
  14. public $createTime = null; // 添加时间
  15. /**
  16. * @return int
  17. */
  18. public function getShippingTemplateId(): int
  19. {
  20. return $this->shippingTemplateId;
  21. }
  22. /**
  23. * @param int $shippingTemplateId
  24. * @return ShippingTemplateEntity
  25. */
  26. public function setShippingTemplateId(int $shippingTemplateId): ShippingTemplateEntity
  27. {
  28. $this->shippingTemplateId = $shippingTemplateId;
  29. return $this;
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getName(): string
  35. {
  36. return $this->name;
  37. }
  38. /**
  39. * @param string $name
  40. * @return ShippingTemplateEntity
  41. */
  42. public function setName(string $name): ShippingTemplateEntity
  43. {
  44. $this->name = $name;
  45. return $this;
  46. }
  47. /**
  48. * @return int
  49. */
  50. public function getType(): int
  51. {
  52. return $this->type;
  53. }
  54. /**
  55. * @param int $type
  56. * @return ShippingTemplateEntity
  57. */
  58. public function setType(int $type): ShippingTemplateEntity
  59. {
  60. $this->type = $type;
  61. return $this;
  62. }
  63. /**
  64. * @return int
  65. */
  66. public function getAppoint(): int
  67. {
  68. return $this->appoint;
  69. }
  70. /**
  71. * @param int $appoint
  72. * @return ShippingTemplateEntity
  73. */
  74. public function setAppoint(int $appoint): ShippingTemplateEntity
  75. {
  76. $this->appoint = $appoint;
  77. return $this;
  78. }
  79. /**
  80. * @return int
  81. */
  82. public function getUndelivery(): int
  83. {
  84. return $this->undelivery;
  85. }
  86. /**
  87. * @param int $undelivery
  88. * @return ShippingTemplateEntity
  89. */
  90. public function setUndelivery(int $undelivery): ShippingTemplateEntity
  91. {
  92. $this->undelivery = $undelivery;
  93. return $this;
  94. }
  95. /**
  96. * @return int
  97. */
  98. public function getMerId(): int
  99. {
  100. return $this->merId;
  101. }
  102. /**
  103. * @param int $merId
  104. * @return ShippingTemplateEntity
  105. */
  106. public function setMerId(int $merId): ShippingTemplateEntity
  107. {
  108. $this->merId = $merId;
  109. return $this;
  110. }
  111. /**
  112. * @return int
  113. */
  114. public function getIsDefault(): int
  115. {
  116. return $this->isDefault;
  117. }
  118. /**
  119. * @param int $isDefault
  120. * @return ShippingTemplateEntity
  121. */
  122. public function setIsDefault(int $isDefault): ShippingTemplateEntity
  123. {
  124. $this->isDefault = $isDefault;
  125. return $this;
  126. }
  127. /**
  128. * @return int
  129. */
  130. public function getSort(): int
  131. {
  132. return $this->sort;
  133. }
  134. /**
  135. * @param int $sort
  136. * @return ShippingTemplateEntity
  137. */
  138. public function setSort(int $sort): ShippingTemplateEntity
  139. {
  140. $this->sort = $sort;
  141. return $this;
  142. }
  143. /**
  144. * @return null
  145. */
  146. public function getCreateTime()
  147. {
  148. return $this->createTime;
  149. }
  150. /**
  151. * @param null $createTime
  152. * @return ShippingTemplateEntity
  153. */
  154. public function setCreateTime($createTime)
  155. {
  156. $this->createTime = $createTime;
  157. return $this;
  158. }
  159. }