<?php
namespace Aviatur\SearchBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="Aviatur\SearchBundle\Entity\TravelDestinationRepository")
* @ORM\Table(name="travel_destinations")
*/
class TravelDestination
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="bigint", options={"unsigned": true})
*/
private int $id;
/**
* @ORM\ManyToOne(targetEntity="Aviatur\SearchBundle\Entity\TravelCountry", inversedBy="destinations")
* @ORM\JoinColumn(name="country_id", referencedColumnName="id", onDelete="CASCADE")
*/
private TravelCountry $country;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $placeISO3166_2 = null;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $category;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $type;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $continent;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $county;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $state;
/**
* @ORM\Column(type="string", length=255)
*/
private string $latitude;
/**
* @ORM\Column(type="string", length=255)
*/
private string $longitude;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $normalizedCity;
/**
* @ORM\Column(type="integer")
*/
private int $confidence;
/** @ORM\Column(type="string", length=255, nullable=true) */
private ?string $formatted;
/**
* @ORM\Column(type="bigint")
*/
private int $popularity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $provider_identifier = null;
// Getters and Setters
public function getId(): int { return $this->id; }
public function getCountry(): TravelCountry { return $this->country; }
public function setCountry(TravelCountry $country): self { $this->country = $country; return $this; }
public function getPlaceISO3166_2(): string { return $this->placeISO3166_2; }
public function setPlaceISO3166_2(string $placeISO3166_2): self { $this->placeISO3166_2 = $placeISO3166_2; return $this; }
public function getCategory(): ?string { return $this->category; }
public function setCategory(?string $category): self { $this->category = $category; return $this; }
public function getType(): ?string { return $this->type; }
public function setType(?string $type): self { $this->type = $type; return $this; }
public function getContinent(): ?string { return $this->continent; }
public function setContinent(?string $continent): self { $this->continent = $continent; return $this; }
public function getCounty(): ?string { return $this->county; }
public function setCounty(?string $county): self { $this->county = $county; return $this; }
public function getState(): ?string { return $this->state; }
public function setState(?string $state): self { $this->state = $state; return $this; }
public function getLatitude(): string { return $this->latitude; }
public function setLatitude(string $latitude): self { $this->latitude = $latitude; return $this; }
public function getLongitude(): string { return $this->longitude; }
public function setLongitude(string $longitude): self { $this->longitude = $longitude; return $this; }
public function getNormalizedCity(): ?string { return $this->normalizedCity; }
public function setNormalizedCity(?string $normalizedCity): self { $this->normalizedCity = $normalizedCity; return $this; }
public function getConfidence(): int { return $this->confidence; }
public function setConfidence(int $confidence): self { $this->confidence = $confidence; return $this; }
public function getFormatted(): string { return $this->formatted; }
public function setFormatted(string $formatted): self { $this->formatted = $formatted; return $this; }
public function getPopularity(): int { return $this->popularity; }
public function setPopularity(int $popularity): self { $this->popularity = $popularity; return $this; }
public function getProviderIdentifier(): ?int { return $this->provider_identifier; }
public function setProviderIdentifier(?int $provider_identifier): self { $this->provider_identifier = $provider_identifier; return $this; }
}