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

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