src/MDS/GreenPatioBundle/Entity/ReservationLoungeDetails.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\MDS\GreenPatioBundle\Entity;
  3. use App\Entity\HtItem;
  4. use App\Entity\ReservationLoungeWebDescription;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Component\Serializer\Annotation\Groups;
  9. /**
  10.  * ReservationLoungeDetails
  11.  *
  12.  * @ORM\Table(name="reservation_lounge_details")
  13.  * @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationLoungeDetailsRepository")
  14.  */
  15. class ReservationLoungeDetails
  16. {
  17.     /**
  18.      * @var int
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      * @Groups({"ReservationLoungeDetails:read"})
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=255)
  30.      * @Groups({"ReservationLoungeDetails:read"})
  31.      */
  32.     private $name;
  33.     /**
  34.      * @var int
  35.      *
  36.      * @ORM\Column(name="created_id", type="integer")
  37.      */
  38.     private $createdId;
  39.     /**
  40.      * @var \DateTime
  41.      *
  42.      * @ORM\Column(name="created_at", type="datetime")
  43.      */
  44.     private $createdAt;
  45.     /**
  46.      * @var int
  47.      *
  48.      * @ORM\Column(name="updated_id", type="integer")
  49.      */
  50.     private $updatedId;
  51.     /**
  52.      * @var \DateTime
  53.      *
  54.      * @ORM\Column(name="updated_at", type="datetime")
  55.      */
  56.     private $updatedAt;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="meters", type="string", length=255, nullable=true)
  61.      * @Groups({"ReservationLoungeDetails:read"})
  62.      */
  63.     private $meters;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="length", type="string", length=255, nullable=true)
  68.      * @Groups({"ReservationLoungeDetails:read"})
  69.      */
  70.     private $length;
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="width", type="string", length=255, nullable=true)
  75.      * @Groups({"ReservationLoungeDetails:read"})
  76.      */
  77.     private $width;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="height", type="string", length=255, nullable=true)
  82.      * @Groups({"ReservationLoungeDetails:read"})
  83.      */
  84.     private $height;
  85.     /**
  86.      * @var string
  87.      *
  88.      * @ORM\Column(name="cap_school", type="string", length=255, nullable=true)
  89.      * @Groups({"ReservationLoungeDetails:read"})
  90.      */
  91.     private $capSchool;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="cap_theater", type="string", length=255, nullable=true)
  96.      * @Groups({"ReservationLoungeDetails:read"})
  97.      */
  98.     private $capTheater;
  99.     /**
  100.      * @var string
  101.      *
  102.      * @ORM\Column(name="cap_cocktail", type="string", length=255, nullable=true)
  103.      * @Groups({"ReservationLoungeDetails:read"})
  104.      */
  105.     private $capCocktail;
  106.     /**
  107.      * @var string
  108.      *
  109.      * @ORM\Column(name="cap_banquet", type="string", length=255, nullable=true)
  110.      * @Groups({"ReservationLoungeDetails:read"})
  111.      */
  112.     private $capBanquet;
  113.     /**
  114.      * @var string
  115.      *
  116.      * @ORM\Column(name="cap_imperial", type="string", length=255, nullable=true)
  117.      * @Groups({"ReservationLoungeDetails:read"})
  118.      */
  119.     private $capImperial;
  120.     /**
  121.      * @var int
  122.      *
  123.      * @ORM\Column(name="rank_lounge", type="integer", nullable=true)
  124.      * @Groups({"ReservationLoungeDetails:read"})
  125.      */
  126.     private $rankLounge;
  127.     /**
  128.      * @var string
  129.      * Indices separados por comas de las salas que contenga el combo. Si no es combo estara en NULL
  130.      *
  131.      * @ORM\Column(name="combo", type="string", length=55, nullable=true)
  132.      * @Groups({"ReservationLoungeDetails:read"})
  133.      */
  134.     private $combo;
  135.     /**
  136.      * @var string
  137.      *
  138.      * @ORM\Column(name="importantDescription", type="text", nullable=true)
  139.      * Cuadro de texto para caracteristicas especificas de la sala, este campo se refleja en
  140.      * la cotizacion web como cuadro de informacion Importante
  141.      */
  142.     private $importantDescription;
  143.     /**
  144.      * @var string
  145.      *
  146.      * @ORM\Column(name="importantDescGeneralText", type="text", nullable=true)
  147.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  148.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  149.      * Esta es la información para el texto general
  150.      */
  151.     private $importantDescGeneralText;
  152.     /**
  153.      * @var string
  154.      *
  155.      * @ORM\Column(name="importantDescSchedules", type="text", nullable=true)
  156.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  157.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  158.      * Esta es la información para los horarios
  159.      */
  160.     private $importantDescSchedules;
  161.     /**
  162.      * @var string
  163.      *
  164.      * @ORM\Column(name="importantDescParking", type="text", nullable=true)
  165.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  166.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  167.      * Esta es la información para el parking
  168.      */
  169.     private $importantDescParking;
  170.     /**
  171.      * @ORM\OneToMany(targetEntity=HtItem::class, mappedBy="loungeGp")
  172.      */
  173.     private $htItems;
  174.     /**
  175.      * @ORM\OneToMany(targetEntity=ReservationLoungeWebDescription::class, mappedBy="lounge", orphanRemoval=true)
  176.      */
  177.     private $reservationLoungeWebDescriptions;
  178.     public function __construct()
  179.     {
  180.         $this->htItems = new ArrayCollection();
  181.         $this->reservationLoungeWebDescriptions = new ArrayCollection();
  182.     }
  183.     /**
  184.      * Get id
  185.      *
  186.      * @return int
  187.      */
  188.     public function getId()
  189.     {
  190.         return $this->id;
  191.     }
  192.     /**
  193.      * Set name
  194.      *
  195.      * @param string $name
  196.      *
  197.      * @return ReservationLoungeDetails
  198.      */
  199.     public function setName($name)
  200.     {
  201.         $this->name $name;
  202.         return $this;
  203.     }
  204.     /**
  205.      * Get name
  206.      *
  207.      * @return string
  208.      */
  209.     public function getName()
  210.     {
  211.         return $this->name;
  212.     }
  213.     /**
  214.      * Set createdId
  215.      *
  216.      * @param integer $createdId
  217.      *
  218.      * @return ReservationLoungeDetails
  219.      */
  220.     public function setCreatedId($createdId)
  221.     {
  222.         $this->createdId $createdId;
  223.         return $this;
  224.     }
  225.     /**
  226.      * Get createdId
  227.      *
  228.      * @return integer
  229.      */
  230.     public function getCreatedId()
  231.     {
  232.         return $this->createdId;
  233.     }
  234.     /**
  235.      * Set createdAt
  236.      *
  237.      * @param \DateTime $createdAt
  238.      *
  239.      * @return ReservationLoungeDetails
  240.      */
  241.     public function setCreatedAt($createdAt)
  242.     {
  243.         $this->createdAt $createdAt;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Get createdAt
  248.      *
  249.      * @return \DateTime
  250.      */
  251.     public function getCreatedAt()
  252.     {
  253.         return $this->createdAt;
  254.     }
  255.     /**
  256.      * Set updatedId
  257.      *
  258.      * @param integer $updatedId
  259.      *
  260.      * @return ReservationLoungeDetails
  261.      */
  262.     public function setUpdatedId($updatedId)
  263.     {
  264.         $this->updatedId $updatedId;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get updatedId
  269.      *
  270.      * @return integer
  271.      */
  272.     public function getUpdatedId()
  273.     {
  274.         return $this->updatedId;
  275.     }
  276.     /**
  277.      * Set updatedAt
  278.      *
  279.      * @param \DateTime $updatedAt
  280.      *
  281.      * @return ReservationLoungeDetails
  282.      */
  283.     public function setUpdatedAt($updatedAt)
  284.     {
  285.         $this->updatedAt $updatedAt;
  286.         return $this;
  287.     }
  288.     /**
  289.      * Get updatedAt
  290.      *
  291.      * @return \DateTime
  292.      */
  293.     public function getUpdatedAt()
  294.     {
  295.         return $this->updatedAt;
  296.     }
  297.     /**
  298.      * Set meters
  299.      *
  300.      * @param string $meters
  301.      *
  302.      * @return ReservationLoungeDetails
  303.      */
  304.     public function setMeters($meters)
  305.     {
  306.         $this->meters $meters;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Get meters
  311.      *
  312.      * @return string
  313.      */
  314.     public function getMeters()
  315.     {
  316.         return $this->meters;
  317.     }
  318.     /**
  319.      * Set length
  320.      *
  321.      * @param string $length
  322.      *
  323.      * @return ReservationLoungeDetails
  324.      */
  325.     public function setLength($length)
  326.     {
  327.         $this->length $length;
  328.         return $this;
  329.     }
  330.     /**
  331.      * Get length
  332.      *
  333.      * @return string
  334.      */
  335.     public function getLength()
  336.     {
  337.         return $this->length;
  338.     }
  339.     /**
  340.      * Set width
  341.      *
  342.      * @param string $width
  343.      *
  344.      * @return ReservationLoungeDetails
  345.      */
  346.     public function setWidth($width)
  347.     {
  348.         $this->width $width;
  349.         return $this;
  350.     }
  351.     /**
  352.      * Get width
  353.      *
  354.      * @return string
  355.      */
  356.     public function getWidth()
  357.     {
  358.         return $this->width;
  359.     }
  360.     /**
  361.      * Set height
  362.      *
  363.      * @param string $height
  364.      *
  365.      * @return ReservationLoungeDetails
  366.      */
  367.     public function setHeight($height)
  368.     {
  369.         $this->height $height;
  370.         return $this;
  371.     }
  372.     /**
  373.      * Get height
  374.      *
  375.      * @return string
  376.      */
  377.     public function getHeight()
  378.     {
  379.         return $this->height;
  380.     }
  381.     /**
  382.      * Set capSchool
  383.      *
  384.      * @param string $capSchool
  385.      *
  386.      * @return ReservationLoungeDetails
  387.      */
  388.     public function setCapSchool($capSchool)
  389.     {
  390.         $this->capSchool $capSchool;
  391.         return $this;
  392.     }
  393.     /**
  394.      * Get capSchool
  395.      *
  396.      * @return string
  397.      */
  398.     public function getCapSchool()
  399.     {
  400.         return $this->capSchool;
  401.     }
  402.     /**
  403.      * Set capTheater
  404.      *
  405.      * @param string $capTheater
  406.      *
  407.      * @return ReservationLoungeDetails
  408.      */
  409.     public function setCapTheater($capTheater)
  410.     {
  411.         $this->capTheater $capTheater;
  412.         return $this;
  413.     }
  414.     /**
  415.      * Get capTheater
  416.      *
  417.      * @return string
  418.      */
  419.     public function getCapTheater()
  420.     {
  421.         return $this->capTheater;
  422.     }
  423.     /**
  424.      * Set capCocktail
  425.      *
  426.      * @param string $capCocktail
  427.      *
  428.      * @return ReservationLoungeDetails
  429.      */
  430.     public function setCapCocktail($capCocktail)
  431.     {
  432.         $this->capCocktail $capCocktail;
  433.         return $this;
  434.     }
  435.     /**
  436.      * Get capCocktail
  437.      *
  438.      * @return string
  439.      */
  440.     public function getCapCocktail()
  441.     {
  442.         return $this->capCocktail;
  443.     }
  444.     /**
  445.      * Set capBanquet
  446.      *
  447.      * @param string $capBanquet
  448.      *
  449.      * @return ReservationLoungeDetails
  450.      */
  451.     public function setCapBanquet($capBanquet)
  452.     {
  453.         $this->capBanquet $capBanquet;
  454.         return $this;
  455.     }
  456.     /**
  457.      * Get capBanquet
  458.      *
  459.      * @return string
  460.      */
  461.     public function getCapBanquet()
  462.     {
  463.         return $this->capBanquet;
  464.     }
  465.     /**
  466.      * Set capImperial
  467.      *
  468.      * @param string $capImperial
  469.      *
  470.      * @return ReservationLoungeDetails
  471.      */
  472.     public function setCapImperial($capImperial)
  473.     {
  474.         $this->capImperial $capImperial;
  475.         return $this;
  476.     }
  477.     /**
  478.      * Get capImperial
  479.      *
  480.      * @return string
  481.      */
  482.     public function getCapImperial()
  483.     {
  484.         return $this->capImperial;
  485.     }
  486.     /**
  487.      * Set rankLounge
  488.      *
  489.      * @param integer $rankLounge
  490.      *
  491.      * @return ReservationLoungeDetails
  492.      */
  493.     public function setRankLounge($rankLounge)
  494.     {
  495.         $this->rankLounge $rankLounge;
  496.         return $this;
  497.     }
  498.     /**
  499.      * Get rankLounge
  500.      *
  501.      * @return integer
  502.      */
  503.     public function getRankLounge()
  504.     {
  505.         return $this->rankLounge;
  506.     }
  507.     /**
  508.      * Set combo
  509.      *
  510.      * @param string $combo
  511.      *
  512.      * @return ReservationLoungeDetails
  513.      */
  514.     public function setCombo($combo)
  515.     {
  516.         $this->combo $combo;
  517.         return $this;
  518.     }
  519.     /**
  520.      * Get combo
  521.      *
  522.      * @return string
  523.      */
  524.     public function getCombo()
  525.     {
  526.         return $this->combo;
  527.     }
  528.     /**
  529.      * @return Collection<int, HtItem>
  530.      */
  531.     public function getHtItems(): Collection
  532.     {
  533.         return $this->htItems;
  534.     }
  535.     public function addHtItem(HtItem $htItem): self
  536.     {
  537.         if (!$this->htItems->contains($htItem)) {
  538.             $this->htItems[] = $htItem;
  539.             $htItem->setLoungeGp($this);
  540.         }
  541.         return $this;
  542.     }
  543.     public function removeHtItem(HtItem $htItem): self
  544.     {
  545.         if ($this->htItems->removeElement($htItem)) {
  546.             // set the owning side to null (unless already changed)
  547.             if ($htItem->getLoungeGp() === $this) {
  548.                 $htItem->setLoungeGp(null);
  549.             }
  550.         }
  551.         return $this;
  552.     }
  553.     /**
  554.      * Set importantDescription
  555.      *
  556.      * @param string $importantDescription
  557.      *
  558.      * @return ReservationLoungeDetails
  559.      */
  560.     public function setImportantDescription($importantDescription)
  561.     {
  562.         $this->importantDescription $importantDescription;
  563.         return $this;
  564.     }
  565.     /**
  566.      * Get importantDescription
  567.      *
  568.      * @return string
  569.      */
  570.     public function getImportantDescription()
  571.     {
  572.         return $this->importantDescription;
  573.     }
  574.     /**
  575.      * Set importantDescGeneralText
  576.      *
  577.      * @param string $importantDescGeneralText
  578.      *
  579.      * @return ReservationLoungeDetails
  580.      */
  581.     public function setImportantDescGeneralText($importantDescGeneralText)
  582.     {
  583.         $this->importantDescGeneralText $importantDescGeneralText;
  584.         return $this;
  585.     }
  586.     /**
  587.      * Get importantDescGeneralText
  588.      *
  589.      * @return string
  590.      */
  591.     public function getImportantDescGeneralText()
  592.     {
  593.         return $this->importantDescGeneralText;
  594.     }
  595.     /**
  596.      * Set importantDescSchedules
  597.      *
  598.      * @param string $importantDescSchedules
  599.      *
  600.      * @return ReservationLoungeDetails
  601.      */
  602.     public function setImportantDescSchedules($importantDescSchedules)
  603.     {
  604.         $this->importantDescSchedules $importantDescSchedules;
  605.         return $this;
  606.     }
  607.     /**
  608.      * Get importantDescSchedules
  609.      *
  610.      * @return string
  611.      */
  612.     public function getImportantDescSchedules()
  613.     {
  614.         return $this->importantDescSchedules;
  615.     }
  616.     /**
  617.      * Set importantDescParking
  618.      *
  619.      * @param string $importantDescParking
  620.      *
  621.      * @return ReservationLoungeDetails
  622.      */
  623.     public function setImportantDescParking($importantDescParking)
  624.     {
  625.         $this->importantDescParking $importantDescParking;
  626.         return $this;
  627.     }
  628.     /**
  629.      * Get importantDescParking
  630.      *
  631.      * @return string
  632.      */
  633.     public function getImportantDescParking()
  634.     {
  635.         return $this->importantDescParking;
  636.     }
  637.     /**
  638.      * @return Collection<int, ReservationLoungeWebDescription>
  639.      */
  640.     public function getReservationLoungeWebDescriptions(): Collection
  641.     {
  642.         return $this->reservationLoungeWebDescriptions;
  643.     }
  644.     public function addReservationLoungeWebDescription(ReservationLoungeWebDescription $reservationLoungeWebDescription): self
  645.     {
  646.         if (!$this->reservationLoungeWebDescriptions->contains($reservationLoungeWebDescription)) {
  647.             $this->reservationLoungeWebDescriptions[] = $reservationLoungeWebDescription;
  648.             $reservationLoungeWebDescription->setLounge($this);
  649.         }
  650.         return $this;
  651.     }
  652.     public function removeReservationLoungeWebDescription(ReservationLoungeWebDescription $reservationLoungeWebDescription): self
  653.     {
  654.         if ($this->reservationLoungeWebDescriptions->removeElement($reservationLoungeWebDescription)) {
  655.             // set the owning side to null (unless already changed)
  656.             if ($reservationLoungeWebDescription->getLounge() === $this) {
  657.                 $reservationLoungeWebDescription->setLounge(null);
  658.             }
  659.         }
  660.         return $this;
  661.     }
  662. }