src/Aviatur/GeneralBundle/Entity/PromoSearchAgency.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PromoSearchAgency.
  6.  *
  7.  * @ORM\Table(name="promo_search_agency")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Repository\PromoSearchAgencyRepository")
  9.  */
  10. class PromoSearchAgency
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="route", type="string", length=20)
  24.      */
  25.     private $route;
  26.     /**
  27.      * @var \Aviatur\FlightBundle\Entity\Airline
  28.      *
  29.      * @ORM\ManyToOne(targetEntity="\Aviatur\FlightBundle\Entity\Airline", inversedBy="promoSearchAgency", cascade={"all"})
  30.      * @ORM\JoinColumns({
  31.      *   @ORM\JoinColumn(name="airline_id", referencedColumnName="id")
  32.      * })
  33.      */
  34.     private $airlineId;
  35.     /**
  36.      * @var int
  37.      *
  38.      * @ORM\Column(name="availableSeats", type="integer")
  39.      */
  40.     private $availableSeats;
  41.     /**
  42.      * @var int
  43.      *
  44.      * @ORM\Column(name="flightType", type="integer")
  45.      */
  46.     private $flightType;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="params", type="text")
  51.      */
  52.     private $params;
  53.     /**
  54.      * @var \Aviatur\AgencyBundle\Entity\Agency
  55.      *
  56.      * @ORM\ManyToOne(targetEntity="\Aviatur\AgencyBundle\Entity\Agency", inversedBy="promoSearchAgency", cascade={"all"})
  57.      * @ORM\JoinColumns({
  58.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  59.      * })
  60.      */
  61.     private $agencyId;
  62.     /**
  63.      * @var int
  64.      *
  65.      * @ORM\Column(name="isActive", type="integer")
  66.      */
  67.     private $isActive;
  68.     /**
  69.      * @var \DateTime
  70.      *
  71.      * @ORM\Column(name="creationDate", type="datetime")
  72.      */
  73.     private $creationDate;
  74.     private $timerestant;
  75.     /**
  76.      * Get id.
  77.      *
  78.      * @return int
  79.      */
  80.     public function getId()
  81.     {
  82.         return $this->id;
  83.     }
  84.     /**
  85.      * Set route.
  86.      *
  87.      * @param string $route
  88.      *
  89.      * @return PromoSearchAgency
  90.      */
  91.     public function setRoute($route)
  92.     {
  93.         $this->route $route;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get route.
  98.      *
  99.      * @return string
  100.      */
  101.     public function getRoute()
  102.     {
  103.         return $this->route;
  104.     }
  105.     /**
  106.      * Set airlineId.
  107.      *
  108.      * @param int $airlineId
  109.      *
  110.      * @return PromoSearchAgency
  111.      */
  112.     public function setAirlineId($airlineId)
  113.     {
  114.         $this->airlineId $airlineId;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get airlineId.
  119.      *
  120.      * @return int
  121.      */
  122.     public function getAirlineId()
  123.     {
  124.         return $this->airlineId;
  125.     }
  126.     /**
  127.      * Set flighType.
  128.      *
  129.      * @param int $flighType
  130.      *
  131.      * @return PromoSearchAgency
  132.      */
  133.     public function setFlightType($flightType)
  134.     {
  135.         $this->flightType $flightType;
  136.         return $this;
  137.     }
  138.     /**
  139.      * Get flighType.
  140.      *
  141.      * @return int
  142.      */
  143.     public function getFlightType()
  144.     {
  145.         return $this->flightType;
  146.     }
  147.     /**
  148.      * Set availableSeats.
  149.      *
  150.      * @param int $availableSeats
  151.      *
  152.      * @return PromoSearchAgency
  153.      */
  154.     public function setAvailableSeats($availableSeats)
  155.     {
  156.         $this->availableSeats $availableSeats;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get availableSeats.
  161.      *
  162.      * @return int
  163.      */
  164.     public function getAvailableSeats()
  165.     {
  166.         return $this->availableSeats;
  167.     }
  168.     /**
  169.      * Set params.
  170.      *
  171.      * @param string $params
  172.      *
  173.      * @return PromoSearchAgency
  174.      */
  175.     public function setParams($params)
  176.     {
  177.         $this->params $params;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get params.
  182.      *
  183.      * @return string
  184.      */
  185.     public function getParams()
  186.     {
  187.         return $this->params;
  188.     }
  189.     /**
  190.      * Set agencyId.
  191.      *
  192.      * @param int $agencyId
  193.      *
  194.      * @return PromoSearchAgency
  195.      */
  196.     public function setAgencyId($agencyId)
  197.     {
  198.         $this->agencyId $agencyId;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get agencyId.
  203.      *
  204.      * @return int
  205.      */
  206.     public function getAgencyId()
  207.     {
  208.         return $this->agencyId;
  209.     }
  210.     /**
  211.      * Set isActive.
  212.      *
  213.      * @param int $isActive
  214.      *
  215.      * @return PromoSearchAgency
  216.      */
  217.     public function setIsActive($isActive)
  218.     {
  219.         $this->isActive $isActive;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get isActive.
  224.      *
  225.      * @return int
  226.      */
  227.     public function getIsActive()
  228.     {
  229.         return $this->isActive;
  230.     }
  231.     /**
  232.      * Set creationDate.
  233.      *
  234.      * @param \DateTime $creationDate
  235.      *
  236.      * @return PromoSearchAgency
  237.      */
  238.     public function setCreationDate($creationDate)
  239.     {
  240.         $this->creationDate $creationDate;
  241.         return $this;
  242.     }
  243.     public function getCreationDate()
  244.     {
  245.         return $this->creationDate;
  246.     }
  247.     public function setTimerestant($timerestant)
  248.     {
  249.         $this->timerestant $timerestant;
  250.         return $this;
  251.     }
  252.     public function getTimerestant()
  253.     {
  254.         return $this->timerestant;
  255.     }
  256. }