src/Aviatur/SearchBundle/Entity/SearchAirports.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\SearchBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SearchAirports
  6.  *
  7.  * @ORM\Table(name="search_airports", indexes={@ORM\Index(name="cityAV", columns={"city", "iata", "name"}), @ORM\Index(name="iata", columns={"iata"}), @ORM\Index(name="city", columns={"city"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\SearchBundle\Entity\SearchAirportsRepository")
  9.  */
  10. class SearchAirports
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="iata", type="string", length=3, nullable=false)
  24.      */
  25.     private $iata;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=50, nullable=false)
  30.      */
  31.     private $name;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="city", type="string", length=50, nullable=false)
  36.      */
  37.     private $city;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="country", type="string", length=50, nullable=false)
  42.      */
  43.     private $country;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="countryCode", type="string", length=2, nullable=false)
  48.      */
  49.     private $countrycode;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="search", type="string", length=255, nullable=false)
  54.      */
  55.     private $search;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="language", type="string", length=5, nullable=false)
  60.      */
  61.     private $language;
  62.     /**
  63.      * @var \Aviatur\SearchBundle\Entity\SearchAirport
  64.      *
  65.      * @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\SearchCities", inversedBy="searchAirports")
  66.      * @ORM\JoinColumns({
  67.      *   @ORM\JoinColumn(name="search_cities_id", referencedColumnName="id")
  68.      * })
  69.      */
  70.     private $searchCities;
  71.     /**
  72.      * Get id
  73.      *
  74.      * @return integer 
  75.      */
  76.     public function getId()
  77.     {
  78.         return $this->id;
  79.     }
  80.     /**
  81.      * Set iata
  82.      *
  83.      * @param string $iata
  84.      * @return SearchAirports
  85.      */
  86.     public function setIata($iata)
  87.     {
  88.         $this->iata $iata;
  89.     
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get iata
  94.      *
  95.      * @return string 
  96.      */
  97.     public function getIata()
  98.     {
  99.         return $this->iata;
  100.     }
  101.     /**
  102.      * Set name
  103.      *
  104.      * @param string $name
  105.      * @return SearchAirports
  106.      */
  107.     public function setName($name)
  108.     {
  109.         $this->name $name;
  110.     
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get name
  115.      *
  116.      * @return string 
  117.      */
  118.     public function getName()
  119.     {
  120.         return $this->name;
  121.     }
  122.     /**
  123.      * Set city
  124.      *
  125.      * @param string $city
  126.      * @return SearchAirports
  127.      */
  128.     public function setCity($city)
  129.     {
  130.         $this->city $city;
  131.     
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get city
  136.      *
  137.      * @return string 
  138.      */
  139.     public function getCity()
  140.     {
  141.         return $this->city;
  142.     }
  143.     /**
  144.      * Set country
  145.      *
  146.      * @param string $country
  147.      * @return SearchAirports
  148.      */
  149.     public function setCountry($country)
  150.     {
  151.         $this->country $country;
  152.     
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get country
  157.      *
  158.      * @return string 
  159.      */
  160.     public function getCountry()
  161.     {
  162.         return $this->country;
  163.     }
  164.     /**
  165.      * Set countrycode
  166.      *
  167.      * @param string $countrycode
  168.      * @return SearchAirports
  169.      */
  170.     public function setCountrycode($countrycode)
  171.     {
  172.         $this->countrycode $countrycode;
  173.     
  174.         return $this;
  175.     }
  176.     /**
  177.      * Get countrycode
  178.      *
  179.      * @return string 
  180.      */
  181.     public function getCountrycode()
  182.     {
  183.         return $this->countrycode;
  184.     }
  185.     /**
  186.      * Set search
  187.      *
  188.      * @param string $search
  189.      * @return SearchAirports
  190.      */
  191.     public function setSearch($search)
  192.     {
  193.         $this->search $search;
  194.     
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get search
  199.      *
  200.      * @return string 
  201.      */
  202.     public function getSearch()
  203.     {
  204.         return $this->search;
  205.     }
  206.     
  207.     /**
  208.      * Set language
  209.      *
  210.      * @param string $language
  211.      * @return SearchAirports
  212.      */
  213.     public function setLanguage($language)
  214.     {
  215.         $this->language $language;
  216.     
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get language
  221.      *
  222.      * @return string 
  223.      */
  224.     public function getLanguage()
  225.     {
  226.         return $this->language;
  227.     }
  228.     /**
  229.      * Set searchCities
  230.      *
  231.      * @param \Aviatur\SearchBundle\Entity\SearchCities $searchCities
  232.      * @return SearchAirports
  233.      */
  234.     public function setSearchCities(\Aviatur\SearchBundle\Entity\SearchCities $searchCities null) {
  235.         $this->searchCities $searchCities;
  236.         return $this;
  237.     }
  238.     /**
  239.      * Get searchCities
  240.      *
  241.      * @return \Aviatur\SearchBundle\Entity\SearchCities 
  242.      */
  243.     public function getSearchCities() {
  244.         return $this->searchCities;
  245.     }
  246. }