src/Aviatur/FlightBundle/Entity/SpecialDiscountAviatur.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\FlightBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpecialDiscountAviatur.
  6.  *
  7.  * @ORM\Table(name="special_discount_aviatur", indexes={@ORM\Index(name="airline_id", columns={"airline_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\FlightBundle\Entity\SpecialDiscountAviaturRepository")
  9.  */
  10. class SpecialDiscountAviatur
  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="specialDiscountAviatur")
  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\FlightBundle\Entity\Airline")
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="airline_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private ?\Aviatur\FlightBundle\Entity\Airline $airline null;
  36.     /**
  37.      *
  38.      * @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\SearchCities", inversedBy="specialDiscount")
  39.      * @ORM\JoinColumns({
  40.      *   @ORM\JoinColumn(name="search_cities_id", referencedColumnName="id")
  41.      * })
  42.      */
  43.     private ?\Aviatur\SearchBundle\Entity\SearchCities $searchCities null;
  44.     /**
  45.      *
  46.      * @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency")
  47.      * @ORM\JoinColumns({
  48.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  49.      * })
  50.      */
  51.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  52.     /**
  53.      * @var int
  54.      *
  55.      * @ORM\Column(name="discountType", type="integer", nullable=false)
  56.      */
  57.     private $discounttype;
  58.     /**
  59.      * @var float
  60.      *
  61.      * @ORM\Column(name="discountAmount", type="float", precision=10, scale=0, nullable=false)
  62.      */
  63.     private $discountamount;
  64.     /**
  65.      * @var \DateTime
  66.      *
  67.      * @ORM\Column(name="discountDateStart", type="datetime", nullable=false)
  68.      */
  69.     private $discountdatestart;
  70.     /**
  71.      * @var \DateTime
  72.      *
  73.      * @ORM\Column(name="discountDateEnd", type="datetime", nullable=false)
  74.      */
  75.     private $discountdateend;
  76.     /**
  77.      * @var \DateTime
  78.      *
  79.      * @ORM\Column(name="flightDateStart", type="datetime", nullable=false)
  80.      */
  81.     private $flightdatestart;
  82.     /**
  83.      * @var \DateTime
  84.      *
  85.      * @ORM\Column(name="flightDateEnd", type="datetime", nullable=false)
  86.      */
  87.     private $flightdateend;
  88.     /**
  89.      * @var string
  90.      *
  91.      * @ORM\Column(name="tourCode", type="string", length=50, nullable=true)
  92.      */
  93.     private $tourcode;
  94.     /**
  95.      * @var string
  96.      *
  97.      * @ORM\Column(name="fuelCost", type="string", length=50, nullable=true)
  98.      */
  99.     private $fuelcost;
  100.     /**
  101.      * @var int
  102.      *
  103.      * @ORM\Column(name="flightType", type="integer", nullable=true)
  104.      */
  105.     private $flighttype;
  106.     /**
  107.      * @var string
  108.      *
  109.      * @ORM\Column(name="specialConditions", type="text", nullable=true)
  110.      */
  111.     private $specialconditions;
  112.     /**
  113.      * @var string
  114.      *
  115.      * @ORM\Column(name="countryCodes", type="string", length=50, nullable=true)
  116.      */
  117.     private $countrycodes;
  118.     /**
  119.      * @var string
  120.      *
  121.      * @ORM\Column(name="providers", type="string", length=50, nullable=true)
  122.      */
  123.     private $providers;
  124.     /**
  125.      * @ORM\Column(name="isActive", type="boolean", nullable=true)
  126.      */
  127.     private bool $isactive false;
  128.     /**
  129.      * @ORM\OneToMany(targetEntity="SpecialDiscountReservationAviatur", mappedBy="specialDiscountAviatur", cascade={"all"})
  130.      */
  131.     private $specialDiscountReservationAviatur;
  132.     /**
  133.      * Constructor.
  134.      */
  135.     public function __construct()
  136.     {
  137.         $this->specialDiscountReservationAviatur = new \Doctrine\Common\Collections\ArrayCollection();
  138.     }
  139.     /**
  140.      * Get id.
  141.      *
  142.      * @return int
  143.      */
  144.     public function getId()
  145.     {
  146.         return $this->id;
  147.     }
  148.     /**
  149.      * Set specialDiscountCampaign.
  150.      *
  151.      * @param \Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign
  152.      *
  153.      * @return SpecialDiscountAviatur
  154.      */
  155.     public function setSpecialDiscountCampaign(\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign null)
  156.     {
  157.         $this->specialDiscountCampaign $specialDiscountCampaign;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get specialDiscountCampaign.
  162.      *
  163.      * @return int
  164.      */
  165.     public function getSpecialDiscountCampaign()
  166.     {
  167.         return $this->specialDiscountCampaign;
  168.     }
  169.     /**
  170.      * Set airline.
  171.      *
  172.      * @param \Aviatur\FlightBundle\Entity\Airline $airline
  173.      *
  174.      * @return SpecialDiscountAviatur
  175.      */
  176.     public function setAirline(\Aviatur\FlightBundle\Entity\Airline $airline null)
  177.     {
  178.         $this->airline $airline;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Get airline.
  183.      *
  184.      * @return \Aviatur\FlightBundle\Entity\Airline
  185.      */
  186.     public function getAirline()
  187.     {
  188.         return $this->airline;
  189.     }
  190.     /**
  191.      * Set searchCities.
  192.      *
  193.      * @param \Aviatur\SearchBundle\Entity\SearchCities $searchCities
  194.      *
  195.      * @return SpecialDiscountAviatur
  196.      */
  197.     public function setSearchCities(\Aviatur\SearchBundle\Entity\SearchCities $searchCities null)
  198.     {
  199.         $this->searchCities $searchCities;
  200.         return $this;
  201.     }
  202.     /**
  203.      * Get searchCities.
  204.      *
  205.      * @return \Aviatur\SearchBundle\Entity\SearchCities
  206.      */
  207.     public function getSearchCities()
  208.     {
  209.         return $this->searchCities;
  210.     }
  211.     /**
  212.      * Set agency.
  213.      *
  214.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  215.      *
  216.      * @return SpecialDiscountAviatur
  217.      */
  218.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  219.     {
  220.         $this->agency $agency;
  221.         return $this;
  222.     }
  223.     /**
  224.      * Get agency.
  225.      *
  226.      * @return \Aviatur\AgencyBundle\Entity\Agency
  227.      */
  228.     public function getAgency()
  229.     {
  230.         return $this->agency;
  231.     }
  232.     /**
  233.      * Set discounttype.
  234.      *
  235.      * @param int $discounttype
  236.      *
  237.      * @return SpecialDiscountAviatur
  238.      */
  239.     public function setDiscounttype($discounttype)
  240.     {
  241.         $this->discounttype $discounttype;
  242.         return $this;
  243.     }
  244.     /**
  245.      * Get discounttype.
  246.      *
  247.      * @return int
  248.      */
  249.     public function getDiscounttype()
  250.     {
  251.         return $this->discounttype;
  252.     }
  253.     /**
  254.      * Set discountamount.
  255.      *
  256.      * @param float $discountamount
  257.      *
  258.      * @return SpecialDiscountAviatur
  259.      */
  260.     public function setDiscountamount($discountamount)
  261.     {
  262.         $this->discountamount $discountamount;
  263.         return $this;
  264.     }
  265.     /**
  266.      * Get discountamount.
  267.      *
  268.      * @return float
  269.      */
  270.     public function getDiscountamount()
  271.     {
  272.         return $this->discountamount;
  273.     }
  274.     /**
  275.      * Set discountdatestart.
  276.      *
  277.      * @param \DateTime $discountdatestart
  278.      *
  279.      * @return SpecialDiscountAviatur
  280.      */
  281.     public function setDiscountdatestart($discountdatestart)
  282.     {
  283.         $this->discountdatestart $discountdatestart;
  284.         return $this;
  285.     }
  286.     /**
  287.      * Get discountdatestart.
  288.      *
  289.      * @return \DateTime
  290.      */
  291.     public function getDiscountdatestart()
  292.     {
  293.         return $this->discountdatestart;
  294.     }
  295.     /**
  296.      * Set discountdateend.
  297.      *
  298.      * @param \DateTime $discountdateend
  299.      *
  300.      * @return SpecialDiscountAviatur
  301.      */
  302.     public function setDiscountdateend($discountdateend)
  303.     {
  304.         $this->discountdateend $discountdateend;
  305.         return $this;
  306.     }
  307.     /**
  308.      * Get discountdateend.
  309.      *
  310.      * @return \DateTime
  311.      */
  312.     public function getDiscountdateend()
  313.     {
  314.         return $this->discountdateend;
  315.     }
  316.     /**
  317.      * Set flightdatestart.
  318.      *
  319.      * @param \DateTime $flightdatestart
  320.      *
  321.      * @return SpecialDiscountAviatur
  322.      */
  323.     public function setFlightdatestart($flightdatestart)
  324.     {
  325.         $this->flightdatestart $flightdatestart;
  326.         return $this;
  327.     }
  328.     /**
  329.      * Get flightdatestart.
  330.      *
  331.      * @return \DateTime
  332.      */
  333.     public function getFlightdatestart()
  334.     {
  335.         return $this->flightdatestart;
  336.     }
  337.     /**
  338.      * Set flightdateend.
  339.      *
  340.      * @param \DateTime $flightdateend
  341.      *
  342.      * @return SpecialDiscountAviatur
  343.      */
  344.     public function setFlightdateend($flightdateend)
  345.     {
  346.         $this->flightdateend $flightdateend;
  347.         return $this;
  348.     }
  349.     /**
  350.      * Get flightdateend.
  351.      *
  352.      * @return \DateTime
  353.      */
  354.     public function getFlightdateend()
  355.     {
  356.         return $this->flightdateend;
  357.     }
  358.     /**
  359.      * Set tourcode.
  360.      *
  361.      * @param string $tourcode
  362.      *
  363.      * @return SpecialDiscountAviatur
  364.      */
  365.     public function setTourcode($tourcode)
  366.     {
  367.         $this->tourcode $tourcode;
  368.         return $this;
  369.     }
  370.     /**
  371.      * Get tourcode.
  372.      *
  373.      * @return string
  374.      */
  375.     public function getTourcode()
  376.     {
  377.         return $this->tourcode;
  378.     }
  379.     /**
  380.      * Set fuelcost.
  381.      *
  382.      * @param string $fuelcost
  383.      *
  384.      * @return SpecialDiscountAviatur
  385.      */
  386.     public function setFuelcost($fuelcost)
  387.     {
  388.         $this->fuelcost $fuelcost;
  389.         return $this;
  390.     }
  391.     /**
  392.      * Get fuelcost.
  393.      *
  394.      * @return string
  395.      */
  396.     public function getFuelcost()
  397.     {
  398.         return $this->fuelcost;
  399.     }
  400.     /**
  401.      * Set flighttype.
  402.      *
  403.      * @param int $flighttype
  404.      *
  405.      * @return SpecialDiscountAviatur
  406.      */
  407.     public function setFlighttype($flighttype)
  408.     {
  409.         $this->flighttype $flighttype;
  410.         return $this;
  411.     }
  412.     /**
  413.      * Get flighttype.
  414.      *
  415.      * @return int
  416.      */
  417.     public function getFlighttype()
  418.     {
  419.         return $this->flighttype;
  420.     }
  421.     /**
  422.      * Set specialconditions.
  423.      *
  424.      * @param string $specialconditions
  425.      *
  426.      * @return SpecialDiscountAviatur
  427.      */
  428.     public function setSpecialconditions($specialconditions)
  429.     {
  430.         $this->specialconditions $specialconditions;
  431.         return $this;
  432.     }
  433.     /**
  434.      * Get specialconditions.
  435.      *
  436.      * @return string
  437.      */
  438.     public function getSpecialconditions()
  439.     {
  440.         return $this->specialconditions;
  441.     }
  442.     /**
  443.      * Set countrycodes.
  444.      *
  445.      * @param string $countrycodes
  446.      *
  447.      * @return SpecialDiscountAviatur
  448.      */
  449.     public function setCountrycodes($countrycodes)
  450.     {
  451.         $this->countrycodes $countrycodes;
  452.         return $this;
  453.     }
  454.     /**
  455.      * Get countrycodes.
  456.      *
  457.      * @return string
  458.      */
  459.     public function getCountrycodes()
  460.     {
  461.         return $this->countrycodes;
  462.     }
  463.     /**
  464.      * Set providers.
  465.      *
  466.      * @param string $providers
  467.      *
  468.      * @return SpecialDiscountAviatur
  469.      */
  470.     public function setProviders($providers)
  471.     {
  472.         $this->providers $providers;
  473.         return $this;
  474.     }
  475.     /**
  476.      * Get providers.
  477.      *
  478.      * @return string
  479.      */
  480.     public function getProviders()
  481.     {
  482.         return $this->providers;
  483.     }
  484.     /**
  485.      * Set isactive.
  486.      *
  487.      * @param bool $isactive
  488.      *
  489.      * @return SpecialDiscountAviatur
  490.      */
  491.     public function setIsactive($isactive)
  492.     {
  493.         $this->isactive $isactive;
  494.         return $this;
  495.     }
  496.     /**
  497.      * Get isactive.
  498.      *
  499.      * @return bool
  500.      */
  501.     public function getIsactive()
  502.     {
  503.         return $this->isactive;
  504.     }
  505.     /**
  506.      * Add specialDiscountReservationAviatur.
  507.      *
  508.      * @return SpecialDiscountAviatur
  509.      */
  510.     public function addSpecialDiscountReservationAviatur(\Aviatur\FlightBundle\Entity\SpecialDiscountReservationAviatur $specialDiscountReservationAviatur)
  511.     {
  512.         $this->specialDiscountReservationAviatur[] = $specialDiscountReservationAviatur;
  513.         return $this;
  514.     }
  515.     /**
  516.      * Remove specialDiscountReservationAviatur.
  517.      */
  518.     public function removeSpecialDiscountReservationAviatur(\Aviatur\FlightBundle\Entity\SpecialDiscountReservationAviatur $specialDiscountReservationAviatur)
  519.     {
  520.         $this->specialDiscountReservationAviatur->removeElement($specialDiscountReservationAviatur);
  521.     }
  522.     /**
  523.      * Get specialDiscountReservationAviatur.
  524.      *
  525.      * @return \Doctrine\Common\Collections\Collection
  526.      */
  527.     public function getSpecialDiscountReservationAviatur()
  528.     {
  529.         return $this->specialDiscountReservationAviatur;
  530.     }
  531. }