| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- namespace app\entity\data\shipping;
- use app\entity\data\DataEntity;
- class ShippingTemplateUndeliveryEntity extends DataEntity
- {
- public $shippingTemplateUndeliveryId = 0; // 编号
- public $tempId = 0; // 模板ID
- public $cityId = ''; // 城市ID /id/id/id/
- public $cityIdList = []; // 城市ID []
- /**
- * @return int
- */
- public function getShippingTemplateUndeliveryId(): int
- {
- return $this->shippingTemplateUndeliveryId;
- }
- /**
- * @param int $shippingTemplateUndeliveryId
- * @return ShippingTemplateUndeliveryEntity
- */
- public function setShippingTemplateUndeliveryId(int $shippingTemplateUndeliveryId): ShippingTemplateUndeliveryEntity
- {
- $this->shippingTemplateUndeliveryId = $shippingTemplateUndeliveryId;
- return $this;
- }
- /**
- * @return int
- */
- public function getTempId(): int
- {
- return $this->tempId;
- }
- /**
- * @param int $tempId
- * @return ShippingTemplateUndeliveryEntity
- */
- public function setTempId(int $tempId): ShippingTemplateUndeliveryEntity
- {
- $this->tempId = $tempId;
- return $this;
- }
- /**
- * @return string
- */
- public function getCityId(): string
- {
- return $this->cityId;
- }
- /**
- * @param string $cityId
- * @return ShippingTemplateUndeliveryEntity
- */
- public function setCityId(string $cityId): ShippingTemplateUndeliveryEntity
- {
- $this->cityId = $cityId;
- $cityIdList = explode("/", $this->cityId);
- $cityIdList = array_filter($cityIdList); // 删除空元素
- $cityIdList = array_values($cityIdList); // 重建数组索引
- $this->setCityIdList($cityIdList);
- return $this;
- }
- /**
- * @return array
- */
- public function getCityIdList(): array
- {
- return $this->cityIdList;
- }
- /**
- * @param array $cityIdList
- * @return ShippingTemplateUndeliveryEntity
- */
- public function setCityIdList(array $cityIdList): ShippingTemplateUndeliveryEntity
- {
- $this->cityIdList = $cityIdList;
- return $this;
- }
- }
|