src/MDS/VenuesBundle/Entity/ReservationLoungeDetails.php line 19

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