<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* Destination
*
* @ORM\Table(name="destinations")
* @ORM\Entity(repositoryClass="App\Repository\DestinationRepository")
* @ORM\HasLifecycleCallbacks()
*/
class Destination
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=255)
* @Assert\NotBlank()
*/
private $country;
/**
* @var string
*
* @ORM\Column(name="region", type="string", length=255)
* @Assert\NotBlank()
*
*/
private $region;
/**
* @var string
*
* @ORM\Column(name="province", type="string", length=255)
* @Assert\NotBlank()
*
*/
private $province;
/**
* @var string
*
* @ORM\Column(name="population", type="string", length=255)
* @Assert\NotBlank()
*
*/
private $population;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
* @Assert\NotBlank()
*/
private $title;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set country
*
* @param string $country
*
* @return Destination
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Set province
*
* @param string $province
*
* @return Destination
*/
public function setProvince($province)
{
$this->province = $province;
return $this;
}
/**
* Get province
*
* @return string
*/
public function getProvince()
{
return $this->province;
}
/**
* Set population
*
* @param string $population
*
* @return Destination
*/
public function setPopulation($population)
{
$this->population = $population;
return $this;
}
/**
* Get population
*
* @return string
*/
public function getPopulation()
{
return $this->population;
}
/**
* Set title
*
* @param string $title
*
* @return Destination
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return Destination
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return Destination
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return Destination
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return Destination
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set region
*
* @param string $region
*
* @return Destination
*/
public function setRegion($region)
{
$this->region = $region;
return $this;
}
/**
* Get region
*
* @return string
*/
public function getRegion()
{
return $this->region;
}
}