src/MDS/GreenPatioBundle/Entity/ReservationLoungeSimple.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\MDS\GreenPatioBundle\Entity;
  3. use App\Constants\LanguageConstants;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. /**
  8.  * ReservationLoungeSimple
  9.  *
  10.  * @ORM\Table(name="reservation_lounge_simple")
  11.  * @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationLoungeSimpleRepository")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  */
  14. class ReservationLoungeSimple
  15. {
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="loungeName", type="string", length=255)
  28.      */
  29.     private $loungeName;
  30.     /**
  31.      * @var int
  32.      *
  33.      * @ORM\Column(name="idLounge", type="integer")
  34.      */
  35.     private $idLounge;
  36.     /**
  37.      * @var \DateTime
  38.      *
  39.      * @ORM\Column(name="dateStart", type="datetime")
  40.      */
  41.     private $dateStart;
  42.     /**
  43.      * @var \DateTime
  44.      *
  45.      * @ORM\Column(name="dateEnd", type="datetime")
  46.      */
  47.     private $dateEnd;
  48.     /**
  49.      * @var int
  50.      *
  51.      * @ORM\Column(name="servicePrice", type="string", length=55)
  52.      */
  53.     private $servicePrice;
  54.     /**
  55.      * @var int
  56.      *
  57.      * @ORM\Column(name="idReservation", type="integer")
  58.      *
  59.      */
  60.     private $idReservation;
  61.     /**
  62.      * @var int
  63.      *
  64.      * @ORM\Column(name="pax", type="integer", nullable=true)
  65.      */
  66.     private $pax;
  67.     /**
  68.      * @var string
  69.      *
  70.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  71.      */
  72.     private $type;
  73.     /**
  74.      * @var \DateTime
  75.      *
  76.      * @ORM\Column(name="createdAt", type="datetime")
  77.      */
  78.     private $createdAt;
  79.     /**
  80.      * @var int
  81.      *
  82.      * @ORM\Column(name="createdBy", type="integer")
  83.      */
  84.     private $createdBy;
  85.     /**
  86.      * @var \DateTime
  87.      *
  88.      * @ORM\Column(name="updatedAt", type="datetime")
  89.      */
  90.     private $updatedAt;
  91.     /**
  92.      * @var int
  93.      *
  94.      * @ORM\Column(name="updatedBy", type="integer")
  95.      */
  96.     private $updatedBy;
  97.     /**
  98.      * @var string
  99.      *
  100.      * @ORM\Column(name="hourStart", type="string", length=255)
  101.      */
  102.     private $hourStart;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="minStart", type="string", length=255)
  107.      */
  108.     private $minStart;
  109.     /**
  110.      * @var string
  111.      *
  112.      * @ORM\Column(name="hourEnd", type="string", length=255)
  113.      */
  114.     private $hourEnd;
  115.     /**
  116.      * @var string
  117.      *
  118.      * @ORM\Column(name="minEnd", type="string", length=255)
  119.      */
  120.     private $minEnd;
  121.     /**
  122.      * @var int
  123.      *
  124.      * @ORM\Column(name="rankQuote", type="integer", nullable=true)
  125.      * Numero de cotizacion
  126.      */
  127.     private $rankQuote;
  128.     /**
  129.      * @var string
  130.      *
  131.      * @ORM\Column(name="op_iva", type="string", length=1, nullable=true)
  132.      */
  133.     private $opIva '1';
  134.     /**
  135.      * @var string
  136.      *
  137.      * @ORM\Column(name="iva", type="string", length=255, nullable=true)
  138.      */
  139.     private $iva;
  140.     /**
  141.      * @var string
  142.      *
  143.      * @ORM\Column(name="loungeDescription", type="string", length=500, nullable=true)
  144.      */
  145.     private $loungeDescription;
  146.     /**
  147.      * @var string
  148.      *
  149.      * @ORM\Column(name="importantDescription", type="text", nullable=true)
  150.      * Cuadro de texto para caracteristicas especificas de la sala, este campo se refleja en la cotizacion
  151.      * web como cuadro de informacion Importante. Si está en vacio se tomara la información de la entidad Details.
  152.      */
  153.     private $importantDescription;
  154.     /**
  155.      * @var string
  156.      *
  157.      * @ORM\Column(name="importantDescGeneralText", type="text", nullable=true)
  158.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  159.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  160.      * Esta es la información para el texto general
  161.      */
  162.     private $importantDescGeneralText;
  163.     /**
  164.      * @var string
  165.      *
  166.      * @ORM\Column(name="importantDescSchedules", type="text", nullable=true)
  167.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  168.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  169.      * Esta es la información para los horarios
  170.      */
  171.     private $importantDescSchedules;
  172.     /**
  173.      * @var string
  174.      *
  175.      * @ORM\Column(name="importantDescParking", type="text", nullable=true)
  176.      * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  177.      * se le de una mejor presentación y desde Mante se pueda modificar la información.
  178.      * Esta es la información para el parking
  179.      */
  180.     private $importantDescParking;
  181.     /**
  182.      * @var integer
  183.      * 
  184.      * @ORM\Column(name="language", type="integer")
  185.      */
  186.     private $language 1;
  187.     /**
  188.      * Get id
  189.      *
  190.      * @return int
  191.      */
  192.     public function getId()
  193.     {
  194.         return $this->id;
  195.     }
  196.     /**
  197.      * Set loungeName
  198.      *
  199.      * @param string $loungeName
  200.      *
  201.      * @return ReservationLoungeSimple
  202.      */
  203.     public function setLoungeName($loungeName)
  204.     {
  205.         $this->loungeName $loungeName;
  206.         return $this;
  207.     }
  208.     /**
  209.      * Get loungeName
  210.      *
  211.      * @return string
  212.      */
  213.     public function getLoungeName()
  214.     {
  215.         return $this->loungeName;
  216.     }
  217.     /**
  218.      * Set idLounge
  219.      *
  220.      * @param integer $idLounge
  221.      *
  222.      * @return ReservationLoungeSimple
  223.      */
  224.     public function setIdLounge($idLounge)
  225.     {
  226.         $this->idLounge $idLounge;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get idLounge
  231.      *
  232.      * @return int
  233.      */
  234.     public function getIdLounge()
  235.     {
  236.         return $this->idLounge;
  237.     }
  238.     /**
  239.      * Set dateStart
  240.      *
  241.      * @param \DateTime $dateStart
  242.      *
  243.      * @return ReservationLoungeSimple
  244.      */
  245.     public function setDateStart($dateStart)
  246.     {
  247.         $this->dateStart $dateStart;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get dateStart
  252.      *
  253.      * @return \DateTime
  254.      */
  255.     public function getDateStart()
  256.     {
  257.         return $this->dateStart;
  258.     }
  259.     /**
  260.      * Set dateEnd
  261.      *
  262.      * @param \DateTime $dateEnd
  263.      *
  264.      * @return ReservationLoungeSimple
  265.      */
  266.     public function setDateEnd($dateEnd)
  267.     {
  268.         $this->dateEnd $dateEnd;
  269.         return $this;
  270.     }
  271.     /**
  272.      * Get dateEnd
  273.      *
  274.      * @return \DateTime
  275.      */
  276.     public function getDateEnd()
  277.     {
  278.         return $this->dateEnd;
  279.     }
  280.     /**
  281.      * Set pax
  282.      *
  283.      * @param integer $pax
  284.      *
  285.      * @return ReservationLoungeSimple
  286.      */
  287.     public function setPax($pax)
  288.     {
  289.         $this->pax $pax;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get pax
  294.      *
  295.      * @return int
  296.      */
  297.     public function getPax()
  298.     {
  299.         return $this->pax;
  300.     }
  301.     /**
  302.      * Set type
  303.      *
  304.      * @param string $type
  305.      *
  306.      * @return ReservationLoungeSimple
  307.      */
  308.     public function setType($type)
  309.     {
  310.         $this->type $type;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get type
  315.      *
  316.      * @return string
  317.      */
  318.     public function getType()
  319.     {
  320.         return $this->type;
  321.     }
  322.     /**
  323.      * Set createdAt
  324.      *
  325.      * @param \DateTime $createdAt
  326.      *
  327.      * @return ReservationLoungeSimple
  328.      */
  329.     public function setCreatedAt(\Datetime $createdAt)
  330.     {
  331.         $this->createdAt $createdAt;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get createdAt
  336.      *
  337.      * @return \DateTime
  338.      */
  339.     public function getCreatedAt()
  340.     {
  341.         return $this->createdAt;
  342.     }
  343.     /**
  344.      * Set createdBy
  345.      *
  346.      * @param integer $createdBy
  347.      *
  348.      * @return ReservationLoungeSimple
  349.      */
  350.     public function setCreatedBy($createdBy)
  351.     {
  352.         $this->createdBy $createdBy;
  353.         return $this;
  354.     }
  355.     /**
  356.      * Get createdBy
  357.      *
  358.      * @return int
  359.      */
  360.     public function getCreatedBy()
  361.     {
  362.         return $this->createdBy;
  363.     }
  364.     /**
  365.      * Set updatedAt
  366.      *
  367.      * @param \DateTime $updatedAt
  368.      *
  369.      * @return ReservationLoungeSimple
  370.      */
  371.     public function setUpdatedAt(\Datetime $updatedAt)
  372.     {
  373.         $this->updatedAt $updatedAt;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get updatedAt
  378.      *
  379.      * @return \DateTime
  380.      */
  381.     public function getUpdatedAt()
  382.     {
  383.         return $this->updatedAt;
  384.     }
  385.     /**
  386.      * Set updatedBy
  387.      *
  388.      * @param integer $updatedBy
  389.      *
  390.      * @return ReservationLoungeSimple
  391.      */
  392.     public function setUpdatedBy($updatedBy)
  393.     {
  394.         $this->updatedBy $updatedBy;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get updatedBy
  399.      *
  400.      * @return int
  401.      */
  402.     public function getUpdatedBy()
  403.     {
  404.         return $this->updatedBy;
  405.     }
  406.     /**
  407.      * Set hourStart
  408.      *
  409.      * @param string $hourStart
  410.      *
  411.      * @return ReservationLoungeSimple
  412.      */
  413.     public function setHourStart($hourStart)
  414.     {
  415.         $this->hourStart $hourStart;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get hourStart
  420.      *
  421.      * @return string
  422.      */
  423.     public function getHourStart()
  424.     {
  425.         return $this->hourStart;
  426.     }
  427.     /**
  428.      * Set minStart
  429.      *
  430.      * @param string $minStart
  431.      *
  432.      * @return ReservationLoungeSimple
  433.      */
  434.     public function setMinStart($minStart)
  435.     {
  436.         $this->minStart $minStart;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get minStart
  441.      *
  442.      * @return string
  443.      */
  444.     public function getMinStart()
  445.     {
  446.         return $this->minStart;
  447.     }
  448.     /**
  449.      * Set hourEnd
  450.      *
  451.      * @param string $hourEnd
  452.      *
  453.      * @return ReservationLoungeSimple
  454.      */
  455.     public function setHourEnd($hourEnd)
  456.     {
  457.         $this->hourEnd $hourEnd;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get hourEnd
  462.      *
  463.      * @return string
  464.      */
  465.     public function getHourEnd()
  466.     {
  467.         return $this->hourEnd;
  468.     }
  469.     /**
  470.      * Set minEnd
  471.      *
  472.      * @param string $minEnd
  473.      *
  474.      * @return ReservationLoungeSimple
  475.      */
  476.     public function setMinEnd($minEnd)
  477.     {
  478.         $this->minEnd $minEnd;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get minEnd
  483.      *
  484.      * @return string
  485.      */
  486.     public function getMinEnd()
  487.     {
  488.         return $this->minEnd;
  489.     }
  490.     /**
  491.      * Set idReservation
  492.      *
  493.      * @param integer $idReservation
  494.      *
  495.      * @return ReservationLoungeSimple
  496.      */
  497.     public function setIdReservation($idReservation)
  498.     {
  499.         $this->idReservation $idReservation;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get idReservation
  504.      *
  505.      * @return integer
  506.      */
  507.     public function getIdReservation()
  508.     {
  509.         return $this->idReservation;
  510.     }
  511.     /**
  512.      * @ORM\PrePersist
  513.      */
  514.     public function setCreatedAtValue()
  515.     {
  516.         $this->createdAt = new \Datetime();
  517.     }
  518.     /**
  519.      * @ORM\PrePersist
  520.      * @ORM\PreUpdate
  521.      */
  522.     public function setUpdatedAtValue()
  523.     {
  524.         $this->updatedAt = new \Datetime();
  525.     }
  526.     /**
  527.      * Set servicePrice
  528.      *
  529.      * @param string $servicePrice
  530.      *
  531.      * @return ReservationLoungeSimple
  532.      */
  533.     public function setServicePrice($servicePrice)
  534.     {
  535.         $this->servicePrice $servicePrice;
  536.         return $this;
  537.     }
  538.     /**
  539.      * Get servicePrice
  540.      *
  541.      * @return string
  542.      */
  543.     public function getServicePrice()
  544.     {
  545.         return $this->servicePrice;
  546.     }
  547.     /**
  548.      * Set rankQuote
  549.      *
  550.      * @param integer $rankQuote
  551.      *
  552.      * @return ReservationLoungeSimple
  553.      */
  554.     public function setRankQuote($rankQuote)
  555.     {
  556.         $this->rankQuote $rankQuote;
  557.         return $this;
  558.     }
  559.     /**
  560.      * Get rankQuote
  561.      *
  562.      * @return int
  563.      */
  564.     public function getRankQuote()
  565.     {
  566.         return $this->rankQuote;
  567.     }
  568.     /**
  569.      * Set opIva
  570.      *
  571.      * @param string $opIva
  572.      *
  573.      * @return ReservationLoungeSimple
  574.      */
  575.     public function setOpIva($opIva)
  576.     {
  577.         $this->opIva $opIva;
  578.         return $this;
  579.     }
  580.     /**
  581.      * Get opIva
  582.      *
  583.      * @return string
  584.      */
  585.     public function getOpIva()
  586.     {
  587.         return $this->opIva;
  588.     }
  589.     /**
  590.      * Set iva
  591.      *
  592.      * @param string $iva
  593.      *
  594.      * @return ReservationLoungeSimple
  595.      */
  596.     public function setIva($iva)
  597.     {
  598.         $this->iva $iva;
  599.         return $this;
  600.     }
  601.     /**
  602.      * Get iva
  603.      *
  604.      * @return string
  605.      */
  606.     public function getIva()
  607.     {
  608.         return $this->iva;
  609.     }
  610.     /**
  611.      * Set loungeDescription
  612.      *
  613.      * @param string $loungeDescription
  614.      *
  615.      * @return ReservationLoungeSimple
  616.      */
  617.     public function setLoungeDescription($loungeDescription)
  618.     {
  619.         $this->loungeDescription $loungeDescription;
  620.         return $this;
  621.     }
  622.     /**
  623.      * Get loungeDescription
  624.      *
  625.      * @return string
  626.      */
  627.     public function getLoungeDescription()
  628.     {
  629.         return $this->loungeDescription;
  630.     }
  631.     /**
  632.      * Set importantDescription
  633.      *
  634.      * @param string $importantDescription
  635.      *
  636.      * @return ReservationLoungeSimple
  637.      */
  638.     public function setImportantDescription($importantDescription)
  639.     {
  640.         $this->importantDescription $importantDescription;
  641.         return $this;
  642.     }
  643.     /**
  644.      * Get importantDescription
  645.      *
  646.      * @return string
  647.      */
  648.     public function getImportantDescription()
  649.     {
  650.         return $this->importantDescription;
  651.     }
  652.     /**
  653.      * Set importantDescGeneralText
  654.      *
  655.      * @param string $importantDescGeneralText
  656.      *
  657.      * @return ReservationLoungeSimple
  658.      */
  659.     public function setImportantDescGeneralText($importantDescGeneralText)
  660.     {
  661.         $this->importantDescGeneralText $importantDescGeneralText;
  662.         return $this;
  663.     }
  664.     /**
  665.      * Get importantDescGeneralText
  666.      *
  667.      * @return string
  668.      */
  669.     public function getImportantDescGeneralText()
  670.     {
  671.         return $this->importantDescGeneralText;
  672.     }
  673.     /**
  674.      * Set importantDescSchedules
  675.      *
  676.      * @param string $importantDescSchedules
  677.      *
  678.      * @return ReservationLoungeSimple
  679.      */
  680.     public function setImportantDescSchedules($importantDescSchedules)
  681.     {
  682.         $this->importantDescSchedules $importantDescSchedules;
  683.         return $this;
  684.     }
  685.     /**
  686.      * Get importantDescSchedules
  687.      *
  688.      * @return string
  689.      */
  690.     public function getImportantDescSchedules()
  691.     {
  692.         return $this->importantDescSchedules;
  693.     }
  694.     /**
  695.      * Set importantDescParking
  696.      *
  697.      * @param string $importantDescParking
  698.      *
  699.      * @return ReservationLoungeSimple
  700.      */
  701.     public function setImportantDescParking($importantDescParking)
  702.     {
  703.         $this->importantDescParking $importantDescParking;
  704.         return $this;
  705.     }
  706.     /**
  707.      * Get importantDescParking
  708.      *
  709.      * @return string
  710.      */
  711.     public function getImportantDescParking()
  712.     {
  713.         return $this->importantDescParking;
  714.     }
  715.     /**
  716.      * Set language
  717.      *
  718.      * @param integer $language
  719.      *
  720.      * @return ReservationLoungeSimple
  721.      */
  722.     public function setLanguage(int $language)
  723.     {
  724.         if(!in_array($languageLanguageConstants::getAvailableLanguages(), true)) {
  725.             throw new \InvalidArgumentException('Invalid language provided.');
  726.         }
  727.         $this->language $language;
  728.         return $this;
  729.     }
  730.     /**
  731.      * Get language
  732.      *
  733.      * @return integer
  734.      */
  735.     public function getLanguage()
  736.     {
  737.         return $this->language;
  738.     }
  739. }