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.      * @ORM\Column(type="boolean", options={"default": false})
  198.      */
  199.     private bool $breakdownPackages false;
  200.     /**
  201.      * @ORM\Column(type="boolean", options={"default": false})
  202.      */
  203.     private bool $showAudiovisualPrice false;
  204.     /**
  205.      * @ORM\Column(type="boolean", options={"default": false})
  206.      */
  207.     private bool $showAudiovisualPackage false;
  208.     /**
  209.      * Get id
  210.      *
  211.      * @return int
  212.      */
  213.     public function getId()
  214.     {
  215.         return $this->id;
  216.     }
  217.     /**
  218.      * Set loungeName
  219.      *
  220.      * @param string $loungeName
  221.      *
  222.      * @return ReservationLoungeSimple
  223.      */
  224.     public function setLoungeName($loungeName)
  225.     {
  226.         $this->loungeName $loungeName;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get loungeName
  231.      *
  232.      * @return string
  233.      */
  234.     public function getLoungeName()
  235.     {
  236.         return $this->loungeName;
  237.     }
  238.     /**
  239.      * Set idLounge
  240.      *
  241.      * @param integer $idLounge
  242.      *
  243.      * @return ReservationLoungeSimple
  244.      */
  245.     public function setIdLounge($idLounge)
  246.     {
  247.         $this->idLounge $idLounge;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get idLounge
  252.      *
  253.      * @return int
  254.      */
  255.     public function getIdLounge()
  256.     {
  257.         return $this->idLounge;
  258.     }
  259.     /**
  260.      * Set dateStart
  261.      *
  262.      * @param \DateTime $dateStart
  263.      *
  264.      * @return ReservationLoungeSimple
  265.      */
  266.     public function setDateStart($dateStart)
  267.     {
  268.         $this->dateStart $dateStart;
  269.         return $this;
  270.     }
  271.     /**
  272.      * Get dateStart
  273.      *
  274.      * @return \DateTime
  275.      */
  276.     public function getDateStart()
  277.     {
  278.         return $this->dateStart;
  279.     }
  280.     /**
  281.      * Set dateEnd
  282.      *
  283.      * @param \DateTime $dateEnd
  284.      *
  285.      * @return ReservationLoungeSimple
  286.      */
  287.     public function setDateEnd($dateEnd)
  288.     {
  289.         $this->dateEnd $dateEnd;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get dateEnd
  294.      *
  295.      * @return \DateTime
  296.      */
  297.     public function getDateEnd()
  298.     {
  299.         return $this->dateEnd;
  300.     }
  301.     /**
  302.      * Set pax
  303.      *
  304.      * @param integer $pax
  305.      *
  306.      * @return ReservationLoungeSimple
  307.      */
  308.     public function setPax($pax)
  309.     {
  310.         $this->pax $pax;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get pax
  315.      *
  316.      * @return int
  317.      */
  318.     public function getPax()
  319.     {
  320.         return $this->pax;
  321.     }
  322.     /**
  323.      * Set type
  324.      *
  325.      * @param string $type
  326.      *
  327.      * @return ReservationLoungeSimple
  328.      */
  329.     public function setType($type)
  330.     {
  331.         $this->type $type;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get type
  336.      *
  337.      * @return string
  338.      */
  339.     public function getType()
  340.     {
  341.         return $this->type;
  342.     }
  343.     /**
  344.      * Set createdAt
  345.      *
  346.      * @param \DateTime $createdAt
  347.      *
  348.      * @return ReservationLoungeSimple
  349.      */
  350.     public function setCreatedAt(\Datetime $createdAt)
  351.     {
  352.         $this->createdAt $createdAt;
  353.         return $this;
  354.     }
  355.     /**
  356.      * Get createdAt
  357.      *
  358.      * @return \DateTime
  359.      */
  360.     public function getCreatedAt()
  361.     {
  362.         return $this->createdAt;
  363.     }
  364.     /**
  365.      * Set createdBy
  366.      *
  367.      * @param integer $createdBy
  368.      *
  369.      * @return ReservationLoungeSimple
  370.      */
  371.     public function setCreatedBy($createdBy)
  372.     {
  373.         $this->createdBy $createdBy;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get createdBy
  378.      *
  379.      * @return int
  380.      */
  381.     public function getCreatedBy()
  382.     {
  383.         return $this->createdBy;
  384.     }
  385.     /**
  386.      * Set updatedAt
  387.      *
  388.      * @param \DateTime $updatedAt
  389.      *
  390.      * @return ReservationLoungeSimple
  391.      */
  392.     public function setUpdatedAt(\Datetime $updatedAt)
  393.     {
  394.         $this->updatedAt $updatedAt;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get updatedAt
  399.      *
  400.      * @return \DateTime
  401.      */
  402.     public function getUpdatedAt()
  403.     {
  404.         return $this->updatedAt;
  405.     }
  406.     /**
  407.      * Set updatedBy
  408.      *
  409.      * @param integer $updatedBy
  410.      *
  411.      * @return ReservationLoungeSimple
  412.      */
  413.     public function setUpdatedBy($updatedBy)
  414.     {
  415.         $this->updatedBy $updatedBy;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get updatedBy
  420.      *
  421.      * @return int
  422.      */
  423.     public function getUpdatedBy()
  424.     {
  425.         return $this->updatedBy;
  426.     }
  427.     /**
  428.      * Set hourStart
  429.      *
  430.      * @param string $hourStart
  431.      *
  432.      * @return ReservationLoungeSimple
  433.      */
  434.     public function setHourStart($hourStart)
  435.     {
  436.         $this->hourStart $hourStart;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get hourStart
  441.      *
  442.      * @return string
  443.      */
  444.     public function getHourStart()
  445.     {
  446.         return $this->hourStart;
  447.     }
  448.     /**
  449.      * Set minStart
  450.      *
  451.      * @param string $minStart
  452.      *
  453.      * @return ReservationLoungeSimple
  454.      */
  455.     public function setMinStart($minStart)
  456.     {
  457.         $this->minStart $minStart;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get minStart
  462.      *
  463.      * @return string
  464.      */
  465.     public function getMinStart()
  466.     {
  467.         return $this->minStart;
  468.     }
  469.     /**
  470.      * Set hourEnd
  471.      *
  472.      * @param string $hourEnd
  473.      *
  474.      * @return ReservationLoungeSimple
  475.      */
  476.     public function setHourEnd($hourEnd)
  477.     {
  478.         $this->hourEnd $hourEnd;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get hourEnd
  483.      *
  484.      * @return string
  485.      */
  486.     public function getHourEnd()
  487.     {
  488.         return $this->hourEnd;
  489.     }
  490.     /**
  491.      * Set minEnd
  492.      *
  493.      * @param string $minEnd
  494.      *
  495.      * @return ReservationLoungeSimple
  496.      */
  497.     public function setMinEnd($minEnd)
  498.     {
  499.         $this->minEnd $minEnd;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get minEnd
  504.      *
  505.      * @return string
  506.      */
  507.     public function getMinEnd()
  508.     {
  509.         return $this->minEnd;
  510.     }
  511.     /**
  512.      * Set idReservation
  513.      *
  514.      * @param integer $idReservation
  515.      *
  516.      * @return ReservationLoungeSimple
  517.      */
  518.     public function setIdReservation($idReservation)
  519.     {
  520.         $this->idReservation $idReservation;
  521.         return $this;
  522.     }
  523.     /**
  524.      * Get idReservation
  525.      *
  526.      * @return integer
  527.      */
  528.     public function getIdReservation()
  529.     {
  530.         return $this->idReservation;
  531.     }
  532.     /**
  533.      * @ORM\PrePersist
  534.      */
  535.     public function setCreatedAtValue()
  536.     {
  537.         $this->createdAt = new \Datetime();
  538.     }
  539.     /**
  540.      * @ORM\PrePersist
  541.      * @ORM\PreUpdate
  542.      */
  543.     public function setUpdatedAtValue()
  544.     {
  545.         $this->updatedAt = new \Datetime();
  546.     }
  547.     /**
  548.      * Set servicePrice
  549.      *
  550.      * @param string $servicePrice
  551.      *
  552.      * @return ReservationLoungeSimple
  553.      */
  554.     public function setServicePrice($servicePrice)
  555.     {
  556.         $this->servicePrice $servicePrice;
  557.         return $this;
  558.     }
  559.     /**
  560.      * Get servicePrice
  561.      *
  562.      * @return string
  563.      */
  564.     public function getServicePrice()
  565.     {
  566.         return $this->servicePrice;
  567.     }
  568.     /**
  569.      * Set rankQuote
  570.      *
  571.      * @param integer $rankQuote
  572.      *
  573.      * @return ReservationLoungeSimple
  574.      */
  575.     public function setRankQuote($rankQuote)
  576.     {
  577.         $this->rankQuote $rankQuote;
  578.         return $this;
  579.     }
  580.     /**
  581.      * Get rankQuote
  582.      *
  583.      * @return int
  584.      */
  585.     public function getRankQuote()
  586.     {
  587.         return $this->rankQuote;
  588.     }
  589.     /**
  590.      * Set opIva
  591.      *
  592.      * @param string $opIva
  593.      *
  594.      * @return ReservationLoungeSimple
  595.      */
  596.     public function setOpIva($opIva)
  597.     {
  598.         $this->opIva $opIva;
  599.         return $this;
  600.     }
  601.     /**
  602.      * Get opIva
  603.      *
  604.      * @return string
  605.      */
  606.     public function getOpIva()
  607.     {
  608.         return $this->opIva;
  609.     }
  610.     public function getIva(): ?string
  611.     {
  612.         return $this->iva;
  613.     }
  614.     public function setIva(?string $iva): self
  615.     {
  616.         $this->iva $iva;
  617.         return $this;
  618.     }
  619.     public function getSageIva(): ?SageVatRates
  620.     {
  621.         return $this->sageIva;
  622.     }
  623.     public function setSageIva(?SageVatRates $sageIva): self
  624.     {
  625.         $this->sageIva $sageIva;
  626.         return $this;
  627.     }
  628.     /**
  629.      * Set loungeDescription
  630.      *
  631.      * @param string $loungeDescription
  632.      *
  633.      * @return ReservationLoungeSimple
  634.      */
  635.     public function setLoungeDescription($loungeDescription)
  636.     {
  637.         $this->loungeDescription $loungeDescription;
  638.         return $this;
  639.     }
  640.     /**
  641.      * Get loungeDescription
  642.      *
  643.      * @return string
  644.      */
  645.     public function getLoungeDescription()
  646.     {
  647.         return $this->loungeDescription;
  648.     }
  649.     /**
  650.      * Set importantDescription
  651.      *
  652.      * @param string $importantDescription
  653.      *
  654.      * @return ReservationLoungeSimple
  655.      */
  656.     public function setImportantDescription($importantDescription)
  657.     {
  658.         $this->importantDescription $importantDescription;
  659.         return $this;
  660.     }
  661.     /**
  662.      * Get importantDescription
  663.      *
  664.      * @return string
  665.      */
  666.     public function getImportantDescription()
  667.     {
  668.         return $this->importantDescription;
  669.     }
  670.     /**
  671.      * Set importantDescGeneralText
  672.      *
  673.      * @param string $importantDescGeneralText
  674.      *
  675.      * @return ReservationLoungeSimple
  676.      */
  677.     public function setImportantDescGeneralText($importantDescGeneralText)
  678.     {
  679.         $this->importantDescGeneralText $importantDescGeneralText;
  680.         return $this;
  681.     }
  682.     /**
  683.      * Get importantDescGeneralText
  684.      *
  685.      * @return string
  686.      */
  687.     public function getImportantDescGeneralText()
  688.     {
  689.         return $this->importantDescGeneralText;
  690.     }
  691.     /**
  692.      * Set importantDescSchedules
  693.      *
  694.      * @param string $importantDescSchedules
  695.      *
  696.      * @return ReservationLoungeSimple
  697.      */
  698.     public function setImportantDescSchedules($importantDescSchedules)
  699.     {
  700.         $this->importantDescSchedules $importantDescSchedules;
  701.         return $this;
  702.     }
  703.     /**
  704.      * Get importantDescSchedules
  705.      *
  706.      * @return string
  707.      */
  708.     public function getImportantDescSchedules()
  709.     {
  710.         return $this->importantDescSchedules;
  711.     }
  712.     /**
  713.      * Set importantDescParking
  714.      *
  715.      * @param string $importantDescParking
  716.      *
  717.      * @return ReservationLoungeSimple
  718.      */
  719.     public function setImportantDescParking($importantDescParking)
  720.     {
  721.         $this->importantDescParking $importantDescParking;
  722.         return $this;
  723.     }
  724.     /**
  725.      * Get importantDescParking
  726.      *
  727.      * @return string
  728.      */
  729.     public function getImportantDescParking()
  730.     {
  731.         return $this->importantDescParking;
  732.     }
  733.     /**
  734.      * Set language
  735.      *
  736.      * @param integer $language
  737.      *
  738.      * @return ReservationLoungeSimple
  739.      */
  740.     public function setLanguage(int $language)
  741.     {
  742.         if(!in_array($languageLanguageConstants::getAvailableLanguages(), true)) {
  743.             throw new \InvalidArgumentException('Invalid language provided.');
  744.         }
  745.         $this->language $language;
  746.         return $this;
  747.     }
  748.     /**
  749.      * Get language
  750.      *
  751.      * @return integer
  752.      */
  753.     public function getLanguage()
  754.     {
  755.         return $this->language;
  756.     }
  757.     public function getSageArticle(): ?SageArticle
  758.     {
  759.         return $this->sageArticle;
  760.     }
  761.     public function setSageArticle(?SageArticle $sageArticle): self
  762.     {
  763.         $this->sageArticle $sageArticle;
  764.         return $this;
  765.     }
  766.     public function isSentToSage(): bool
  767.     {
  768.         return $this->sentToSage;
  769.     }
  770.     public function setSentToSage(bool $sentToSage): self
  771.     {
  772.         $this->sentToSage $sentToSage;
  773.         return $this;
  774.     }
  775.     /**
  776.      * @return bool
  777.      */
  778.     public function isBreakdownPackages(): bool
  779.     {
  780.         return $this->breakdownPackages;
  781.     }
  782.     /**
  783.      * @param bool $breakdownPackages
  784.      * @return self
  785.      */
  786.     public function setBreakdownPackages(bool $breakdownPackages): self
  787.     {
  788.         $this->breakdownPackages $breakdownPackages;
  789.         return $this;
  790.     }
  791.     public function isShowAudiovisualPrice(): bool
  792.     {
  793.         return $this->showAudiovisualPrice;
  794.     }
  795.     public function setShowAudiovisualPrice(bool $showAudiovisualPrice): self
  796.     {
  797.         $this->showAudiovisualPrice $showAudiovisualPrice;
  798.         return $this;
  799.     }
  800.     public function isShowAudiovisualPackage(): bool
  801.     {
  802.         return $this->showAudiovisualPackage;
  803.     }
  804.     public function setShowAudiovisualPackage(bool $showAudiovisualPackage): self
  805.     {
  806.         $this->showAudiovisualPackage $showAudiovisualPackage;
  807.         return $this;
  808.     }
  809. }