<?php
namespace App\MDS\GreenPatioBundle\Entity;
use App\Entity\HtItem;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* ReservationLoungeDetails
*
* @ORM\Table(name="reservation_lounge_details")
* @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationLoungeDetailsRepository")
*/
class ReservationLoungeDetails
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @Groups({"ReservationLoungeDetails:read"})
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $name;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var string
*
* @ORM\Column(name="meters", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $meters;
/**
* @var string
*
* @ORM\Column(name="length", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $length;
/**
* @var string
*
* @ORM\Column(name="width", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $width;
/**
* @var string
*
* @ORM\Column(name="height", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $height;
/**
* @var string
*
* @ORM\Column(name="cap_school", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $capSchool;
/**
* @var string
*
* @ORM\Column(name="cap_theater", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $capTheater;
/**
* @var string
*
* @ORM\Column(name="cap_cocktail", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $capCocktail;
/**
* @var string
*
* @ORM\Column(name="cap_banquet", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $capBanquet;
/**
* @var string
*
* @ORM\Column(name="cap_imperial", type="string", length=255, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $capImperial;
/**
* @var int
*
* @ORM\Column(name="rank_lounge", type="integer", nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $rankLounge;
/**
* @var string
* Indices separados por comas de las salas que contenga el combo. Si no es combo estara en NULL
*
* @ORM\Column(name="combo", type="string", length=55, nullable=true)
* @Groups({"ReservationLoungeDetails:read"})
*/
private $combo;
/**
* @ORM\OneToMany(targetEntity=HtItem::class, mappedBy="loungeGp")
*/
private $htItems;
public function __construct()
{
$this->htItems = new ArrayCollection();
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return ReservationLoungeDetails
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return ReservationLoungeDetails
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ReservationLoungeDetails
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return ReservationLoungeDetails
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return ReservationLoungeDetails
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set meters
*
* @param string $meters
*
* @return ReservationLoungeDetails
*/
public function setMeters($meters)
{
$this->meters = $meters;
return $this;
}
/**
* Get meters
*
* @return string
*/
public function getMeters()
{
return $this->meters;
}
/**
* Set length
*
* @param string $length
*
* @return ReservationLoungeDetails
*/
public function setLength($length)
{
$this->length = $length;
return $this;
}
/**
* Get length
*
* @return string
*/
public function getLength()
{
return $this->length;
}
/**
* Set width
*
* @param string $width
*
* @return ReservationLoungeDetails
*/
public function setWidth($width)
{
$this->width = $width;
return $this;
}
/**
* Get width
*
* @return string
*/
public function getWidth()
{
return $this->width;
}
/**
* Set height
*
* @param string $height
*
* @return ReservationLoungeDetails
*/
public function setHeight($height)
{
$this->height = $height;
return $this;
}
/**
* Get height
*
* @return string
*/
public function getHeight()
{
return $this->height;
}
/**
* Set capSchool
*
* @param string $capSchool
*
* @return ReservationLoungeDetails
*/
public function setCapSchool($capSchool)
{
$this->capSchool = $capSchool;
return $this;
}
/**
* Get capSchool
*
* @return string
*/
public function getCapSchool()
{
return $this->capSchool;
}
/**
* Set capTheater
*
* @param string $capTheater
*
* @return ReservationLoungeDetails
*/
public function setCapTheater($capTheater)
{
$this->capTheater = $capTheater;
return $this;
}
/**
* Get capTheater
*
* @return string
*/
public function getCapTheater()
{
return $this->capTheater;
}
/**
* Set capCocktail
*
* @param string $capCocktail
*
* @return ReservationLoungeDetails
*/
public function setCapCocktail($capCocktail)
{
$this->capCocktail = $capCocktail;
return $this;
}
/**
* Get capCocktail
*
* @return string
*/
public function getCapCocktail()
{
return $this->capCocktail;
}
/**
* Set capBanquet
*
* @param string $capBanquet
*
* @return ReservationLoungeDetails
*/
public function setCapBanquet($capBanquet)
{
$this->capBanquet = $capBanquet;
return $this;
}
/**
* Get capBanquet
*
* @return string
*/
public function getCapBanquet()
{
return $this->capBanquet;
}
/**
* Set capImperial
*
* @param string $capImperial
*
* @return ReservationLoungeDetails
*/
public function setCapImperial($capImperial)
{
$this->capImperial = $capImperial;
return $this;
}
/**
* Get capImperial
*
* @return string
*/
public function getCapImperial()
{
return $this->capImperial;
}
/**
* Set rankLounge
*
* @param integer $rankLounge
*
* @return ReservationLoungeDetails
*/
public function setRankLounge($rankLounge)
{
$this->rankLounge = $rankLounge;
return $this;
}
/**
* Get rankLounge
*
* @return integer
*/
public function getRankLounge()
{
return $this->rankLounge;
}
/**
* Set combo
*
* @param string $combo
*
* @return ReservationLoungeDetails
*/
public function setCombo($combo)
{
$this->combo = $combo;
return $this;
}
/**
* Get combo
*
* @return string
*/
public function getCombo()
{
return $this->combo;
}
/**
* @return Collection<int, HtItem>
*/
public function getHtItems(): Collection
{
return $this->htItems;
}
public function addHtItem(HtItem $htItem): self
{
if (!$this->htItems->contains($htItem)) {
$this->htItems[] = $htItem;
$htItem->setLoungeGp($this);
}
return $this;
}
public function removeHtItem(HtItem $htItem): self
{
if ($this->htItems->removeElement($htItem)) {
// set the owning side to null (unless already changed)
if ($htItem->getLoungeGp() === $this) {
$htItem->setLoungeGp(null);
}
}
return $this;
}
}