<?php
namespace Aviatur\FlightBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SpecialDiscountAviatur.
*
* @ORM\Table(name="special_discount_aviatur", indexes={@ORM\Index(name="airline_id", columns={"airline_id"})})
* @ORM\Entity(repositoryClass="Aviatur\FlightBundle\Entity\SpecialDiscountAviaturRepository")
*/
class SpecialDiscountAviatur
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
*
* @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign", inversedBy="specialDiscountAviatur")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="special_discount_campaign_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\FlightBundle\Entity\Airline")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="airline_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\FlightBundle\Entity\Airline $airline = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\SearchCities", inversedBy="specialDiscount")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="search_cities_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\SearchBundle\Entity\SearchCities $searchCities = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgencyBundle\Entity\Agency")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\AgencyBundle\Entity\Agency $agency = null;
/**
* @var int
*
* @ORM\Column(name="discountType", type="integer", nullable=false)
*/
private $discounttype;
/**
* @var float
*
* @ORM\Column(name="discountAmount", type="float", precision=10, scale=0, nullable=false)
*/
private $discountamount;
/**
* @var \DateTime
*
* @ORM\Column(name="discountDateStart", type="datetime", nullable=false)
*/
private $discountdatestart;
/**
* @var \DateTime
*
* @ORM\Column(name="discountDateEnd", type="datetime", nullable=false)
*/
private $discountdateend;
/**
* @var \DateTime
*
* @ORM\Column(name="flightDateStart", type="datetime", nullable=false)
*/
private $flightdatestart;
/**
* @var \DateTime
*
* @ORM\Column(name="flightDateEnd", type="datetime", nullable=false)
*/
private $flightdateend;
/**
* @var string
*
* @ORM\Column(name="tourCode", type="string", length=50, nullable=true)
*/
private $tourcode;
/**
* @var string
*
* @ORM\Column(name="fuelCost", type="string", length=50, nullable=true)
*/
private $fuelcost;
/**
* @var int
*
* @ORM\Column(name="flightType", type="integer", nullable=true)
*/
private $flighttype;
/**
* @var string
*
* @ORM\Column(name="specialConditions", type="text", nullable=true)
*/
private $specialconditions;
/**
* @var string
*
* @ORM\Column(name="countryCodes", type="string", length=50, nullable=true)
*/
private $countrycodes;
/**
* @var string
*
* @ORM\Column(name="providers", type="string", length=50, nullable=true)
*/
private $providers;
/**
* @ORM\Column(name="isActive", type="boolean", nullable=true)
*/
private bool $isactive = false;
/**
* @ORM\OneToMany(targetEntity="SpecialDiscountReservationAviatur", mappedBy="specialDiscountAviatur", cascade={"all"})
*/
private $specialDiscountReservationAviatur;
/**
* Constructor.
*/
public function __construct()
{
$this->specialDiscountReservationAviatur = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set specialDiscountCampaign.
*
* @param \Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign
*
* @return SpecialDiscountAviatur
*/
public function setSpecialDiscountCampaign(\Aviatur\GeneralBundle\Entity\SpecialDiscountCampaign $specialDiscountCampaign = null)
{
$this->specialDiscountCampaign = $specialDiscountCampaign;
return $this;
}
/**
* Get specialDiscountCampaign.
*
* @return int
*/
public function getSpecialDiscountCampaign()
{
return $this->specialDiscountCampaign;
}
/**
* Set airline.
*
* @param \Aviatur\FlightBundle\Entity\Airline $airline
*
* @return SpecialDiscountAviatur
*/
public function setAirline(\Aviatur\FlightBundle\Entity\Airline $airline = null)
{
$this->airline = $airline;
return $this;
}
/**
* Get airline.
*
* @return \Aviatur\FlightBundle\Entity\Airline
*/
public function getAirline()
{
return $this->airline;
}
/**
* Set searchCities.
*
* @param \Aviatur\SearchBundle\Entity\SearchCities $searchCities
*
* @return SpecialDiscountAviatur
*/
public function setSearchCities(\Aviatur\SearchBundle\Entity\SearchCities $searchCities = null)
{
$this->searchCities = $searchCities;
return $this;
}
/**
* Get searchCities.
*
* @return \Aviatur\SearchBundle\Entity\SearchCities
*/
public function getSearchCities()
{
return $this->searchCities;
}
/**
* Set agency.
*
* @param \Aviatur\AgencyBundle\Entity\Agency $agency
*
* @return SpecialDiscountAviatur
*/
public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency = null)
{
$this->agency = $agency;
return $this;
}
/**
* Get agency.
*
* @return \Aviatur\AgencyBundle\Entity\Agency
*/
public function getAgency()
{
return $this->agency;
}
/**
* Set discounttype.
*
* @param int $discounttype
*
* @return SpecialDiscountAviatur
*/
public function setDiscounttype($discounttype)
{
$this->discounttype = $discounttype;
return $this;
}
/**
* Get discounttype.
*
* @return int
*/
public function getDiscounttype()
{
return $this->discounttype;
}
/**
* Set discountamount.
*
* @param float $discountamount
*
* @return SpecialDiscountAviatur
*/
public function setDiscountamount($discountamount)
{
$this->discountamount = $discountamount;
return $this;
}
/**
* Get discountamount.
*
* @return float
*/
public function getDiscountamount()
{
return $this->discountamount;
}
/**
* Set discountdatestart.
*
* @param \DateTime $discountdatestart
*
* @return SpecialDiscountAviatur
*/
public function setDiscountdatestart($discountdatestart)
{
$this->discountdatestart = $discountdatestart;
return $this;
}
/**
* Get discountdatestart.
*
* @return \DateTime
*/
public function getDiscountdatestart()
{
return $this->discountdatestart;
}
/**
* Set discountdateend.
*
* @param \DateTime $discountdateend
*
* @return SpecialDiscountAviatur
*/
public function setDiscountdateend($discountdateend)
{
$this->discountdateend = $discountdateend;
return $this;
}
/**
* Get discountdateend.
*
* @return \DateTime
*/
public function getDiscountdateend()
{
return $this->discountdateend;
}
/**
* Set flightdatestart.
*
* @param \DateTime $flightdatestart
*
* @return SpecialDiscountAviatur
*/
public function setFlightdatestart($flightdatestart)
{
$this->flightdatestart = $flightdatestart;
return $this;
}
/**
* Get flightdatestart.
*
* @return \DateTime
*/
public function getFlightdatestart()
{
return $this->flightdatestart;
}
/**
* Set flightdateend.
*
* @param \DateTime $flightdateend
*
* @return SpecialDiscountAviatur
*/
public function setFlightdateend($flightdateend)
{
$this->flightdateend = $flightdateend;
return $this;
}
/**
* Get flightdateend.
*
* @return \DateTime
*/
public function getFlightdateend()
{
return $this->flightdateend;
}
/**
* Set tourcode.
*
* @param string $tourcode
*
* @return SpecialDiscountAviatur
*/
public function setTourcode($tourcode)
{
$this->tourcode = $tourcode;
return $this;
}
/**
* Get tourcode.
*
* @return string
*/
public function getTourcode()
{
return $this->tourcode;
}
/**
* Set fuelcost.
*
* @param string $fuelcost
*
* @return SpecialDiscountAviatur
*/
public function setFuelcost($fuelcost)
{
$this->fuelcost = $fuelcost;
return $this;
}
/**
* Get fuelcost.
*
* @return string
*/
public function getFuelcost()
{
return $this->fuelcost;
}
/**
* Set flighttype.
*
* @param int $flighttype
*
* @return SpecialDiscountAviatur
*/
public function setFlighttype($flighttype)
{
$this->flighttype = $flighttype;
return $this;
}
/**
* Get flighttype.
*
* @return int
*/
public function getFlighttype()
{
return $this->flighttype;
}
/**
* Set specialconditions.
*
* @param string $specialconditions
*
* @return SpecialDiscountAviatur
*/
public function setSpecialconditions($specialconditions)
{
$this->specialconditions = $specialconditions;
return $this;
}
/**
* Get specialconditions.
*
* @return string
*/
public function getSpecialconditions()
{
return $this->specialconditions;
}
/**
* Set countrycodes.
*
* @param string $countrycodes
*
* @return SpecialDiscountAviatur
*/
public function setCountrycodes($countrycodes)
{
$this->countrycodes = $countrycodes;
return $this;
}
/**
* Get countrycodes.
*
* @return string
*/
public function getCountrycodes()
{
return $this->countrycodes;
}
/**
* Set providers.
*
* @param string $providers
*
* @return SpecialDiscountAviatur
*/
public function setProviders($providers)
{
$this->providers = $providers;
return $this;
}
/**
* Get providers.
*
* @return string
*/
public function getProviders()
{
return $this->providers;
}
/**
* Set isactive.
*
* @param bool $isactive
*
* @return SpecialDiscountAviatur
*/
public function setIsactive($isactive)
{
$this->isactive = $isactive;
return $this;
}
/**
* Get isactive.
*
* @return bool
*/
public function getIsactive()
{
return $this->isactive;
}
/**
* Add specialDiscountReservationAviatur.
*
* @return SpecialDiscountAviatur
*/
public function addSpecialDiscountReservationAviatur(\Aviatur\FlightBundle\Entity\SpecialDiscountReservationAviatur $specialDiscountReservationAviatur)
{
$this->specialDiscountReservationAviatur[] = $specialDiscountReservationAviatur;
return $this;
}
/**
* Remove specialDiscountReservationAviatur.
*/
public function removeSpecialDiscountReservationAviatur(\Aviatur\FlightBundle\Entity\SpecialDiscountReservationAviatur $specialDiscountReservationAviatur)
{
$this->specialDiscountReservationAviatur->removeElement($specialDiscountReservationAviatur);
}
/**
* Get specialDiscountReservationAviatur.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getSpecialDiscountReservationAviatur()
{
return $this->specialDiscountReservationAviatur;
}
}