<?phpnamespace Lm\Entity;use Lm\Entity\Common\Entity;class Sku extends Entity{ /** * 在庫状況: 在庫切れ */ const STOCK_AVL_OUT_OF_STOCK = -1; /** * 在庫状況: 不明「*」 */ const STOCK_AVL_UNKNOWN = 0; /** * 在庫状況: 在庫あり */ const STOCK_AVL_IN_STOCK = 1; /** * 在庫状況: 在庫僅少 */ const STOCK_AVL_LOW_STOCK = 2; /** * 入荷予定: なし */ const BACK_ORDER_UNAVAILABLE = 0; /** * 入荷予定: あり(予約受付中) */ const BACK_ORDER_RESERVATION = 1; /** * 入荷予定: あり(入荷待ち) */ const BACK_ORDER_WAITING = 2; /** * @var int */ protected $goodsId; /** * @var int */ protected $shiiresakiId; /** * @var int */ protected $janId; /** * @var int */ protected $gclId; /** * @var int|null */ protected $gclDisplay; /** * @var int */ protected $gclDisplayStatus; /** * @var int */ protected $gpId; /** * @var int */ protected $gpDisplay; /** * @var string */ protected $lmHinban; /** * @var string */ protected $makerHinban; /** * @var int|null */ protected $noDisp; /** * @var string */ protected $janShiireColor; /** * @var int */ protected $colorId; /** * @var string */ protected $colorName; /** * @var int */ protected $sizeId; /** * @var string */ protected $sizeName; /** * @var string */ protected $shiiresakiSoukoHantei; /** * @var string */ protected $timeLimit; /** * @var bool */ protected $goodsSetPurchaseFlg; /** * @var bool */ protected $isDirectDeliveryConfigExists; /** * @var string */ protected $chokusouIncludeHinbanList; /** * @var string */ protected $chokusouExcludeHinbanList; /** * @var string */ protected $bichikuIncludeHinbanList; /** * @var string */ protected $nyukaDate; /** * @var bool */ protected $isYoyakuAvailable; /** * @var string */ protected $bichikuNyukaDate; /** * @var bool */ protected $isBichikuReady; /** * @var bool */ protected $isBichikuYoyakuAvailable; /** * @var int|string */ protected $stockTotal; /** * @var int|string */ protected $stockOther; /** * @var int */ protected $stockSokujitsu; /** * @var int */ protected $stockChokusou; /** * @var int */ protected $stockBichiku; /** * @var string */ protected $nyukaDateComment; /** * @var int */ protected $stockAvailability; /** * @var int */ protected $backOrder; /** * @var Goods */ protected $goods; /** * @var GoodsColor */ protected $goodsColor; /** * @var GoodsPrice */ protected $goodsPrice; /** * @var Jancode */ protected $jancode; /** * @return int */ public function getGoodsId() { return self::intNullable($this->goodsId); } /** * @return int */ public function getShiiresakiId() { return self::intNullable($this->shiiresakiId); } /** * @return int */ public function getJanId() { return self::intNullable($this->janId); } /** * @return int */ public function getGclId() { return self::intNullable($this->gclId); } /** * @return int|null */ public function getGclDisplay() { return self::intNullable($this->gclDisplay); } /** * @return int */ public function getGclDisplayStatus() { return (int)$this->gclDisplayStatus; } /** * @return int */ public function getGpId() { return self::intNullable($this->gpId); } /** * @return int|null */ public function getGpDisplay() { return self::intNullable($this->gpDisplay); } /** * @return string */ public function getLmHinban() { return $this->lmHinban; } /** * @return string */ public function getMakerHinban() { return $this->makerHinban; } /** * @return int|null */ public function getNoDisp() { return self::intNullable($this->noDisp); } /** * @return string */ public function getJanShiireColor() { return $this->janShiireColor; } /** * @return int */ public function getColorId() { return $this->colorId; } /** * @return string */ public function getColorName() { return $this->colorName; } /** * @return int */ public function getSizeId() { return $this->sizeId; } /** * @return string */ public function getSizeName() { return $this->sizeName; } /** * @return string */ public function getShiiresakiSoukoHantei() { return $this->shiiresakiSoukoHantei; } /** * @return string */ public function getTimeLimit() { return $this->timeLimit; } /** * @return int */ public function getGoodsSetPurchaseFlg() { return (int)$this->goodsSetPurchaseFlg; } /** * @return bool */ public function getIsDirectDeliveryConfigExists() { return (bool)$this->isDirectDeliveryConfigExists; } /** * @return string */ public function getChokusouIncludeHinbanList() { return $this->chokusouIncludeHinbanList; } /** * @return string */ public function getChokusouExcludeHinbanList() { return $this->chokusouExcludeHinbanList; } /** * @return string */ public function getBichikuIncludeHinbanList() { return $this->bichikuIncludeHinbanList; } /** * @return string */ public function getNyukaDate() { return $this->nyukaDate; } /** * @return bool */ public function getIsYoyakuAvailable() { return (bool)$this->isYoyakuAvailable; } /** * @return string */ public function getBichikuNyukaDate() { return $this->bichikuNyukaDate; } /** * @return bool */ public function getIsBichikuReady() { return (bool)$this->isBichikuReady; } /** * @return bool */ public function getIsBichikuYoyakuAvailable() { return (bool)$this->isBichikuYoyakuAvailable; } /** * @return int|string */ public function getStockTotal() { return self::intNullable($this->stockTotal); } /** * @return int|string */ public function getStockOther() { return self::intNullable($this->stockOther); } /** * @return int */ public function getStockSokujitsu() { return self::intNullable($this->stockSokujitsu); } /** * @param int $stockSokujitsu * @return $this */ protected function setStockSokujitsu($stockSokujitsu) { // $this->stockSokujitsu = $stockSokujitsu; // return $this; } /** * @return int */ public function getStockChokusou() { return self::intNullable($this->stockChokusou); } /** * @param int $stockChokusou * @return $this */ protected function setStockChokusou($stockChokusou) { // $this->stockChokusou = $stockChokusou; // return $this; } /** * @return int */ public function getStockBichiku() { return self::intNullable($this->stockBichiku); } /** * @param int $stockBichiku * @return $this */ protected function setStockBichiku($stockBichiku) { // $this->stockBichiku = $stockBichiku; // return $this; } /** * @return string */ public function getNyukaDateComment() { return $this->nyukaDateComment; } /** * @return int */ public function getStockAvailability() { return (int)$this->stockAvailability; } /** * @return int */ public function getBackOrder() { return (int)$this->backOrder; } /** * @return Goods */ public function getGoods() { return self::compute($this->goods, function () { return new Goods($this->getGoodsId()); }); } /** * @return GoodsColor */ public function getGoodsColor() { return self::compute($this->goodsColor, function () { return new GoodsColor($this->getGclId()); }); } /** * @return GoodsPrice */ public function getGoodsPrice() { return self::compute($this->goodsPrice, function () { return new GoodsPrice($this->getGpId()); }); } /** * @return Jancode */ public function getJancode() { return self::compute($this->jancode, function () { return new Jancode($this->getJanId()); }); }}