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.     public function getSageIva(): SageVatRates
  537.     {
  538.         return $this->sageIva;
  539.     }
  540.     public function setSageIva(?SageVatRates $sageIva): self
  541.     {
  542.         $this->sageIva $sageIva;
  543.         return $this;
  544.     }
  545.     public function getIvaSupplier(): ?SageVatRates
  546.     {
  547.         return $this->ivaSupplier;
  548.     }
  549.     public function setIvaSupplier(?SageVatRates $ivaSupplier): self
  550.     {
  551.         $this->ivaSupplier $ivaSupplier;
  552.         return $this;
  553.     }
  554.     /**
  555.      * Set pax
  556.      *
  557.      * @param string $pax
  558.      *
  559.      * @return ReservationService
  560.      */
  561.     public function setPax($pax)
  562.     {
  563.         $this->pax $pax;
  564.         return $this;
  565.     }
  566.     /**
  567.      * Get pax
  568.      *
  569.      * @return string
  570.      */
  571.     public function getPax()
  572.     {
  573.         return $this->pax;
  574.     }
  575.     /**
  576.      * Set hour
  577.      *
  578.      * @param string $hour
  579.      *
  580.      * @return ReservationService
  581.      */
  582.     public function setHour($hour)
  583.     {
  584.         $this->hour $hour;
  585.         return $this;
  586.     }
  587.     /**
  588.      * Get hour
  589.      *
  590.      * @return string
  591.      */
  592.     public function getHour()
  593.     {
  594.         return $this->hour;
  595.     }
  596.     /**
  597.      * Set dateInAt
  598.      *
  599.      * @param \DateTime $dateInAt
  600.      *
  601.      * @return ReservationService
  602.      */
  603.     public function setDateInAt($dateInAt)
  604.     {
  605.         $this->dateInAt $dateInAt;
  606.         return $this;
  607.     }
  608.     /**
  609.      * Get dateInAt
  610.      *
  611.      * @return \DateTime
  612.      */
  613.     public function getDateInAt()
  614.     {
  615.         return $this->dateInAt;
  616.     }
  617.     /**
  618.      * Set dateOutAt
  619.      *
  620.      * @param \DateTime $dateOutAt
  621.      *
  622.      * @return ReservationService
  623.      */
  624.     public function setDateOutAt($dateOutAt)
  625.     {
  626.         $this->dateOutAt $dateOutAt;
  627.         return $this;
  628.     }
  629.     /**
  630.      * Get dateOutAt
  631.      *
  632.      * @return \DateTime
  633.      */
  634.     public function getDateOutAt()
  635.     {
  636.         return $this->dateOutAt;
  637.     }
  638.     /**
  639.      * Set contcolor
  640.      *
  641.      * @param string $contcolor
  642.      *
  643.      * @return ReservationService
  644.      */
  645.     public function setContcolor($contcolor)
  646.     {
  647.         $this->contcolor $contcolor;
  648.         return $this;
  649.     }
  650.     /**
  651.      * Get contcolor
  652.      *
  653.      * @return string
  654.      */
  655.     public function getContcolor()
  656.     {
  657.         return $this->contcolor;
  658.     }
  659.     /**
  660.      * Set rank
  661.      *
  662.      * @param string $rank
  663.      *
  664.      * @return ReservationService
  665.      */
  666.     public function setRank($rank)
  667.     {
  668.         $this->rank $rank;
  669.         return $this;
  670.     }
  671.     /**
  672.      * Get rank
  673.      *
  674.      * @return string
  675.      */
  676.     public function getRank()
  677.     {
  678.         return $this->rank;
  679.     }
  680.     /**
  681.      * Set assistantId
  682.      *
  683.      * @param integer $assistantId
  684.      *
  685.      * @return ReservationService
  686.      */
  687.     public function setAssistantId($assistantId)
  688.     {
  689.         $this->assistantId $assistantId;
  690.         return $this;
  691.     }
  692.     /**
  693.      * Get assistantId
  694.      *
  695.      * @return int
  696.      */
  697.     public function getAssistantId()
  698.     {
  699.         return $this->assistantId;
  700.     }
  701.     /**
  702.      * Set activityId
  703.      *
  704.      * @param integer $activityId
  705.      *
  706.      * @return ReservationService
  707.      */
  708.     public function setActivityId($activityId)
  709.     {
  710.         $this->activityId $activityId;
  711.         return $this;
  712.     }
  713.     /**
  714.      * Get activityId
  715.      *
  716.      * @return int
  717.      */
  718.     public function getActivityId()
  719.     {
  720.         return $this->activityId;
  721.     }
  722.     /**
  723.      * Set pay
  724.      *
  725.      * @param integer $pay
  726.      *
  727.      * @return ReservationService
  728.      */
  729.     public function setPay($pay)
  730.     {
  731.         $this->pay $pay;
  732.         return $this;
  733.     }
  734.     /**
  735.      * Get pay
  736.      *
  737.      * @return int
  738.      */
  739.     public function getPay()
  740.     {
  741.         return $this->pay;
  742.     }
  743.     /**
  744.      * Set createdAt
  745.      *
  746.      * @param \DateTime $createdAt
  747.      *
  748.      * @return ReservationService
  749.      */
  750.     public function setCreatedAt($createdAt)
  751.     {
  752.         $this->createdAt $createdAt;
  753.         return $this;
  754.     }
  755.     /**
  756.      * Get createdAt
  757.      *
  758.      * @return \DateTime
  759.      */
  760.     public function getCreatedAt()
  761.     {
  762.         return $this->createdAt;
  763.     }
  764.     /**
  765.      * Set createdId
  766.      *
  767.      * @param integer $createdId
  768.      *
  769.      * @return ReservationService
  770.      */
  771.     public function setCreatedId($createdId)
  772.     {
  773.         $this->createdId $createdId;
  774.         return $this;
  775.     }
  776.     /**
  777.      * Get createdId
  778.      *
  779.      * @return int
  780.      */
  781.     public function getCreatedId()
  782.     {
  783.         return $this->createdId;
  784.     }
  785.     /**
  786.      * Set updatedId
  787.      *
  788.      * @param integer $updatedId
  789.      *
  790.      * @return ReservationService
  791.      */
  792.     public function setUpdatedId($updatedId)
  793.     {
  794.         $this->updatedId $updatedId;
  795.         return $this;
  796.     }
  797.     /**
  798.      * Get updatedId
  799.      *
  800.      * @return int
  801.      */
  802.     public function getUpdatedId()
  803.     {
  804.         return $this->updatedId;
  805.     }
  806.     /**
  807.      * Set updatedAt
  808.      *
  809.      * @param \DateTime $updatedAt
  810.      *
  811.      * @return ReservationService
  812.      */
  813.     public function setUpdatedAt($updatedAt)
  814.     {
  815.         $this->updatedAt $updatedAt;
  816.         return $this;
  817.     }
  818.     /**
  819.      * Get updatedAt
  820.      *
  821.      * @return \DateTime
  822.      */
  823.     public function getUpdatedAt()
  824.     {
  825.         return $this->updatedAt;
  826.     }
  827.     /**
  828.      * @ORM\PrePersist
  829.      */
  830.     public function setCreatedAtValue()
  831.     {
  832.         $this->createdAt = new \Datetime();
  833.     }
  834.     /**
  835.      * @ORM\PrePersist
  836.      * @ORM\PreUpdate
  837.      */
  838.     public function setUpdatedAtValue()
  839.     {
  840.         $this->updatedAt = new \Datetime();
  841.     }
  842.     /**
  843.      * Set toinvoice
  844.      *
  845.      * @param boolean $toinvoice
  846.      *
  847.      * @return ReservationService
  848.      */
  849.     public function setToinvoice($toinvoice)
  850.     {
  851.         $this->toinvoice $toinvoice;
  852.         return $this;
  853.     }
  854.     /**
  855.      * Get toinvoice
  856.      *
  857.      * @return boolean
  858.      */
  859.     public function getToinvoice()
  860.     {
  861.         return $this->toinvoice;
  862.     }
  863.     public function getHtItem(): ?HtItem
  864.     {
  865.         return $this->htItem;
  866.     }
  867.     public function setHtItem(?HtItem $htItem): self
  868.     {
  869.         // unset the owning side of the relation if necessary
  870.         if ($htItem === null && $this->htItem !== null) {
  871.             $this->htItem->setReservationService(null);
  872.         }
  873.         // set the owning side of the relation if necessary
  874.         if ($htItem !== null && $htItem->getReservationService() !== $this) {
  875.             $htItem->setReservationService($this);
  876.         }
  877.         $this->htItem $htItem;
  878.         return $this;
  879.     }
  880.     /**
  881.      * Set viewInfo
  882.      *
  883.      * @param boolean $viewInfo
  884.      *
  885.      * @return ReservationService
  886.      */
  887.     public function setViewInfo($viewInfo)
  888.     {
  889.         $this->viewInfo $viewInfo;
  890.         return $this;
  891.     }
  892.     /**
  893.      * Get viewInfo
  894.      *
  895.      * @return boolean
  896.      */
  897.     public function getViewInfo()
  898.     {
  899.         return $this->viewInfo;
  900.     }
  901.     public function getSageArticle(): ?SageArticle
  902.     {
  903.         return $this->sageArticle;
  904.     }
  905.     public function setSageArticle(?SageArticle $sageArticle): self
  906.     {
  907.         $this->sageArticle $sageArticle;
  908.         return $this;
  909.     }
  910.     public function getSageArticleSupplier(): ?SageArticle
  911.     {
  912.         return $this->sageArticleSupplier;
  913.     }
  914.     public function setSageArticleSupplier(?SageArticle $sageArticleSupplier): self
  915.     {
  916.         $this->sageArticleSupplier $sageArticleSupplier;
  917.         return $this;
  918.     }
  919.     public function isSentToSage(): bool
  920.     {
  921.         return $this->sentToSage;
  922.     }
  923.     public function setSentToSage(bool $sentToSage): self
  924.     {
  925.         $this->sentToSage $sentToSage;
  926.         return $this;
  927.     }
  928. }