ThirdPartyGoodCacheEntity.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. namespace app\entity\data\third;
  3. use app\entity\data\DataEntity;
  4. class ThirdPartyGoodCacheEntity extends DataEntity
  5. {
  6. public $productId = null; // 商品ID
  7. public $platform = null; // 所属平台前缀
  8. public $extraContent = null; // 扩展信息
  9. public $createTime = null; // 添加时间
  10. public $updateTime = null; // 更新时间
  11. /**
  12. * @return mixed
  13. */
  14. public function getProductId()
  15. {
  16. return $this->productId;
  17. }
  18. /**
  19. * @param mixed $productId
  20. * @return ThirdPartyGoodCacheEntity
  21. */
  22. public function setProductId($productId): ThirdPartyGoodCacheEntity
  23. {
  24. $this->productId = $productId;
  25. return $this;
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function getPlatform()
  31. {
  32. return $this->platform;
  33. }
  34. /**
  35. * @param mixed $platform
  36. * @return ThirdPartyGoodCacheEntity
  37. */
  38. public function setPlatform($platform): ThirdPartyGoodCacheEntity
  39. {
  40. $this->platform = $platform;
  41. return $this;
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function getExtraContent()
  47. {
  48. return $this->extraContent;
  49. }
  50. /**
  51. * @param mixed $extraContent
  52. * @return ThirdPartyGoodCacheEntity
  53. */
  54. public function setExtraContent($extraContent): ThirdPartyGoodCacheEntity
  55. {
  56. if (is_array($extraContent)) {
  57. $extraContent = json_encode($extraContent, JSON_UNESCAPED_UNICODE);
  58. }
  59. $this->extraContent = $extraContent;
  60. return $this;
  61. }
  62. /**
  63. * @return mixed
  64. */
  65. public function getCreateTime()
  66. {
  67. return $this->createTime;
  68. }
  69. /**
  70. * @param mixed $createTime
  71. * @return ThirdPartyGoodCacheEntity
  72. */
  73. public function setCreateTime($createTime): ThirdPartyGoodCacheEntity
  74. {
  75. $this->createTime = $createTime;
  76. return $this;
  77. }
  78. /**
  79. * @return mixed
  80. */
  81. public function getUpdateTime()
  82. {
  83. return $this->updateTime;
  84. }
  85. /**
  86. * @param mixed $updateTime
  87. * @return ThirdPartyGoodCacheEntity
  88. */
  89. public function setUpdateTime($updateTime): ThirdPartyGoodCacheEntity
  90. {
  91. $this->updateTime = $updateTime;
  92. return $this;
  93. }
  94. }