<?php
namespace App\MDS\GreenPatioBundle\Entity;
use App\Entity\HtItem;
use Doctrine\ORM\Mapping as ORM;
/**
* ReservationService
*
* @ORM\Table(name="reservation_service")
* @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationServiceRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ReservationService
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="reservationId", type="integer")
*/
private $reservationId;
/**
* @var int
*
* @ORM\Column(name="supplierId", type="integer")
*/
private $supplierId;
/**
* @var int
*
* @ORM\Column(name="serviceId", type="integer")
*/
private $serviceId;
/**
* @var int
*
* @ORM\Column(name="serviceCatId", type="integer")
*/
private $serviceCatId;
/**
* @var string
*
* @ORM\Column(name="serviceCatName", type="string", length=255)
*/
private $serviceCatName;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="price", type="string", length=255)
*/
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)
*/
private $units;
/**
* @var string
*
* @ORM\Column(name="opCommission", type="string", length=255, nullable=true)
*/
private $opCommission;
/**
* @var string
*
* @ORM\Column(name="commission", type="string", length=255)
*/
private $commission;
/**
* @var string
*
* @ORM\Column(name="opOver", type="string", length=255, nullable=true)
*/
private $opOver;
/**
* @var string
*
* @ORM\Column(name="price_over", type="string", length=255, nullable=true)
*/
private $over;
/**
* @var string
*
* @ORM\Column(name="opIva", type="string", length=255, nullable=true)
*/
private $opIva;
/**
* @var string
*
* @ORM\Column(name="iva", type="string", length=255, nullable=true)
*/
private $iva;
/**
* @var string
*
* @ORM\Column(name="pax", type="string", length=255, nullable=true)
*/
private $pax;
/**
* @var string
*
* @ORM\Column(name="hour", type="string", length=255, nullable=true)
*/
private $hour;
/**
* @var \DateTime
*
* @ORM\Column(name="dateInAt", type="datetime", nullable=true)
*/
private $dateInAt;
/**
* @var \DateTime
*
* @ORM\Column(name="dateOutAt", type="datetime", nullable=true)
*/
private $dateOutAt;
/**
* @var string
*
* @ORM\Column(name="contcolor", type="string", length=255)
*/
private $contcolor;
/**
* @var string
*
* @ORM\Column(name="rank", type="string", length=255, nullable=true)
*/
private $rank;
/**
* @var int
*
* @ORM\Column(name="assistantId", type="integer", nullable=true)
*/
private $assistantId;
/**
* @var int
*
* @ORM\Column(name="activityId", type="integer", nullable=true)
*/
private $activityId;
/**
* @var int
*
* @ORM\Column(name="pay", type="integer", nullable=true)
*/
private $pay;
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="createdId", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updatedId", type="integer")
*/
private $updatedId;
/**
* @var bool
*
* @ORM\Column(name="toinvoice", type="boolean", nullable=true)
*/
private $toinvoice;
/**
* @ORM\OneToOne(targetEntity=HtItem::class, mappedBy="reservationService", cascade={"persist", "remove"})
*/
private $htItem;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set reservationId
*
* @param integer $reservationId
*
* @return ReservationService
*/
public function setReservationId($reservationId)
{
$this->reservationId = $reservationId;
return $this;
}
/**
* Get reservationId
*
* @return int
*/
public function getReservationId()
{
return $this->reservationId;
}
/**
* Set supplierId
*
* @param integer $supplierId
*
* @return ReservationService
*/
public function setSupplierId($supplierId)
{
$this->supplierId = $supplierId;
return $this;
}
/**
* Get supplierId
*
* @return int
*/
public function getSupplierId()
{
return $this->supplierId;
}
/**
* Set serviceId
*
* @param integer $serviceId
*
* @return ReservationService
*/
public function setServiceId($serviceId)
{
$this->serviceId = $serviceId;
return $this;
}
/**
* Get serviceId
*
* @return int
*/
public function getServiceId()
{
return $this->serviceId;
}
/**
* Set serviceCatId
*
* @param integer $serviceCatId
*
* @return ReservationService
*/
public function setServiceCatId($serviceCatId)
{
$this->serviceCatId = $serviceCatId;
return $this;
}
/**
* Get serviceCatId
*
* @return int
*/
public function getServiceCatId()
{
return $this->serviceCatId;
}
/**
* Set serviceCatName
*
* @param string $serviceCatName
*
* @return ReservationService
*/
public function setServiceCatName($serviceCatName)
{
$this->serviceCatName = $serviceCatName;
return $this;
}
/**
* Get serviceCatName
*
* @return string
*/
public function getServiceCatName()
{
return $this->serviceCatName;
}
/**
* Set name
*
* @param string $name
*
* @return ReservationService
*/
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 ReservationService
*/
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 ReservationService
*/
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 ReservationService
*/
public function setUnits($units)
{
$this->units = $units;
return $this;
}
/**
* Get units
*
* @return string
*/
public function getUnits()
{
return $this->units;
}
/**
* Set opCommission
*
* @param string $opCommission
*
* @return ReservationService
*/
public function setOpCommission($opCommission)
{
$this->opCommission = $opCommission;
return $this;
}
/**
* Get opCommission
*
* @return string
*/
public function getOpCommission()
{
return $this->opCommission;
}
/**
* Set commission
*
* @param string $commission
*
* @return ReservationService
*/
public function setCommission($commission)
{
$this->commission = $commission;
return $this;
}
/**
* Get commission
*
* @return string
*/
public function getCommission()
{
return $this->commission;
}
/**
* Set opOver
*
* @param string $opOver
*
* @return ReservationService
*/
public function setOpOver($opOver)
{
$this->opOver = $opOver;
return $this;
}
/**
* Get opOver
*
* @return string
*/
public function getOpOver()
{
return $this->opOver;
}
/**
* Set over
*
* @param string $over
*
* @return ReservationService
*/
public function setOver($over)
{
$this->over = $over;
return $this;
}
/**
* Get over
*
* @return string
*/
public function getOver()
{
return $this->over;
}
/**
* Set opIva
*
* @param string $opIva
*
* @return ReservationService
*/
public function setOpIva($opIva)
{
$this->opIva = $opIva;
return $this;
}
/**
* Get opIva
*
* @return string
*/
public function getOpIva()
{
return $this->opIva;
}
/**
* Set iva
*
* @param string $iva
*
* @return ReservationService
*/
public function setIva($iva)
{
$this->iva = $iva;
return $this;
}
/**
* Get iva
*
* @return string
*/
public function getIva()
{
return $this->iva;
}
/**
* Set pax
*
* @param string $pax
*
* @return ReservationService
*/
public function setPax($pax)
{
$this->pax = $pax;
return $this;
}
/**
* Get pax
*
* @return string
*/
public function getPax()
{
return $this->pax;
}
/**
* Set hour
*
* @param string $hour
*
* @return ReservationService
*/
public function setHour($hour)
{
$this->hour = $hour;
return $this;
}
/**
* Get hour
*
* @return string
*/
public function getHour()
{
return $this->hour;
}
/**
* Set dateInAt
*
* @param \DateTime $dateInAt
*
* @return ReservationService
*/
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 ReservationService
*/
public function setDateOutAt($dateOutAt)
{
$this->dateOutAt = $dateOutAt;
return $this;
}
/**
* Get dateOutAt
*
* @return \DateTime
*/
public function getDateOutAt()
{
return $this->dateOutAt;
}
/**
* Set contcolor
*
* @param string $contcolor
*
* @return ReservationService
*/
public function setContcolor($contcolor)
{
$this->contcolor = $contcolor;
return $this;
}
/**
* Get contcolor
*
* @return string
*/
public function getContcolor()
{
return $this->contcolor;
}
/**
* Set rank
*
* @param string $rank
*
* @return ReservationService
*/
public function setRank($rank)
{
$this->rank = $rank;
return $this;
}
/**
* Get rank
*
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* Set assistantId
*
* @param integer $assistantId
*
* @return ReservationService
*/
public function setAssistantId($assistantId)
{
$this->assistantId = $assistantId;
return $this;
}
/**
* Get assistantId
*
* @return int
*/
public function getAssistantId()
{
return $this->assistantId;
}
/**
* Set activityId
*
* @param integer $activityId
*
* @return ReservationService
*/
public function setActivityId($activityId)
{
$this->activityId = $activityId;
return $this;
}
/**
* Get activityId
*
* @return int
*/
public function getActivityId()
{
return $this->activityId;
}
/**
* Set pay
*
* @param integer $pay
*
* @return ReservationService
*/
public function setPay($pay)
{
$this->pay = $pay;
return $this;
}
/**
* Get pay
*
* @return int
*/
public function getPay()
{
return $this->pay;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ReservationService
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return ReservationService
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return ReservationService
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return ReservationService
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set toinvoice
*
* @param boolean $toinvoice
*
* @return ReservationService
*/
public function setToinvoice($toinvoice)
{
$this->toinvoice = $toinvoice;
return $this;
}
/**
* Get toinvoice
*
* @return boolean
*/
public function getToinvoice()
{
return $this->toinvoice;
}
public function getHtItem(): ?HtItem
{
return $this->htItem;
}
public function setHtItem(?HtItem $htItem): self
{
// unset the owning side of the relation if necessary
if ($htItem === null && $this->htItem !== null) {
$this->htItem->setReservationService(null);
}
// set the owning side of the relation if necessary
if ($htItem !== null && $htItem->getReservationService() !== $this) {
$htItem->setReservationService($this);
}
$this->htItem = $htItem;
return $this;
}
}