src/MDS/GreenPatioBundle/Entity/ReservationService.php line 15

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