src/MDS/VenuesBundle/Entity/ReservationService.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\MDS\VenuesBundle\Entity;
  3. use App\Entity\HtItem;
  4. use App\Entity\SageArticle;
  5. use App\Entity\SageVatRates;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * ReservationService
  9.  *
  10.  * @ORM\Table(name="reservation_service")
  11.  * @ORM\Entity(repositoryClass="App\MDS\VenuesBundle\Repository\ReservationServiceRepository")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  */
  14. class ReservationService
  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 int
  26.      *
  27.      * @ORM\Column(name="reservationId", type="integer")
  28.      */
  29.     private $reservationId;
  30.     /**
  31.      * @var int
  32.      *
  33.      * @ORM\Column(name="supplierId", type="integer")
  34.      */
  35.     private $supplierId;
  36.     /**
  37.      * @var int
  38.      *
  39.      * @ORM\Column(name="serviceId", type="integer")
  40.      */
  41.     private $serviceId;
  42.     /**
  43.      * @var int
  44.      *
  45.      * @ORM\Column(name="serviceCatId", type="integer")
  46.      */
  47.     private $serviceCatId;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="serviceCatName", type="string", length=255)
  52.      */
  53.     private $serviceCatName;
  54.     /**
  55.      * @var string
  56.      *
  57.      * @ORM\Column(name="name", type="string", length=255)
  58.      */
  59.     private $name;
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="price", type="string", length=255)
  64.      */
  65.     private $price;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="currency", type="string", length=255, nullable=true)
  70.      */
  71.     private $currency;
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="units", type="string", length=255)
  76.      */
  77.     private $units;
  78.     /**
  79.      * @var string
  80.      *
  81.      * @ORM\Column(name="opCommission", type="string", length=255, nullable=true)
  82.      */
  83.     private $opCommission;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(name="commission", type="string", length=255)
  88.      */
  89.     private $commission;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="opOver", type="string", length=255, nullable=true)
  94.      */
  95.     private $opOver;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(name="price_over", type="string", length=255, nullable=true)
  100.      */
  101.     private $over;
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="opIva", type="string", length=255, nullable=true)
  106.      */
  107.     private $opIva;
  108.     /**
  109.      * @var string
  110.      *
  111.      * @ORM\Column(name="iva", type="string", length=255, nullable=true)
  112.      */
  113.     private $iva;
  114.     /**
  115.      * @ORM\ManyToOne(targetEntity=SageVatRates::class)
  116.      * @ORM\JoinColumn(name="sage_iva", referencedColumnName="id", onDelete="SET NULL")
  117.      */
  118.     private $sageIva;
  119.     /**
  120.      * @ORM\ManyToOne(targetEntity=SageVatRates::class)
  121.      * @ORM\JoinColumn(name="iva_supplier", referencedColumnName="id", onDelete="SET NULL")
  122.      */
  123.     private $ivaSupplier;
  124.     /**
  125.      * @var string
  126.      *
  127.      * @ORM\Column(name="pax", type="string", length=255, nullable=true)
  128.      */
  129.     private $pax;
  130.     /**
  131.      * @var string
  132.      *
  133.      * @ORM\Column(name="hour", type="string", length=255, nullable=true)
  134.      */
  135.     private $hour;
  136.     /**
  137.      * @var \DateTime
  138.      *
  139.      * @ORM\Column(name="dateInAt", type="datetime", nullable=true)
  140.      */
  141.     private $dateInAt;
  142.     /**
  143.      * @var \DateTime
  144.      *
  145.      * @ORM\Column(name="dateOutAt", type="datetime", nullable=true)
  146.      */
  147.     private $dateOutAt;
  148.     /**
  149.      * @var string
  150.      *
  151.      * @ORM\Column(name="contcolor", type="string", length=255)
  152.      */
  153.     private $contcolor;
  154.     /**
  155.      * @var string
  156.      *
  157.      * @ORM\Column(name="`rank`", type="string", length=255, nullable=true)
  158.      */
  159.     private $rank;
  160.     /**
  161.      * @var int
  162.      *
  163.      * @ORM\Column(name="assistantId", type="integer", nullable=true)
  164.      */
  165.     private $assistantId;
  166.     /**
  167.      * @var int
  168.      *
  169.      * @ORM\Column(name="activityId", type="integer", nullable=true)
  170.      */
  171.     private $activityId;
  172.     /**
  173.      * @var int
  174.      *
  175.      * @ORM\Column(name="pay", type="integer", nullable=true)
  176.      */
  177.     private $pay;
  178.     /**
  179.      * @var \DateTime
  180.      *
  181.      * @ORM\Column(name="createdAt", type="datetime")
  182.      */
  183.     private $createdAt;
  184.     /**
  185.      * @var int
  186.      *
  187.      * @ORM\Column(name="createdId", type="integer")
  188.      */
  189.     private $createdId;
  190.     /**
  191.      * @var \DateTime
  192.      *
  193.      * @ORM\Column(name="updatedAt", type="datetime")
  194.      */
  195.     private $updatedAt;
  196.     /**
  197.      * @var int
  198.      *
  199.      * @ORM\Column(name="updatedId", type="integer")
  200.      */
  201.     private $updatedId;
  202.     /**
  203.      * @var bool
  204.      *
  205.      * @ORM\Column(name="toinvoice", type="boolean", nullable=true)
  206.      */
  207.     private $toinvoice;
  208.     /**
  209.      * @ORM\OneToOne(targetEntity=HtItem::class, mappedBy="reservationService", cascade={"persist", "remove"})
  210.      */
  211.     private $htItem;
  212.     /**
  213.      * @var boolean
  214.      *
  215.      * @ORM\Column(name="viewInfo", type="boolean", nullable=false)
  216.      */
  217.     private $viewInfo;
  218.     /** @ORM\ManyToOne(targetEntity=SageArticle::class) */
  219.     private $sageArticle;
  220.     /** @ORM\ManyToOne(targetEntity=SageArticle::class) */
  221.     private $sageArticleSupplier;
  222.     /** @ORM\Column(type="boolean") */
  223.     private $sentToSage false;
  224.     /**
  225.      * Get id
  226.      *
  227.      * @return int
  228.      */
  229.     public function getId()
  230.     {
  231.         return $this->id;
  232.     }
  233.     /**
  234.      * Set reservationId
  235.      *
  236.      * @param integer $reservationId
  237.      *
  238.      * @return ReservationService
  239.      */
  240.     public function setReservationId($reservationId)
  241.     {
  242.         $this->reservationId $reservationId;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get reservationId
  247.      *
  248.      * @return int
  249.      */
  250.     public function getReservationId()
  251.     {
  252.         return $this->reservationId;
  253.     }
  254.     /**
  255.      * Set supplierId
  256.      *
  257.      * @param integer $supplierId
  258.      *
  259.      * @return ReservationService
  260.      */
  261.     public function setSupplierId($supplierId)
  262.     {
  263.         $this->supplierId $supplierId;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get supplierId
  268.      *
  269.      * @return int
  270.      */
  271.     public function getSupplierId()
  272.     {
  273.         return $this->supplierId;
  274.     }
  275.     /**
  276.      * Set serviceId
  277.      *
  278.      * @param integer $serviceId
  279.      *
  280.      * @return ReservationService
  281.      */
  282.     public function setServiceId($serviceId)
  283.     {
  284.         $this->serviceId $serviceId;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get serviceId
  289.      *
  290.      * @return int
  291.      */
  292.     public function getServiceId()
  293.     {
  294.         return $this->serviceId;
  295.     }
  296.     /**
  297.      * Set serviceCatId
  298.      *
  299.      * @param integer $serviceCatId
  300.      *
  301.      * @return ReservationService
  302.      */
  303.     public function setServiceCatId($serviceCatId)
  304.     {
  305.         $this->serviceCatId $serviceCatId;
  306.         return $this;
  307.     }
  308.     /**
  309.      * Get serviceCatId
  310.      *
  311.      * @return int
  312.      */
  313.     public function getServiceCatId()
  314.     {
  315.         return $this->serviceCatId;
  316.     }
  317.     /**
  318.      * Set serviceCatName
  319.      *
  320.      * @param string $serviceCatName
  321.      *
  322.      * @return ReservationService
  323.      */
  324.     public function setServiceCatName($serviceCatName)
  325.     {
  326.         $this->serviceCatName $serviceCatName;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Get serviceCatName
  331.      *
  332.      * @return string
  333.      */
  334.     public function getServiceCatName()
  335.     {
  336.         return $this->serviceCatName;
  337.     }
  338.     /**
  339.      * Set name
  340.      *
  341.      * @param string $name
  342.      *
  343.      * @return ReservationService
  344.      */
  345.     public function setName($name)
  346.     {
  347.         $this->name $name;
  348.         return $this;
  349.     }
  350.     /**
  351.      * Get name
  352.      *
  353.      * @return string
  354.      */
  355.     public function getName()
  356.     {
  357.         return $this->name;
  358.     }
  359.     /**
  360.      * Set price
  361.      *
  362.      * @param string $price
  363.      *
  364.      * @return ReservationService
  365.      */
  366.     public function setPrice($price)
  367.     {
  368.         $this->price $price;
  369.         return $this;
  370.     }
  371.     /**
  372.      * Get price
  373.      *
  374.      * @return string
  375.      */
  376.     public function getPrice()
  377.     {
  378.         return $this->price;
  379.     }
  380.     /**
  381.      * Set currency
  382.      *
  383.      * @param string $currency
  384.      *
  385.      * @return ReservationService
  386.      */
  387.     public function setCurrency($currency)
  388.     {
  389.         $this->currency $currency;
  390.         return $this;
  391.     }
  392.     /**
  393.      * Get currency
  394.      *
  395.      * @return string
  396.      */
  397.     public function getCurrency()
  398.     {
  399.         return $this->currency;
  400.     }
  401.     /**
  402.      * Set units
  403.      *
  404.      * @param string $units
  405.      *
  406.      * @return ReservationService
  407.      */
  408.     public function setUnits($units)
  409.     {
  410.         $this->units $units;
  411.         return $this;
  412.     }
  413.     /**
  414.      * Get units
  415.      *
  416.      * @return string
  417.      */
  418.     public function getUnits()
  419.     {
  420.         return $this->units;
  421.     }
  422.     /**
  423.      * Set opCommission
  424.      *
  425.      * @param string $opCommission
  426.      *
  427.      * @return ReservationService
  428.      */
  429.     public function setOpCommission($opCommission)
  430.     {
  431.         $this->opCommission $opCommission;
  432.         return $this;
  433.     }
  434.     /**
  435.      * Get opCommission
  436.      *
  437.      * @return string
  438.      */
  439.     public function getOpCommission()
  440.     {
  441.         return $this->opCommission;
  442.     }
  443.     /**
  444.      * Set commission
  445.      *
  446.      * @param string $commission
  447.      *
  448.      * @return ReservationService
  449.      */
  450.     public function setCommission($commission)
  451.     {
  452.         $this->commission $commission;
  453.         return $this;
  454.     }
  455.     /**
  456.      * Get commission
  457.      *
  458.      * @return string
  459.      */
  460.     public function getCommission()
  461.     {
  462.         return $this->commission;
  463.     }
  464.     /**
  465.      * Set opOver
  466.      *
  467.      * @param string $opOver
  468.      *
  469.      * @return ReservationService
  470.      */
  471.     public function setOpOver($opOver)
  472.     {
  473.         $this->opOver $opOver;
  474.         return $this;
  475.     }
  476.     /**
  477.      * Get opOver
  478.      *
  479.      * @return string
  480.      */
  481.     public function getOpOver()
  482.     {
  483.         return $this->opOver;
  484.     }
  485.     /**
  486.      * Set over
  487.      *
  488.      * @param string $over
  489.      *
  490.      * @return ReservationService
  491.      */
  492.     public function setOver($over)
  493.     {
  494.         $this->over $over;
  495.         return $this;
  496.     }
  497.     /**
  498.      * Get over
  499.      *
  500.      * @return string
  501.      */
  502.     public function getOver()
  503.     {
  504.         return $this->over;
  505.     }
  506.     /**
  507.      * Set opIva
  508.      *
  509.      * @param string $opIva
  510.      *
  511.      * @return ReservationService
  512.      */
  513.     public function setOpIva($opIva)
  514.     {
  515.         $this->opIva $opIva;
  516.         return $this;
  517.     }
  518.     /**
  519.      * Get opIva
  520.      *
  521.      * @return string
  522.      */
  523.     public function getOpIva()
  524.     {
  525.         return $this->opIva;
  526.     }
  527.     public function getIva(): ?string
  528.     {
  529.         return $this->iva;
  530.     }
  531.     public function setIva(?string $iva): self
  532.     {
  533.         $this->iva $iva;
  534.         return $this;
  535.     }
  536.     // El "?" permite que devuelva el objeto O null sin fallar
  537.     public function getSageIva(): ?SageVatRates
  538.     {
  539.         return $this->sageIva;
  540.     }
  541.     public function setSageIva(?SageVatRates $sageIva): self
  542.     {
  543.         $this->sageIva $sageIva;
  544.         return $this;
  545.     }
  546.     public function getIvaSupplier(): ?SageVatRates
  547.     {
  548.         return $this->ivaSupplier;
  549.     }
  550.     public function setIvaSupplier(?SageVatRates $ivaSupplier): self
  551.     {
  552.         $this->ivaSupplier $ivaSupplier;
  553.         return $this;
  554.     }
  555.     /**
  556.      * Set pax
  557.      *
  558.      * @param string $pax
  559.      *
  560.      * @return ReservationService
  561.      */
  562.     public function setPax($pax)
  563.     {
  564.         $this->pax $pax;
  565.         return $this;
  566.     }
  567.     /**
  568.      * Get pax
  569.      *
  570.      * @return string
  571.      */
  572.     public function getPax()
  573.     {
  574.         return $this->pax;
  575.     }
  576.     /**
  577.      * Set hour
  578.      *
  579.      * @param string $hour
  580.      *
  581.      * @return ReservationService
  582.      */
  583.     public function setHour($hour)
  584.     {
  585.         $this->hour $hour;
  586.         return $this;
  587.     }
  588.     /**
  589.      * Get hour
  590.      *
  591.      * @return string
  592.      */
  593.     public function getHour()
  594.     {
  595.         return $this->hour;
  596.     }
  597.     /**
  598.      * Set dateInAt
  599.      *
  600.      * @param \DateTime $dateInAt
  601.      *
  602.      * @return ReservationService
  603.      */
  604.     public function setDateInAt($dateInAt)
  605.     {
  606.         $this->dateInAt $dateInAt;
  607.         return $this;
  608.     }
  609.     /**
  610.      * Get dateInAt
  611.      *
  612.      * @return \DateTime
  613.      */
  614.     public function getDateInAt()
  615.     {
  616.         return $this->dateInAt;
  617.     }
  618.     /**
  619.      * Set dateOutAt
  620.      *
  621.      * @param \DateTime $dateOutAt
  622.      *
  623.      * @return ReservationService
  624.      */
  625.     public function setDateOutAt($dateOutAt)
  626.     {
  627.         $this->dateOutAt $dateOutAt;
  628.         return $this;
  629.     }
  630.     /**
  631.      * Get dateOutAt
  632.      *
  633.      * @return \DateTime
  634.      */
  635.     public function getDateOutAt()
  636.     {
  637.         return $this->dateOutAt;
  638.     }
  639.     /**
  640.      * Set contcolor
  641.      *
  642.      * @param string $contcolor
  643.      *
  644.      * @return ReservationService
  645.      */
  646.     public function setContcolor($contcolor)
  647.     {
  648.         $this->contcolor $contcolor;
  649.         return $this;
  650.     }
  651.     /**
  652.      * Get contcolor
  653.      *
  654.      * @return string
  655.      */
  656.     public function getContcolor()
  657.     {
  658.         return $this->contcolor;
  659.     }
  660.     /**
  661.      * Set rank
  662.      *
  663.      * @param string $rank
  664.      *
  665.      * @return ReservationService
  666.      */
  667.     public function setRank($rank)
  668.     {
  669.         $this->rank $rank;
  670.         return $this;
  671.     }
  672.     /**
  673.      * Get rank
  674.      *
  675.      * @return string
  676.      */
  677.     public function getRank()
  678.     {
  679.         return $this->rank;
  680.     }
  681.     /**
  682.      * Set assistantId
  683.      *
  684.      * @param integer $assistantId
  685.      *
  686.      * @return ReservationService
  687.      */
  688.     public function setAssistantId($assistantId)
  689.     {
  690.         $this->assistantId $assistantId;
  691.         return $this;
  692.     }
  693.     /**
  694.      * Get assistantId
  695.      *
  696.      * @return int
  697.      */
  698.     public function getAssistantId()
  699.     {
  700.         return $this->assistantId;
  701.     }
  702.     /**
  703.      * Set activityId
  704.      *
  705.      * @param integer $activityId
  706.      *
  707.      * @return ReservationService
  708.      */
  709.     public function setActivityId($activityId)
  710.     {
  711.         $this->activityId $activityId;
  712.         return $this;
  713.     }
  714.     /**
  715.      * Get activityId
  716.      *
  717.      * @return int
  718.      */
  719.     public function getActivityId()
  720.     {
  721.         return $this->activityId;
  722.     }
  723.     /**
  724.      * Set pay
  725.      *
  726.      * @param integer $pay
  727.      *
  728.      * @return ReservationService
  729.      */
  730.     public function setPay($pay)
  731.     {
  732.         $this->pay $pay;
  733.         return $this;
  734.     }
  735.     /**
  736.      * Get pay
  737.      *
  738.      * @return int
  739.      */
  740.     public function getPay()
  741.     {
  742.         return $this->pay;
  743.     }
  744.     /**
  745.      * Set createdAt
  746.      *
  747.      * @param \DateTime $createdAt
  748.      *
  749.      * @return ReservationService
  750.      */
  751.     public function setCreatedAt($createdAt)
  752.     {
  753.         $this->createdAt $createdAt;
  754.         return $this;
  755.     }
  756.     /**
  757.      * Get createdAt
  758.      *
  759.      * @return \DateTime
  760.      */
  761.     public function getCreatedAt()
  762.     {
  763.         return $this->createdAt;
  764.     }
  765.     /**
  766.      * Set createdId
  767.      *
  768.      * @param integer $createdId
  769.      *
  770.      * @return ReservationService
  771.      */
  772.     public function setCreatedId($createdId)
  773.     {
  774.         $this->createdId $createdId;
  775.         return $this;
  776.     }
  777.     /**
  778.      * Get createdId
  779.      *
  780.      * @return int
  781.      */
  782.     public function getCreatedId()
  783.     {
  784.         return $this->createdId;
  785.     }
  786.     /**
  787.      * Set updatedId
  788.      *
  789.      * @param integer $updatedId
  790.      *
  791.      * @return ReservationService
  792.      */
  793.     public function setUpdatedId($updatedId)
  794.     {
  795.         $this->updatedId $updatedId;
  796.         return $this;
  797.     }
  798.     /**
  799.      * Get updatedId
  800.      *
  801.      * @return int
  802.      */
  803.     public function getUpdatedId()
  804.     {
  805.         return $this->updatedId;
  806.     }
  807.     /**
  808.      * Set updatedAt
  809.      *
  810.      * @param \DateTime $updatedAt
  811.      *
  812.      * @return ReservationService
  813.      */
  814.     public function setUpdatedAt($updatedAt)
  815.     {
  816.         $this->updatedAt $updatedAt;
  817.         return $this;
  818.     }
  819.     /**
  820.      * Get updatedAt
  821.      *
  822.      * @return \DateTime
  823.      */
  824.     public function getUpdatedAt()
  825.     {
  826.         return $this->updatedAt;
  827.     }
  828.     /**
  829.      * @ORM\PrePersist
  830.      */
  831.     public function setCreatedAtValue()
  832.     {
  833.         $this->createdAt = new \Datetime();
  834.     }
  835.     /**
  836.      * @ORM\PrePersist
  837.      * @ORM\PreUpdate
  838.      */
  839.     public function setUpdatedAtValue()
  840.     {
  841.         $this->updatedAt = new \Datetime();
  842.     }
  843.     /**
  844.      * Set toinvoice
  845.      *
  846.      * @param boolean $toinvoice
  847.      *
  848.      * @return ReservationService
  849.      */
  850.     public function setToinvoice($toinvoice)
  851.     {
  852.         $this->toinvoice $toinvoice;
  853.         return $this;
  854.     }
  855.     /**
  856.      * Get toinvoice
  857.      *
  858.      * @return boolean
  859.      */
  860.     public function getToinvoice()
  861.     {
  862.         return $this->toinvoice;
  863.     }
  864.     public function getHtItem(): ?HtItem
  865.     {
  866.         return $this->htItem;
  867.     }
  868.     public function setHtItem(?HtItem $htItem): self
  869.     {
  870.         // unset the owning side of the relation if necessary
  871.         if ($htItem === null && $this->htItem !== null) {
  872.             $this->htItem->setReservationService(null);
  873.         }
  874.         // set the owning side of the relation if necessary
  875.         if ($htItem !== null && $htItem->getReservationService() !== $this) {
  876.             $htItem->setReservationService($this);
  877.         }
  878.         $this->htItem $htItem;
  879.         return $this;
  880.     }
  881.     /**
  882.      * Set viewInfo
  883.      *
  884.      * @param boolean $viewInfo
  885.      *
  886.      * @return ReservationService
  887.      */
  888.     public function setViewInfo($viewInfo)
  889.     {
  890.         $this->viewInfo $viewInfo;
  891.         return $this;
  892.     }
  893.     /**
  894.      * Get viewInfo
  895.      *
  896.      * @return boolean
  897.      */
  898.     public function getViewInfo()
  899.     {
  900.         return $this->viewInfo;
  901.     }
  902.     public function getSageArticle(): ?SageArticle
  903.     {
  904.         return $this->sageArticle;
  905.     }
  906.     public function setSageArticle(?SageArticle $sageArticle): self
  907.     {
  908.         $this->sageArticle $sageArticle;
  909.         return $this;
  910.     }
  911.     public function getSageArticleSupplier(): ?SageArticle
  912.     {
  913.         return $this->sageArticleSupplier;
  914.     }
  915.     public function setSageArticleSupplier(?SageArticle $sageArticleSupplier): self
  916.     {
  917.         $this->sageArticleSupplier $sageArticleSupplier;
  918.         return $this;
  919.     }
  920.     public function isSentToSage(): bool
  921.     {
  922.         return $this->sentToSage;
  923.     }
  924.     public function setSentToSage(bool $sentToSage): self
  925.     {
  926.         $this->sentToSage $sentToSage;
  927.         return $this;
  928.     }
  929. }