<?php


/**
 * Description of Ord
 *
 * @author Kunal Mestri <kunal@laurus-it.com>
 */
class Ord {
    private $orderId;
    private $orderDate;
    private $addedBy;
    private $orderDescription;
    public function getOrderId() {
        return $this->orderId;
    }

    public function setOrderId($orderId) {
        $this->orderId = $orderId;
    }

    public function getOrderDate() {
        return $this->orderDate;
    }

    public function setOrderDate($orderDate) {
        $this->orderDate = $orderDate;
    }

    public function getAddedBy() {
        return $this->addedBy;
    }

    public function setAddedBy($addedBy) {
        $this->addedBy = $addedBy;
    }

    public function getOrderDescription() {
        return $this->orderDescription;
    }

    public function setOrderDescription($orderDescription) {
        $this->orderDescription = $orderDescription;
    }

    public function toJson() {
        $map = new Map;
        if($this->getOrderId()!="")
        $map->put("orderId", $this->getOrderId());
        if($this->getOrderDate()!="")
        $map->put("orderDate", $this->getOrderDate());
        if($this->getOrderDescription()!="")
        $map->put("orderDescription", $this->getOrderDescription());
        if($this->getAddedBy()!="")
        $map->put("addedBy", $this->getAddedBy());
    
        return $map->toJson();
    }
    
}

?>
