| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- namespace app\entity\data\third;
- use app\entity\data\DataEntity;
- class ThirdPartyGoodCacheEntity extends DataEntity
- {
- public $productId = null; // 商品ID
- public $platform = null; // 所属平台前缀
- public $extraContent = null; // 扩展信息
- public $createTime = null; // 添加时间
- public $updateTime = null; // 更新时间
- /**
- * @return mixed
- */
- public function getProductId()
- {
- return $this->productId;
- }
- /**
- * @param mixed $productId
- * @return ThirdPartyGoodCacheEntity
- */
- public function setProductId($productId): ThirdPartyGoodCacheEntity
- {
- $this->productId = $productId;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getPlatform()
- {
- return $this->platform;
- }
- /**
- * @param mixed $platform
- * @return ThirdPartyGoodCacheEntity
- */
- public function setPlatform($platform): ThirdPartyGoodCacheEntity
- {
- $this->platform = $platform;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getExtraContent()
- {
- return $this->extraContent;
- }
- /**
- * @param mixed $extraContent
- * @return ThirdPartyGoodCacheEntity
- */
- public function setExtraContent($extraContent): ThirdPartyGoodCacheEntity
- {
- if (is_array($extraContent)) {
- $extraContent = json_encode($extraContent, JSON_UNESCAPED_UNICODE);
- }
- $this->extraContent = $extraContent;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * @param mixed $createTime
- * @return ThirdPartyGoodCacheEntity
- */
- public function setCreateTime($createTime): ThirdPartyGoodCacheEntity
- {
- $this->createTime = $createTime;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getUpdateTime()
- {
- return $this->updateTime;
- }
- /**
- * @param mixed $updateTime
- * @return ThirdPartyGoodCacheEntity
- */
- public function setUpdateTime($updateTime): ThirdPartyGoodCacheEntity
- {
- $this->updateTime = $updateTime;
- return $this;
- }
- }
|