src/MDS/EventsBundle/Entity/ProposalSupplierServicesBudget.php line 17

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