src/Aviatur/HotelBundle/Entity/HotelHomologation.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\HotelBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * HotelHomologation.
  6.  *
  7.  * @ORM\Table(name="hotel_homologation", indexes={@ORM\Index(name="search_cities_id", columns={"search_cities_id"})})
  8.  * @ORM\Entity
  9.  */
  10. class HotelHomologation
  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.      * @var string
  22.      *
  23.      * @ORM\Column(name="hotelCodes", type="string", length=300, nullable=false)
  24.      */
  25.     private $hotelcodes;
  26.     /**
  27.      * @ORM\Column(name="type", type="integer", nullable=false)
  28.      */
  29.     private string $type '1';
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="preferredCode", type="string", length=150, nullable=true)
  34.      */
  35.     private $preferredcode;
  36.     /**
  37.      * @var \Aviatur\SearchBundle\Entity\SearchAirport
  38.      *
  39.      * @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\SearchCities", inversedBy="hotelHomologation")
  40.      * @ORM\JoinColumns({
  41.      *   @ORM\JoinColumn(name="search_cities_id", referencedColumnName="id")
  42.      * })
  43.      */
  44.     private $searchCities;
  45.     /**
  46.      * Get id.
  47.      *
  48.      * @return int
  49.      */
  50.     public function getId()
  51.     {
  52.         return $this->id;
  53.     }
  54.     /**
  55.      * Set hotelcodes.
  56.      *
  57.      * @param string $hotelcodes
  58.      *
  59.      * @return HotelHomologation
  60.      */
  61.     public function setHotelcodes($hotelcodes)
  62.     {
  63.         $this->hotelcodes $hotelcodes;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get hotelcodes.
  68.      *
  69.      * @return string
  70.      */
  71.     public function getHotelcodes()
  72.     {
  73.         return $this->hotelcodes;
  74.     }
  75.     /**
  76.      * Set type.
  77.      *
  78.      * @param int $type
  79.      *
  80.      * @return HotelHomologation
  81.      */
  82.     public function setType($type)
  83.     {
  84.         $this->type $type;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get type.
  89.      *
  90.      * @return int
  91.      */
  92.     public function getType()
  93.     {
  94.         return $this->type;
  95.     }
  96.     /**
  97.      * Set preferredcode.
  98.      *
  99.      * @param string $preferredcode
  100.      *
  101.      * @return HotelHomologation
  102.      */
  103.     public function setPreferredcode($preferredcode)
  104.     {
  105.         $this->preferredcode $preferredcode;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get preferredcode.
  110.      *
  111.      * @return string
  112.      */
  113.     public function getPreferredcode()
  114.     {
  115.         return $this->preferredcode;
  116.     }
  117.     /**
  118.      * Set searchCities.
  119.      *
  120.      * @param \Aviatur\SearchBundle\Entity\SearchCities $searchCities
  121.      *
  122.      * @return SearchAirports
  123.      */
  124.     public function setSearchCities(\Aviatur\SearchBundle\Entity\SearchCities $searchCities null)
  125.     {
  126.         $this->searchCities $searchCities;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get searchCities.
  131.      *
  132.      * @return \Aviatur\SearchBundle\Entity\SearchCities
  133.      */
  134.     public function getSearchCities()
  135.     {
  136.         return $this->searchCities;
  137.     }
  138. }