src/Aviatur/HotelBundle/Entity/SpecialDiscountHotel.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\HotelBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpecialDiscountHotel.
  6.  *
  7.  * @ORM\Table(name="special_discount_hotel")
  8.  * @ORM\Entity
  9.  */
  10. class SpecialDiscountHotel
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign", inversedBy="specialDiscountHotel")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="special_discount_campaign_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign null;
  28.     /**
  29.      *
  30.      * @ORM\ManyToOne(targetEntity="\Aviatur\TrmBundle\Entity\Currency")
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="currency_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private ?\Aviatur\TrmBundle\Entity\Currency $currency null;
  36.     /**
  37.      * @var float
  38.      *
  39.      * @ORM\Column(name="amount", type="decimal", scale=2, nullable=false)
  40.      */
  41.     private $amount;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="description", type="text")
  46.      */
  47.     private $description;
  48.     /**
  49.      * @var float
  50.      *
  51.      * @ORM\Column(name="minPurchaseAmount", type="decimal", scale=2)
  52.      */
  53.     private $minpurchaseamount;
  54.     /**
  55.      * @var float
  56.      *
  57.      * @ORM\Column(name="discountLimit", type="decimal", scale=2)
  58.      */
  59.     private $discountlimit;
  60.     /**
  61.      * @var string
  62.      *
  63.      * @ORM\Column(name="discountRegion", type="string", length=255, nullable=false)
  64.      */
  65.     private $discountregion;
  66.     /**
  67.      * @var float
  68.      *
  69.      * @ORM\Column(name="discountLimitConsumed", type="decimal", scale=2)
  70.      */
  71.     private $discountlimitconsumed;
  72.     /**
  73.      * @var int
  74.      *
  75.      * @ORM\Column(name="minNights", type="integer", nullable=false)
  76.      */
  77.     private $minnights;
  78.     /**
  79.      * @var \DateTime
  80.      *
  81.      * @ORM\Column(name="startDate", type="datetime")
  82.      */
  83.     private $startdate;
  84.     /**
  85.      * @var \DateTime
  86.      *
  87.      * @ORM\Column(name="finishDate", type="datetime")
  88.      */
  89.     private $finishdate;
  90.     /**
  91.      * @var \DateTime
  92.      *
  93.      * @ORM\Column(name="creationDate", type="datetime", nullable=false)
  94.      */
  95.     private $creationdate;
  96.     /**
  97.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  98.      */
  99.     private bool $isactive false;
  100.     /**
  101.      * @var string
  102.      *
  103.      * @ORM\Column(name="params", type="text")
  104.      */
  105.     private $params;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity="Aviatur\HotelBundle\Entity\SpecialDiscountReservationHotel", mappedBy="specialDiscountHotel")
  108.      */
  109.     private $specialDiscountReservationHotel;
  110.     /**
  111.      * Constructor.
  112.      */
  113.     public function __construct()
  114.     {
  115.         $this->specialDiscountReservationHotel = new \Doctrine\Common\Collections\ArrayCollection();
  116.     }
  117.     /**
  118.      * Get id.
  119.      *
  120.      * @return int
  121.      */
  122.     public function getId()
  123.     {
  124.         return $this->id;
  125.     }
  126.     /**
  127.      * Set specialDiscountCampaign.
  128.      *
  129.      * @param \Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign
  130.      *
  131.      * @return SpecialDiscountHotel
  132.      */
  133.     public function setSpecialDiscountCampaign(\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign null)
  134.     {
  135.         $this->specialDiscountCampaign $specialDiscountCampaign;
  136.         return $this;
  137.     }
  138.     /**
  139.      * Get specialDiscountCampaign.
  140.      *
  141.      * @return int
  142.      */
  143.     public function getSpecialDiscountCampaign()
  144.     {
  145.         return $this->specialDiscountCampaign;
  146.     }
  147.     /**
  148.      * Set currency.
  149.      *
  150.      * @param \Aviatur\TrmBundle\Entity\Currency $currency
  151.      *
  152.      * @return SpecialDiscountHotel
  153.      */
  154.     public function setCurrency(\Aviatur\TrmBundle\Entity\Currency $currency null)
  155.     {
  156.         $this->currency $currency;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get currency.
  161.      *
  162.      * @return int
  163.      */
  164.     public function getCurrency()
  165.     {
  166.         return $this->currency;
  167.     }
  168.     /**
  169.      * Set amount.
  170.      *
  171.      * @param string $amount
  172.      *
  173.      * @return SpecialDiscountHotel
  174.      */
  175.     public function setAmount($amount)
  176.     {
  177.         $this->amount $amount;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get amount.
  182.      *
  183.      * @return decimal
  184.      */
  185.     public function getAmount()
  186.     {
  187.         return $this->amount;
  188.     }
  189.     /**
  190.      * Set description.
  191.      *
  192.      * @param string $description
  193.      *
  194.      * @return SpecialDiscountHotel
  195.      */
  196.     public function setDescription($description)
  197.     {
  198.         $this->description $description;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get description.
  203.      *
  204.      * @return string
  205.      */
  206.     public function getDescription()
  207.     {
  208.         return $this->description;
  209.     }
  210.     /**
  211.      * Set minpurchaseamount.
  212.      *
  213.      * @param string $minpurchaseamount
  214.      *
  215.      * @return SpecialDiscountHotel
  216.      */
  217.     public function setMinpurchaseamount($minpurchaseamount)
  218.     {
  219.         $this->minpurchaseamount $minpurchaseamount;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get minpurchaseamount.
  224.      *
  225.      * @return decimal
  226.      */
  227.     public function getMinpurchaseamount()
  228.     {
  229.         return $this->minpurchaseamount;
  230.     }
  231.     /**
  232.      * Set discountlimit.
  233.      *
  234.      * @param string $discountlimit
  235.      *
  236.      * @return SpecialDiscountHotel
  237.      */
  238.     public function setDiscountlimit($discountlimit)
  239.     {
  240.         $this->discountlimit $discountlimit;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get discountlimit.
  245.      *
  246.      * @return decimal
  247.      */
  248.     public function getDiscountlimit()
  249.     {
  250.         return $this->discountlimit;
  251.     }
  252.     /**
  253.      * Set discountregion.
  254.      *
  255.      * @param string $discountregion
  256.      *
  257.      * @return SpecialDiscountHotel
  258.      */
  259.     public function setDiscountregion($discountregion)
  260.     {
  261.         $this->discountregion $discountregion;
  262.         return $this;
  263.     }
  264.     /**
  265.      * Get discountregion.
  266.      *
  267.      * @return string
  268.      */
  269.     public function getDiscountregion()
  270.     {
  271.         return $this->discountregion;
  272.     }
  273.     /**
  274.      * Set discountlimitconsumed.
  275.      *
  276.      * @param string $discountlimitconsumed
  277.      *
  278.      * @return SpecialDiscountHotel
  279.      */
  280.     public function setDiscountlimitconsumed($discountlimitconsumed)
  281.     {
  282.         $this->discountlimitconsumed $discountlimitconsumed;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get discountlimitconsumed.
  287.      *
  288.      * @return decimal
  289.      */
  290.     public function getDiscountlimitconsumed()
  291.     {
  292.         return $this->discountlimitconsumed;
  293.     }
  294.     /**
  295.      * Set minnights.
  296.      *
  297.      * @param string $minnights
  298.      *
  299.      * @return SpecialDiscountHotel
  300.      */
  301.     public function setMinnights($minnights)
  302.     {
  303.         $this->minnights $minnights;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get minnights.
  308.      *
  309.      * @return int
  310.      */
  311.     public function getMinnights()
  312.     {
  313.         return $this->minnights;
  314.     }
  315.     /**
  316.      * Set startdate.
  317.      *
  318.      * @param string $startdate
  319.      *
  320.      * @return SpecialDiscountHotel
  321.      */
  322.     public function setStartdate($startdate)
  323.     {
  324.         $this->startdate $startdate;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get startdate.
  329.      *
  330.      * @return \DateTime
  331.      */
  332.     public function getStartdate()
  333.     {
  334.         return $this->startdate;
  335.     }
  336.     /**
  337.      * Set finishdate.
  338.      *
  339.      * @param string $finishdate
  340.      *
  341.      * @return SpecialDiscountHotel
  342.      */
  343.     public function setFinishdate($finishdate)
  344.     {
  345.         $this->finishdate $finishdate;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get finishdate.
  350.      *
  351.      * @return \DateTime
  352.      */
  353.     public function getFinishdate()
  354.     {
  355.         return $this->finishdate;
  356.     }
  357.     /**
  358.      * Set creationdate.
  359.      *
  360.      * @param string $creationdate
  361.      *
  362.      * @return SpecialDiscountHotel
  363.      */
  364.     public function setCreationdate($creationdate)
  365.     {
  366.         $this->creationdate $creationdate;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get creationdate.
  371.      *
  372.      * @return \DateTime
  373.      */
  374.     public function getCreationdate()
  375.     {
  376.         return $this->creationdate;
  377.     }
  378.     /**
  379.      * Set isactive.
  380.      *
  381.      * @param bool $isactive
  382.      *
  383.      * @return SpecialDiscountHotel
  384.      */
  385.     public function setIsactive($isactive)
  386.     {
  387.         $this->isactive $isactive;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get isactive.
  392.      *
  393.      * @return bool
  394.      */
  395.     public function getIsactive()
  396.     {
  397.         return $this->isactive;
  398.     }
  399.     /**
  400.      * Set params.
  401.      *
  402.      * @param string $params
  403.      *
  404.      * @return SpecialDiscountHotel
  405.      */
  406.     public function setParams($params)
  407.     {
  408.         $this->params $params;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get params.
  413.      *
  414.      * @return string
  415.      */
  416.     public function getParams()
  417.     {
  418.         return $this->params;
  419.     }
  420.     /**
  421.      * Add specialDiscountReservationHotel.
  422.      *
  423.      * @return SpecialDiscountHotel
  424.      */
  425.     public function addSpecialDiscountReservationHotel(\Aviatur\HotelBundle\Entity\SpecialDiscountReservationHotel $specialDiscountReservationHotel)
  426.     {
  427.         $this->specialDiscountReservationHotel[] = $specialDiscountReservationHotel;
  428.         return $this;
  429.     }
  430.     /**
  431.      * Remove specialDiscountReservationHotel.
  432.      */
  433.     public function removeSpecialDiscountReservationHotel(\Aviatur\HotelBundle\Entity\SpecialDiscountReservationHotel $specialDiscountReservationHotel)
  434.     {
  435.         $this->specialDiscountReservationHotel->removeElement($specialDiscountReservationHotel);
  436.     }
  437.     /**
  438.      * Get specialDiscountReservationHotel.
  439.      *
  440.      * @return \Doctrine\Common\Collections\Collection
  441.      */
  442.     public function getSpecialDiscountReservationHotel()
  443.     {
  444.         return $this->specialDiscountReservationHotel;
  445.     }
  446. }