<?php

/**
 * Description of Expenditure
 *
 * @author mihir
 */
class Expenditure {
  
    private $id;
    private $expCompanyId;
    private $expAmount;
    private $expAddedBy;
    private $expDate;
    private $expReason;
    
    
    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getExpCompanyId() {
        return $this->expCompanyId;
    }

    public function setExpCompanyId($expCompanyId) {
        $this->expCompanyId = $expCompanyId;
    }

    public function getExpAmount() {
        return $this->expAmount;
    }

    public function setExpAmount($expAmount) {
        $this->expAmount = $expAmount;
    }

    public function getExpAddedBy() {
        return $this->expAddedBy;
    }

    public function setExpAddedBy($expAddedBy) {
        $this->expAddedBy = $expAddedBy;
    }

    public function getExpDate() {
        return $this->expDate;
    }

    public function setExpDate($expDate) {
        $this->expDate = $expDate;
    }

    public function getExpReason() {
        return $this->expReason;
    }

    public function setExpReason($expReason) {
        $this->expReason = $expReason;
    }


    public function toJson() {
        $map=new JsonMap();
        $map->put("expId",  $this->getId());
        $map->put("expCompanyId",  $this->getExpCompanyId());
        $map->put("expAmount",  $this->getExpAmount());
        $map->put("expAddedBy",  $this->getExpAddedBy());
        $map->put("expDate",  $this->getExpDate());
        $map->put("expReason",  $this->getExpReason());
        
        return $map->toJson();
     }
    
    
    
    
}

?>
