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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\HotelBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpecialDiscountReservationHotel.
  6.  *
  7.  * @ORM\Table(name="special_discount_reservation_hotel")
  8.  * @ORM\Entity
  9.  */
  10. class SpecialDiscountReservationHotel
  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\HotelBundle\Entity\SpecialDiscountHotel", inversedBy="specialDiscountReservationHotel", cascade={"all"})
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="special_discount_hotel_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\HotelBundle\Entity\SpecialDiscountHotel $specialDiscountHotel null;
  28.     /**
  29.      *
  30.      * @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\OrderProduct")
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null;
  36.     /**
  37.      * @var float
  38.      *
  39.      * @ORM\Column(name="value", type="decimal", scale=2)
  40.      */
  41.     private $value;
  42.     /**
  43.      * @var float
  44.      *
  45.      * @ORM\Column(name="discount", type="decimal", scale=2)
  46.      */
  47.     private $discount;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="additionalInfo", type="text")
  52.      */
  53.     private $additionalinfo;
  54.     /**
  55.      * @var \DateTime
  56.      *
  57.      * @ORM\Column(name="creationDate", type="datetime")
  58.      */
  59.     private $creationdate;
  60.     /**
  61.      * Get id.
  62.      *
  63.      * @return int
  64.      */
  65.     public function getId()
  66.     {
  67.         return $this->id;
  68.     }
  69.     /**
  70.      * Set specialDiscountHotel.
  71.      *
  72.      * @param \Aviatur\HotelBundle\Entity\SpecialDiscountHotel $specialDiscountHotel
  73.      *
  74.      * @return SpecialDiscountReservationHotel
  75.      */
  76.     public function setSpecialDiscountHotel(\Aviatur\HotelBundle\Entity\SpecialDiscountHotel $specialDiscountHotel null)
  77.     {
  78.         $this->specialDiscountHotel $specialDiscountHotel;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get specialDiscountHotel.
  83.      *
  84.      * @return string
  85.      */
  86.     public function getSpecialDiscountHotel()
  87.     {
  88.         return $this->specialDiscountHotel;
  89.     }
  90.     /**
  91.      * Set orderProduct.
  92.      *
  93.      * @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct
  94.      *
  95.      * @return SpecialDiscountReservationHotel
  96.      */
  97.     public function setOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null)
  98.     {
  99.         $this->orderProduct $orderProduct;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get orderProduct.
  104.      *
  105.      * @return string
  106.      */
  107.     public function getOrderProduct()
  108.     {
  109.         return $this->orderProduct;
  110.     }
  111.     /**
  112.      * Set value.
  113.      *
  114.      * @param string $value
  115.      *
  116.      * @return SpecialDiscountReservationHotel
  117.      */
  118.     public function setValue($value)
  119.     {
  120.         $this->value $value;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get value.
  125.      *
  126.      * @return string
  127.      */
  128.     public function getValue()
  129.     {
  130.         return $this->value;
  131.     }
  132.     /**
  133.      * Set discount.
  134.      *
  135.      * @param string $discount
  136.      *
  137.      * @return SpecialDiscountReservationHotel
  138.      */
  139.     public function setDiscount($discount)
  140.     {
  141.         $this->discount $discount;
  142.         return $this;
  143.     }
  144.     /**
  145.      * Get discount.
  146.      *
  147.      * @return string
  148.      */
  149.     public function getDiscount()
  150.     {
  151.         return $this->discount;
  152.     }
  153.     /**
  154.      * Set additionalinfo.
  155.      *
  156.      * @param string $additionalinfo
  157.      *
  158.      * @return SpecialDiscountReservationHotel
  159.      */
  160.     public function setAdditionalinfo($additionalinfo)
  161.     {
  162.         $this->additionalinfo $additionalinfo;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get additionalinfo.
  167.      *
  168.      * @return string
  169.      */
  170.     public function getAdditionalinfo()
  171.     {
  172.         return $this->additionalinfo;
  173.     }
  174.     /**
  175.      * Set creationdate.
  176.      *
  177.      * @param string $creationdate
  178.      *
  179.      * @return SpecialDiscountReservationHotel
  180.      */
  181.     public function setCreationdate($creationdate)
  182.     {
  183.         $this->creationdate $creationdate;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get creationdate.
  188.      *
  189.      * @return string
  190.      */
  191.     public function getCreationdate()
  192.     {
  193.         return $this->creationdate;
  194.     }
  195. }