<?php
namespace App\MDS\EventsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* ProposalSupplierServicesBudget
*
* @ORM\Table(name="proposals_supplier_services_budget")
* @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalSupplierServicesBudgetRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ProposalSupplierServicesBudget
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="control_id", type="integer")
*/
private $controlId;
/**
* @var int
*
* @ORM\Column(name="items_service_id", type="integer")
*/
private $itemsServiceId;
/**
* @var int
*
* @ORM\Column(name="items_service_id_father", type="integer")
*/
private $itemsserviceIdFather;
/**
* @var int
*
* @ORM\Column(name="proposal_id", type="integer")
*/
private $proposalId;
/**
* @var int
*
* @ORM\Column(name="destination_id", type="integer")
*/
private $destinationId;
/**
* @var int
*
* @ORM\Column(name="supplier_id", type="integer", nullable=true)
*/
private $supplierId;
/**
* @var int
*
* @ORM\Column(name="idea_id", type="integer", nullable=true)
*/
private $ideaId;
/**
* @var int
*
* @ORM\Column(name="activity_id", type="integer", nullable=true)
*/
private $activityId;
/**
* @var int
*
* @ORM\Column(name="service_id", type="integer")
*/
private $serviceId;
/**
* @var int
*
* @ORM\Column(name="service_cat_id", type="integer")
*/
private $serviceCatId;
/**
* @var string
*
* @ORM\Column(name="service_cat_name", type="string", length=255)
*/
private $serviceCatName;
/**
* @var string
*
* @ORM\Column(name="cont_color", type="string", length=255)
*/
private $contColor;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="price", type="string", length=255)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $price;
/**
* @var string
*
* @ORM\Column(name="currency", type="string", length=255, nullable=true)
*/
private $currency;
/**
* @var string
*
* @ORM\Column(name="units", type="string", length=255)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $units;
/**
* @var string
*
* @ORM\Column(name="pax", type="string", length=255)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $pax;
/**
* @var string
*
* @ORM\Column(name="days", type="string", length=255)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $days;
/**
* @var \DateTime
*
* @ORM\Column(name="date_in_at", type="datetime", nullable=true)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $dateInAt;
/**
* @var \DateTime
*
* @ORM\Column(name="date_out_at", type="datetime", nullable=true)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $dateOutAt;
/**
* @var string
*
* @ORM\Column(name="net_amount", type="string", length=255, nullable=true)
*/
private $netAmount = 0;
/**
* @var string
*
* @ORM\Column(name="iva", type="string", length=255, nullable=true)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $iva;
/**
* @var string
*
* @ORM\Column(name="total", type="string", length=255, nullable=true)
*
* @Groups({"ProposalSupplierServicesBudget:edit"})
*/
private $total;
/**
* @var string
*
* @ORM\Column(name="status", type="string", length=255)
*/
private $status;
/**
* @var string
*
* @ORM\Column(name="rank", type="string", length=255, nullable=true)
*/
private $rank;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set controlId
*
* @param integer $controlId
*
* @return ProposalSupplierServicesBudget
*/
public function setControlId($controlId)
{
$this->controlId = $controlId;
return $this;
}
/**
* Get controlId
*
* @return integer
*/
public function getControlId()
{
return $this->controlId;
}
/**
* Set itemsServiceId
*
* @param integer $itemsServiceId
*
* @return ProposalSupplierServicesBudget
*/
public function setItemsServiceId($itemsServiceId)
{
$this->itemsServiceId = $itemsServiceId;
return $this;
}
/**
* Get itemsServiceId
*
* @return integer
*/
public function getItemsServiceId()
{
return $this->itemsServiceId;
}
/**
* Set itemsserviceIdFather
*
* @param integer $itemsserviceIdFather
*
* @return ProposalSupplierServicesBudget
*/
public function setItemsserviceIdFather($itemsserviceIdFather)
{
$this->itemsserviceIdFather = $itemsserviceIdFather;
return $this;
}
/**
* Get itemsserviceIdFather
*
* @return integer
*/
public function getItemsserviceIdFather()
{
return $this->itemsserviceIdFather;
}
/**
* Set proposalId
*
* @param integer $proposalId
*
* @return ProposalSupplierServicesBudget
*/
public function setProposalId($proposalId)
{
$this->proposalId = $proposalId;
return $this;
}
/**
* Get proposalId
*
* @return int
*/
public function getProposalId()
{
return $this->proposalId;
}
/**
* Set destinationId
*
* @param integer $destinationId
*
* @return ProposalSupplierServicesBudget
*/
public function setDestinationId($destinationId)
{
$this->destinationId = $destinationId;
return $this;
}
/**
* Get destinationId
*
* @return integer
*/
public function getDestinationId()
{
return $this->destinationId;
}
/**
* Set supplierId
*
* @param integer $supplierId
*
* @return ProposalSupplierServicesBudget
*/
public function setSupplierId($supplierId)
{
$this->supplierId = $supplierId;
return $this;
}
/**
* Get supplierId
*
* @return integer
*/
public function getSupplierId()
{
return $this->supplierId;
}
/**
* Set serviceId
*
* @param integer $serviceId
*
* @return ProposalSupplierServicesBudget
*/
public function setServiceId($serviceId)
{
$this->serviceId = $serviceId;
return $this;
}
/**
* Get serviceId
*
* @return integer
*/
public function getServiceId()
{
return $this->serviceId;
}
/**
* Set serviceCatId
*
* @param integer $serviceCatId
*
* @return ProposalSupplierServicesBudget
*/
public function setServiceCatId($serviceCatId)
{
$this->serviceCatId = $serviceCatId;
return $this;
}
/**
* Get serviceCatId
*
* @return integer
*/
public function getServiceCatId()
{
return $this->serviceCatId;
}
/**
* Set serviceCatName
*
* @param string $serviceCatName
*
* @return ProposalSupplierServicesBudget
*/
public function setServiceCatName($serviceCatName)
{
$this->serviceCatName = $serviceCatName;
return $this;
}
/**
* Get serviceCatName
*
* @return string
*/
public function getServiceCatName()
{
return $this->serviceCatName;
}
/**
* Set contColor
*
* @param string $contColor
*
* @return ProposalSupplierServicesBudget
*/
public function setContColor($contColor)
{
$this->contColor = $contColor;
return $this;
}
/**
* Get contColor
*
* @return string
*/
public function getContColor()
{
return $this->contColor;
}
/**
* Set name
*
* @param string $name
*
* @return ProposalSupplierServicesBudget
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set price
*
* @param string $price
*
* @return ProposalSupplierServicesBudget
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get price
*
* @return string
*/
public function getPrice()
{
return $this->price;
}
/**
* Set currency
*
* @param string $currency
*
* @return ProposalSupplierServicesBudget
*/
public function setCurrency($currency)
{
$this->currency = $currency;
return $this;
}
/**
* Get currency
*
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
/**
* Set units
*
* @param string $units
*
* @return ProposalSupplierServicesBudget
*/
public function setUnits($units)
{
$this->units = $units;
return $this;
}
/**
* Get units
*
* @return string
*/
public function getUnits()
{
return $this->units;
}
/**
* Set pax
*
* @param string $pax
*
* @return ProposalSupplierServicesBudget
*/
public function setPax($pax)
{
$this->pax = $pax;
return $this;
}
/**
* Get pax
*
* @return string
*/
public function getPax()
{
return $this->pax;
}
/**
* Set dateInAt
*
* @param \DateTime $dateInAt
*
* @return ProposalSupplierServicesBudget
*/
public function setDateInAt($dateInAt)
{
$this->dateInAt = $dateInAt;
return $this;
}
/**
* Get dateInAt
*
* @return \DateTime
*/
public function getDateInAt()
{
return $this->dateInAt;
}
/**
* Set dateOutAt
*
* @param \DateTime $dateOutAt
*
* @return ProposalSupplierServicesBudget
*/
public function setDateOutAt($dateOutAt)
{
$this->dateOutAt = $dateOutAt;
return $this;
}
/**
* Get dateOutAt
*
* @return \DateTime
*/
public function getDateOutAt()
{
return $this->dateOutAt;
}
/**
* Set iva
*
* @param string $iva
*
* @return ProposalSupplierServicesBudget
*/
public function setIva($iva)
{
$this->iva = $iva;
return $this;
}
/**
* Get iva
*
* @return string
*/
public function getIva()
{
return $this->iva;
}
/**
* Set total
*
* @param string $total
*
* @return ProposalSupplierServicesBudget
*/
public function setTotal($total)
{
$this->total = $total;
return $this;
}
/**
* Get total
*
* @return string
*/
public function getTotal()
{
return $this->total;
}
/**
* Set status
*
* @param string $status
*
* @return ProposalSupplierServicesBudget
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ProposalSupplierServicesBudget
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return ProposalSupplierServicesBudget
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return ProposalSupplierServicesBudget
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return ProposalSupplierServicesBudget
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set days
*
* @param string $days
*
* @return ProposalSupplierServicesBudget
*/
public function setDays($days)
{
$this->days = $days;
return $this;
}
/**
* Get days
*
* @return string
*/
public function getDays()
{
return $this->days;
}
/**
* Set rank
*
* @param string $rank
*
* @return ProposalSupplierServicesBudget
*/
public function setRank($rank)
{
$this->rank = $rank;
return $this;
}
/**
* Get rank
*
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* Set ideaId
*
* @param integer $ideaId
*
* @return ProposalSupplierServicesBudget
*/
public function setIdeaId($ideaId)
{
$this->ideaId = $ideaId;
return $this;
}
/**
* Get ideaId
*
* @return integer
*/
public function getIdeaId()
{
return $this->ideaId;
}
/**
* Set activityId
*
* @param integer $activityId
*
* @return ProposalSupplierServicesBudget
*/
public function setActivityId($activityId)
{
$this->activityId = $activityId;
return $this;
}
/**
* Get activityId
*
* @return integer
*/
public function getActivityId()
{
return $this->activityId;
}
/**
* Set netAmount
*
* @param integer $netAmount
*
* @return ProposalSupplierServicesBudget
*/
public function setNetAmount($netAmount)
{
$this->netAmount = $netAmount;
return $this;
}
/**
* Get netAmount
*
* @return integer
*/
public function getNetAmount()
{
return $this->netAmount;
}
}