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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\FlightBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpecialDiscountAviaturFranchise.
  6.  *
  7.  * @ORM\Table(name="special_discount_aviatur_franchise", indexes={@ORM\Index(name="airline_id", columns={"airline_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\FlightBundle\Entity\SpecialDiscountAviaturFranchiseRepository")
  9.  */
  10. class SpecialDiscountAviaturFranchise
  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="specialDiscountAviaturFranchise")
  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.      * Get id.
  130.      *
  131.      * @return int
  132.      */
  133.     public function getId()
  134.     {
  135.         return $this->id;
  136.     }
  137.     /**
  138.      * Set specialDiscountCampaign.
  139.      *
  140.      * @param \Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign
  141.      *
  142.      * @return SpecialDiscountAviaturFranchise
  143.      */
  144.     public function setSpecialDiscountCampaign(\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign null)
  145.     {
  146.         $this->specialDiscountCampaign $specialDiscountCampaign;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get specialDiscountCampaign.
  151.      *
  152.      * @return int
  153.      */
  154.     public function getSpecialDiscountCampaign()
  155.     {
  156.         return $this->specialDiscountCampaign;
  157.     }
  158.     /**
  159.      * Set airline.
  160.      *
  161.      * @param \Aviatur\FlightBundle\Entity\Airline $airline
  162.      *
  163.      * @return SpecialDiscountAviaturFranchise
  164.      */
  165.     public function setAirline(\Aviatur\FlightBundle\Entity\Airline $airline null)
  166.     {
  167.         $this->airline $airline;
  168.         return $this;
  169.     }
  170.     /**
  171.      * Get airline.
  172.      *
  173.      * @return \Aviatur\FlightBundle\Entity\Airline
  174.      */
  175.     public function getAirline()
  176.     {
  177.         return $this->airline;
  178.     }
  179.     /**
  180.      * Set searchCities.
  181.      *
  182.      * @param \Aviatur\SearchBundle\Entity\SearchCities $searchCities
  183.      *
  184.      * @return SpecialDiscountAviaturFranchise
  185.      */
  186.     public function setSearchCities(\Aviatur\SearchBundle\Entity\SearchCities $searchCities null)
  187.     {
  188.         $this->searchCities $searchCities;
  189.         return $this;
  190.     }
  191.     /**
  192.      * Get searchCities.
  193.      *
  194.      * @return \Aviatur\SearchBundle\Entity\SearchCities
  195.      */
  196.     public function getSearchCities()
  197.     {
  198.         return $this->searchCities;
  199.     }
  200.     /**
  201.      * Set agency.
  202.      *
  203.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  204.      *
  205.      * @return SpecialDiscountAviaturFranchise
  206.      */
  207.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  208.     {
  209.         $this->agency $agency;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Get agency.
  214.      *
  215.      * @return \Aviatur\AgencyBundle\Entity\Agency
  216.      */
  217.     public function getAgency()
  218.     {
  219.         return $this->agency;
  220.     }
  221.     /**
  222.      * Set discounttype.
  223.      *
  224.      * @param int $discounttype
  225.      *
  226.      * @return SpecialDiscountAviaturFranchise
  227.      */
  228.     public function setDiscounttype($discounttype)
  229.     {
  230.         $this->discounttype $discounttype;
  231.         return $this;
  232.     }
  233.     /**
  234.      * Get discounttype.
  235.      *
  236.      * @return int
  237.      */
  238.     public function getDiscounttype()
  239.     {
  240.         return $this->discounttype;
  241.     }
  242.     /**
  243.      * Set discountamount.
  244.      *
  245.      * @param float $discountamount
  246.      *
  247.      * @return SpecialDiscountAviaturFranchise
  248.      */
  249.     public function setDiscountamount($discountamount)
  250.     {
  251.         $this->discountamount $discountamount;
  252.         return $this;
  253.     }
  254.     /**
  255.      * Get discountamount.
  256.      *
  257.      * @return float
  258.      */
  259.     public function getDiscountamount()
  260.     {
  261.         return $this->discountamount;
  262.     }
  263.     /**
  264.      * Set discountdatestart.
  265.      *
  266.      * @param \DateTime $discountdatestart
  267.      *
  268.      * @return SpecialDiscountAviaturFranchise
  269.      */
  270.     public function setDiscountdatestart($discountdatestart)
  271.     {
  272.         $this->discountdatestart $discountdatestart;
  273.         return $this;
  274.     }
  275.     /**
  276.      * Get discountdatestart.
  277.      *
  278.      * @return \DateTime
  279.      */
  280.     public function getDiscountdatestart()
  281.     {
  282.         return $this->discountdatestart;
  283.     }
  284.     /**
  285.      * Set discountdateend.
  286.      *
  287.      * @param \DateTime $discountdateend
  288.      *
  289.      * @return SpecialDiscountAviaturFranchise
  290.      */
  291.     public function setDiscountdateend($discountdateend)
  292.     {
  293.         $this->discountdateend $discountdateend;
  294.         return $this;
  295.     }
  296.     /**
  297.      * Get discountdateend.
  298.      *
  299.      * @return \DateTime
  300.      */
  301.     public function getDiscountdateend()
  302.     {
  303.         return $this->discountdateend;
  304.     }
  305.     /**
  306.      * Set flightdatestart.
  307.      *
  308.      * @param \DateTime $flightdatestart
  309.      *
  310.      * @return SpecialDiscountAviaturFranchise
  311.      */
  312.     public function setFlightdatestart($flightdatestart)
  313.     {
  314.         $this->flightdatestart $flightdatestart;
  315.         return $this;
  316.     }
  317.     /**
  318.      * Get flightdatestart.
  319.      *
  320.      * @return \DateTime
  321.      */
  322.     public function getFlightdatestart()
  323.     {
  324.         return $this->flightdatestart;
  325.     }
  326.     /**
  327.      * Set flightdateend.
  328.      *
  329.      * @param \DateTime $flightdateend
  330.      *
  331.      * @return SpecialDiscountAviaturFranchise
  332.      */
  333.     public function setFlightdateend($flightdateend)
  334.     {
  335.         $this->flightdateend $flightdateend;
  336.         return $this;
  337.     }
  338.     /**
  339.      * Get flightdateend.
  340.      *
  341.      * @return \DateTime
  342.      */
  343.     public function getFlightdateend()
  344.     {
  345.         return $this->flightdateend;
  346.     }
  347.     /**
  348.      * Set tourcode.
  349.      *
  350.      * @param string $tourcode
  351.      *
  352.      * @return SpecialDiscountAviaturFranchise
  353.      */
  354.     public function setTourcode($tourcode)
  355.     {
  356.         $this->tourcode $tourcode;
  357.         return $this;
  358.     }
  359.     /**
  360.      * Get tourcode.
  361.      *
  362.      * @return string
  363.      */
  364.     public function getTourcode()
  365.     {
  366.         return $this->tourcode;
  367.     }
  368.     /**
  369.      * Set fuelcost.
  370.      *
  371.      * @param string $fuelcost
  372.      *
  373.      * @return SpecialDiscountAviaturFranchise
  374.      */
  375.     public function setFuelcost($fuelcost)
  376.     {
  377.         $this->fuelcost $fuelcost;
  378.         return $this;
  379.     }
  380.     /**
  381.      * Get fuelcost.
  382.      *
  383.      * @return string
  384.      */
  385.     public function getFuelcost()
  386.     {
  387.         return $this->fuelcost;
  388.     }
  389.     /**
  390.      * Set flighttype.
  391.      *
  392.      * @param int $flighttype
  393.      *
  394.      * @return SpecialDiscountAviaturFranchise
  395.      */
  396.     public function setFlighttype($flighttype)
  397.     {
  398.         $this->flighttype $flighttype;
  399.         return $this;
  400.     }
  401.     /**
  402.      * Get flighttype.
  403.      *
  404.      * @return int
  405.      */
  406.     public function getFlighttype()
  407.     {
  408.         return $this->flighttype;
  409.     }
  410.     /**
  411.      * Set specialconditions.
  412.      *
  413.      * @param string $specialconditions
  414.      *
  415.      * @return SpecialDiscountAviaturFranchise
  416.      */
  417.     public function setSpecialconditions($specialconditions)
  418.     {
  419.         $this->specialconditions $specialconditions;
  420.         return $this;
  421.     }
  422.     /**
  423.      * Get specialconditions.
  424.      *
  425.      * @return string
  426.      */
  427.     public function getSpecialconditions()
  428.     {
  429.         return $this->specialconditions;
  430.     }
  431.     /**
  432.      * Set countrycodes.
  433.      *
  434.      * @param string $countrycodes
  435.      *
  436.      * @return SpecialDiscountAviaturFranchise
  437.      */
  438.     public function setCountrycodes($countrycodes)
  439.     {
  440.         $this->countrycodes $countrycodes;
  441.         return $this;
  442.     }
  443.     /**
  444.      * Get countrycodes.
  445.      *
  446.      * @return string
  447.      */
  448.     public function getCountrycodes()
  449.     {
  450.         return $this->countrycodes;
  451.     }
  452.     /**
  453.      * Set providers.
  454.      *
  455.      * @param string $providers
  456.      *
  457.      * @return SpecialDiscountAviaturFranchise
  458.      */
  459.     public function setProviders($providers)
  460.     {
  461.         $this->providers $providers;
  462.         return $this;
  463.     }
  464.     /**
  465.      * Get providers.
  466.      *
  467.      * @return string
  468.      */
  469.     public function getProviders()
  470.     {
  471.         return $this->providers;
  472.     }
  473.     /**
  474.      * Set isactive.
  475.      *
  476.      * @param bool $isactive
  477.      *
  478.      * @return SpecialDiscountAviaturFranchise
  479.      */
  480.     public function setIsactive($isactive)
  481.     {
  482.         $this->isactive $isactive;
  483.         return $this;
  484.     }
  485.     /**
  486.      * Get isactive.
  487.      *
  488.      * @return bool
  489.      */
  490.     public function getIsactive()
  491.     {
  492.         return $this->isactive;
  493.     }
  494. }