src/Aviatur/SearchBundle/Entity/TravelDestination.php line 11

Open in your IDE?
  1. <?php
  2. namespace Aviatur\SearchBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="Aviatur\SearchBundle\Entity\TravelDestinationRepository")
  6.  * @ORM\Table(name="travel_destinations")
  7.  */
  8. class TravelDestination
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="bigint", options={"unsigned": true})
  14.      */
  15.     private int $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\TravelCountry", inversedBy="destinations")
  18.      * @ORM\JoinColumn(name="country_id", referencedColumnName="id", onDelete="CASCADE")
  19.      */
  20.     private TravelCountry $country;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private ?string $placeISO3166_2 null;
  25.     /** @ORM\Column(type="string", length=255, nullable=true) */
  26.     private ?string $category;
  27.     /** @ORM\Column(type="string", length=255, nullable=true) */
  28.     private ?string $type;
  29.     /** @ORM\Column(type="string", length=255, nullable=true) */
  30.     private ?string $continent;
  31.     /** @ORM\Column(type="string", length=255, nullable=true) */
  32.     private ?string $county;
  33.     /** @ORM\Column(type="string", length=255, nullable=true) */
  34.     private ?string $state;
  35.     /**
  36.      * @ORM\Column(type="string", length=255)
  37.      */
  38.     private string $latitude;
  39.     /**
  40.      * @ORM\Column(type="string", length=255)
  41.      */
  42.     private string $longitude;
  43.     /** @ORM\Column(type="string", length=255, nullable=true) */
  44.     private ?string $normalizedCity;
  45.     /**
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private int $confidence;
  49.     /** @ORM\Column(type="string", length=255, nullable=true) */
  50.     private ?string $formatted;
  51.     /**
  52.      * @ORM\Column(type="bigint")
  53.      */
  54.     private int $popularity;
  55.     /**
  56.      * @ORM\Column(type="integer", nullable=true)
  57.      */
  58.     private ?int $provider_identifier null;
  59.     // Getters and Setters
  60.     public function getId(): int { return $this->id; }
  61.     public function getCountry(): TravelCountry { return $this->country; }
  62.     public function setCountry(TravelCountry $country): self $this->country $country; return $this; }
  63.     public function getPlaceISO3166_2(): string { return $this->placeISO3166_2; }
  64.     public function setPlaceISO3166_2(string $placeISO3166_2): self $this->placeISO3166_2 $placeISO3166_2; return $this; }
  65.     public function getCategory(): ?string { return $this->category; }
  66.     public function setCategory(?string $category): self $this->category $category; return $this; }
  67.     public function getType(): ?string { return $this->type; }
  68.     public function setType(?string $type): self $this->type $type; return $this; }
  69.     public function getContinent(): ?string { return $this->continent; }
  70.     public function setContinent(?string $continent): self $this->continent $continent; return $this; }
  71.     public function getCounty(): ?string { return $this->county; }
  72.     public function setCounty(?string $county): self $this->county $county; return $this; }
  73.     public function getState(): ?string { return $this->state; }
  74.     public function setState(?string $state): self $this->state $state; return $this; }
  75.     public function getLatitude(): string { return $this->latitude; }
  76.     public function setLatitude(string $latitude): self $this->latitude $latitude; return $this; }
  77.     public function getLongitude(): string { return $this->longitude; }
  78.     public function setLongitude(string $longitude): self $this->longitude $longitude; return $this; }
  79.     public function getNormalizedCity(): ?string { return $this->normalizedCity; }
  80.     public function setNormalizedCity(?string $normalizedCity): self $this->normalizedCity $normalizedCity; return $this; }
  81.     public function getConfidence(): int { return $this->confidence; }
  82.     public function setConfidence(int $confidence): self $this->confidence $confidence; return $this; }
  83.     public function getFormatted(): string { return $this->formatted; }
  84.     public function setFormatted(string $formatted): self $this->formatted $formatted; return $this; }
  85.     public function getPopularity(): int { return $this->popularity; }
  86.     public function setPopularity(int $popularity): self $this->popularity $popularity; return $this; }
  87.     public function getProviderIdentifier(): ?int { return $this->provider_identifier; }
  88.     public function setProviderIdentifier(?int $provider_identifier): self $this->provider_identifier $provider_identifier; return $this; }
  89. }