src/MDS/VenuesBundle/Entity/ReservationLoungeSimpleServiceLog.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\MDS\VenuesBundle\Entity;
  3. use App\Constants\LanguageConstants;
  4. use App\Entity\SageArticle;
  5. use App\Entity\SageVatRates;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  9. /**
  10.  * ReservationLoungeSimpleServiceLog
  11.  * Entidad para registrar los cambios en las cotizaciones de salas y servicios incluso despues de ser descartados
  12.  *
  13.  * @ORM\Table(
  14.  *     name="reservation_lounge_simple_service_log",
  15.  *      uniqueConstraints={ @ORM\UniqueConstraint(name="reserva_version_item_unique", columns={"reservaId", "version", "itemId", "itemType"} ) }
  16.  * )
  17.  *
  18.  * @ORM\Entity(repositoryClass="App\MDS\VenuesBundle\Repository\ReservationLoungeSimpleServiceLogRepository")
  19.  * @ORM\HasLifecycleCallbacks()
  20.  */
  21. class ReservationLoungeSimpleServiceLog
  22. {
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="id", type="integer")
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue(strategy="AUTO")
  29.      */
  30.     private $id;
  31.     /**
  32.      * @var int
  33.      *
  34.      * @ORM\Column(name="reservaId", type="integer")
  35.      */
  36.     private $reservaId;
  37.     /**
  38.      * @var int
  39.      *
  40.      * @ORM\Column(name="version", type="integer")
  41.      */
  42.     private $version;
  43.     /**
  44.      * @var int
  45.      *
  46.      * @ORM\Column(name="itemId", type="integer")
  47.      */
  48.     private $itemId;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="itemName", type="string", length=255)
  53.      */
  54.     private $itemName;
  55.     /**
  56.      * @var string
  57.      * Tipo de item: Sala o servicio
  58.      *
  59.      * @ORM\Column(name="itemType", type="string", length=255)
  60.      */
  61.     private $itemType;
  62.     /**
  63.      * @var \DateTime
  64.      *
  65.      * @ORM\Column(name="dateStart", type="datetime")
  66.      */
  67.     private $dateStart;
  68.     /**
  69.      * @var \DateTime
  70.      *
  71.      * @ORM\Column(name="dateEnd", type="datetime")
  72.      */
  73.     private $dateEnd;
  74.     /**
  75.      * @var int
  76.      *
  77.      * @ORM\Column(name="pax", type="integer")
  78.      */
  79.     private $pax;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="price", type="decimal", precision=10, scale=2)
  84.      */
  85.     private $price;
  86.     /**
  87.      * @var int
  88.      *
  89.      * @ORM\Column(name="agentId", type="integer")
  90.      */
  91.     private $agentId;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="agentName", type="string", length=255)
  96.      */
  97.     private $agentName;
  98.     /**
  99.      * @var int
  100.      *
  101.      * @ORM\Column(name="rankQuote", type="integer", nullable=true)
  102.      * Numero de cotizacion
  103.      */
  104.     private $rankQuote;
  105.     /**
  106.      * @var int
  107.      *
  108.      * @ORM\Column(name="idLounge", type="integer", nullable=true)
  109.      * Numero de la sala
  110.      */
  111.     private $idLounge;
  112.     /**
  113.      * @var \DateTime
  114.      *
  115.      * @ORM\Column(name="createdAt", type="datetime")
  116.      */
  117.     private $createdAt;
  118.     /**
  119.      * @var \DateTime|null
  120.      *
  121.      * @ORM\Column(name="updatedAt", type="datetime", nullable=true)
  122.      */
  123.     private $updatedAt;
  124. //    CAMPOS EXCLUSIVOS DEL SERVICIO
  125.     /**
  126.      * @var int
  127.      *
  128.      * @ORM\Column(name="serviceCatId", type="integer", nullable=true)
  129.      */
  130.     private $serviceCatId;
  131.     /**
  132.      * @var string
  133.      *
  134.      * @ORM\Column(name="serviceCatName", type="string", length=255, nullable=true)
  135.      */
  136.     private $serviceCatName;
  137.     /**
  138.      * @var string
  139.      *
  140.      * Cantidad
  141.      * @ORM\Column(name="units", type="string", length=255, nullable=true)
  142.      */
  143.     private $units;
  144.     /**
  145.      * @var string
  146.      *
  147.      * @ORM\Column(name="opCommission", type="string", length=255, nullable=true)
  148.      */
  149.     private $opCommission;
  150.     /**
  151.      * @var string
  152.      *
  153.      * @ORM\Column(name="commission", type="string", length=255, nullable=true)
  154.      */
  155.     private $commission;
  156.     /**
  157.      * @var string
  158.      *
  159.      * @ORM\Column(name="price_over", type="string", length=255, nullable=true)
  160.      */
  161.     private $priceOver;
  162.     /**
  163.      * @var bool
  164.      *
  165.      * Logico de "Aparece en factura"
  166.      * @ORM\Column(name="toinvoice", type="boolean", nullable=true)
  167.      */
  168.     private $toinvoice;
  169.     /**
  170.      * @var boolean
  171.      *
  172.      * Logico de "Añadir información extra a la cotización web"
  173.      * @ORM\Column(name="viewInfo", type="boolean", nullable=true)
  174.      */
  175.     private $viewInfo;
  176. //    CAMPOS EXCLUSIVOS DEL SERVICIO
  177.     public function getId()
  178.     {
  179.         return $this->id;
  180.     }
  181.     public function getReservaId()
  182.     {
  183.         return $this->reservaId;
  184.     }
  185.     public function setReservaId($reservaId)
  186.     {
  187.         $this->reservaId = $reservaId;
  188.         return $this;
  189.     }
  190.     public function getVersion()
  191.     {
  192.         return $this->version;
  193.     }
  194.     public function setVersion($version)
  195.     {
  196.         $this->version = $version;
  197.         return $this;
  198.     }
  199.     public function getItemId()
  200.     {
  201.         return $this->itemId;
  202.     }
  203.     public function setItemId($itemId)
  204.     {
  205.         $this->itemId = $itemId;
  206.         return $this;
  207.     }
  208.     public function getItemName()
  209.     {
  210.         return $this->itemName;
  211.     }
  212.     public function setItemName($itemName)
  213.     {
  214.         $this->itemName = $itemName;
  215.         return $this;
  216.     }
  217.     public function getItemType()
  218.     {
  219.         return $this->itemType;
  220.     }
  221.     public function setItemType($itemType)
  222.     {
  223.         $this->itemType = $itemType;
  224.         return $this;
  225.     }
  226.     public function getDateStart()
  227.     {
  228.         return $this->dateStart;
  229.     }
  230.     public function setDateStart(\DateTime $dateStart)
  231.     {
  232.         $this->dateStart = $dateStart;
  233.         return $this;
  234.     }
  235.     public function getDateEnd()
  236.     {
  237.         return $this->dateEnd;
  238.     }
  239.     public function setDateEnd(\DateTime $dateEnd)
  240.     {
  241.         $this->dateEnd = $dateEnd;
  242.         return $this;
  243.     }
  244.     public function getPax()
  245.     {
  246.         return $this->pax;
  247.     }
  248.     public function setPax($pax)
  249.     {
  250.         $this->pax = $pax;
  251.         return $this;
  252.     }
  253.     public function getPrice()
  254.     {
  255.         return $this->price;
  256.     }
  257.     public function setPrice($price)
  258.     {
  259.         $this->price = $price;
  260.         return $this;
  261.     }
  262.     public function getAgentId()
  263.     {
  264.         return $this->agentId;
  265.     }
  266.     public function setAgentId($agentId)
  267.     {
  268.         $this->agentId = $agentId;
  269.         return $this;
  270.     }
  271.     public function getAgentName()
  272.     {
  273.         return $this->agentName;
  274.     }
  275.     public function setAgentName($agentName)
  276.     {
  277.         $this->agentName = $agentName;
  278.         return $this;
  279.     }
  280.     /**
  281.      * Set units
  282.      *
  283.      * @param string $units
  284.      *
  285.      * @return ReservationLoungeSimpleServiceLog
  286.      */
  287.     public function setUnits($units)
  288.     {
  289.         $this->units = $units;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get units
  294.      *
  295.      * @return string
  296.      */
  297.     public function getUnits()
  298.     {
  299.         return $this->units;
  300.     }
  301.     /**
  302.      * Set opCommission
  303.      *
  304.      * @param string $opCommission
  305.      *
  306.      * @return ReservationLoungeSimpleServiceLog
  307.      */
  308.     public function setOpCommission($opCommission)
  309.     {
  310.         $this->opCommission = $opCommission;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get opCommission
  315.      *
  316.      * @return string
  317.      */
  318.     public function getOpCommission()
  319.     {
  320.         return $this->opCommission;
  321.     }
  322.     /**
  323.      * Set commission
  324.      *
  325.      * @param string $commission
  326.      *
  327.      * @return ReservationLoungeSimpleServiceLog
  328.      */
  329.     public function setCommission($commission)
  330.     {
  331.         $this->commission = $commission;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get commission
  336.      *
  337.      * @return string
  338.      */
  339.     public function getCommission()
  340.     {
  341.         return $this->commission;
  342.     }
  343.     /**
  344.      * Set priceOver
  345.      *
  346.      * @param string $priceOver
  347.      *
  348.      * @return ReservationLoungeSimpleServiceLog
  349.      */
  350.     public function setPriceOver($priceOver)
  351.     {
  352.         $this->priceOver = $priceOver;
  353.         return $this;
  354.     }
  355.     /**
  356.      * Get priceOver
  357.      *
  358.      * @return string
  359.      */
  360.     public function getPriceOver()
  361.     {
  362.         return $this->priceOver;
  363.     }
  364.     /**
  365.      * Set toinvoice
  366.      *
  367.      * @param boolean $toinvoice
  368.      *
  369.      * @return ReservationLoungeSimpleServiceLog
  370.      */
  371.     public function setToinvoice($toinvoice)
  372.     {
  373.         $this->toinvoice = $toinvoice;
  374.         return $this;
  375.     }
  376.     /**
  377.      * Get toinvoice
  378.      *
  379.      * @return boolean
  380.      */
  381.     public function getToinvoice()
  382.     {
  383.         return $this->toinvoice;
  384.     }
  385.     /**
  386.      * Set viewInfo
  387.      *
  388.      * @param boolean $viewInfo
  389.      *
  390.      * @return ReservationLoungeSimpleServiceLog
  391.      */
  392.     public function setViewInfo($viewInfo)
  393.     {
  394.         $this->viewInfo = $viewInfo;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get viewInfo
  399.      *
  400.      * @return boolean
  401.      */
  402.     public function getViewInfo()
  403.     {
  404.         return $this->viewInfo;
  405.     }
  406.     /**
  407.      * Set serviceCatId
  408.      *
  409.      * @param integer $serviceCatId
  410.      *
  411.      * @return ReservationLoungeSimpleServiceLog
  412.      */
  413.     public function setServiceCatId($serviceCatId)
  414.     {
  415.         $this->serviceCatId = $serviceCatId;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get serviceCatId
  420.      *
  421.      * @return int
  422.      */
  423.     public function getServiceCatId()
  424.     {
  425.         return $this->serviceCatId;
  426.     }
  427.     /**
  428.      * Set serviceCatName
  429.      *
  430.      * @param string $serviceCatName
  431.      *
  432.      * @return ReservationLoungeSimpleServiceLog
  433.      */
  434.     public function setServiceCatName($serviceCatName)
  435.     {
  436.         $this->serviceCatName = $serviceCatName;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get serviceCatName
  441.      *
  442.      * @return string
  443.      */
  444.     public function getServiceCatName()
  445.     {
  446.         return $this->serviceCatName;
  447.     }
  448.     /**
  449.      * Set rankQuote
  450.      *
  451.      * @param integer $rankQuote
  452.      *
  453.      * @return ReservationLoungeSimpleServiceLog
  454.      */
  455.     public function setRankQuote($rankQuote)
  456.     {
  457.         $this->rankQuote = $rankQuote;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get rankQuote
  462.      *
  463.      * @return int
  464.      */
  465.     public function getRankQuote()
  466.     {
  467.         return $this->rankQuote;
  468.     }
  469.     /**
  470.      * Set idLounge
  471.      *
  472.      * @param integer $idLounge
  473.      *
  474.      * @return ReservationLoungeSimpleServiceLog
  475.      */
  476.     public function setIdLounge($idLounge)
  477.     {
  478.         $this->idLounge = $idLounge;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get idLounge
  483.      *
  484.      * @return int
  485.      */
  486.     public function getIdLounge()
  487.     {
  488.         return $this->idLounge;
  489.     }
  490.     public function getCreatedAt()
  491.     {
  492.         return $this->createdAt;
  493.     }
  494.     public function getUpdatedAt()
  495.     {
  496.         return $this->updatedAt;
  497.     }
  498.     /**
  499.      * @ORM\PrePersist
  500.      */
  501.     public function setCreatedAtValue()
  502.     {
  503.         $this->createdAt = new \DateTime();
  504.     }
  505.     /**
  506.      * @ORM\PreUpdate
  507.      */
  508.     public function setUpdatedAtValue()
  509.     {
  510.         $this->updatedAt = new \DateTime();
  511.     }
  512. }