<?php
/**
 * Description of ItemDetailQuantity
 *
 * @author Kunal Mestri <kunal@laurus-it.com>
 */
class ItemDetailQuantity {
    private $itemDetailId;
    private $itemQuantity;
    private $itemSizeId;
    private $itemSize;
    private $itemDetailQuantityId;
    public function getItemDetailQuantityId() {
        return $this->itemDetailQuantityId;
    }

    public function setItemDetailQuantityId($itemDetailQuantityId) {
        $this->itemDetailQuantityId = $itemDetailQuantityId;
    }

    public function getItemSize() {
        return $this->itemSize;
    }

    public function setItemSize($itemSize) {
        $this->itemSize = $itemSize;
    }

    public function getItemDetailId() {
        return $this->itemDetailId;
    }

    public function setItemDetailId($itemDetailId) {
        $this->itemDetailId = $itemDetailId;
    }

    public function getItemSizeId() {
        return $this->itemSizeId;
    }

    public function setItemSizeId($itemSizeId) {
        $this->itemSizeId = $itemSizeId;
    }

    public function getItemQuantity() {
        return $this->itemQuantity;
    }

    public function setItemQuantity($itemQuantity) {
        $this->itemQuantity = $itemQuantity;
    }

    
      public function toJson() {
        $map = new Map;
        if($this->getItemDetailId()!="")
        $map->put("itemDetailId", $this->getItemDetailId());
        if($this->getItemSizeId()!="")
        $map->put("itemSizeId", $this->getItemSizeId());
        if($this->getItemQuantity()!="")
        $map->put("itemQuantity", $this->getItemQuantity());
        if($this->getItemSize()!="")
        $map->put("itemSize", $this->getItemSize());
        if($this->getItemDetailQuantityId()!="")
        $map->put("itemDetailQuantityId", $this->getItemDetailQuantityId());
        return $map->toJson();
    }       
}

?>
