<?php
namespace App\Entity;
use App\Repository\StationRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=StationRepository::class)
*/
class Station
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=1000, nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
/**
* @ORM\Column(type="string", length=1000)
*/
private $media;
/**
* @ORM\Column(type="string", length=1000, nullable=true)
*/
private $url;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $frequence;
/**
* @ORM\ManyToOne(targetEntity=GeoCountries::class, inversedBy="stations")
* @ORM\JoinColumn(nullable=false)
*/
private $pays;
/**
* @ORM\Column(type="string", length=255, unique=true)
*
* @Gedmo\Slug(fields={"name"}, updatable=true)
*/
private $slug;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getFrequence(): ?string
{
return $this->frequence;
}
public function setFrequence(?string $frequence): self
{
$this->frequence = $frequence;
return $this;
}
public function getPays(): ?GeoCountries
{
return $this->pays;
}
public function setPays(?GeoCountries $pays): self
{
$this->pays = $pays;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getMedia(): ?string
{
return $this->media;
}
public function setMedia(string $media): self
{
$this->media = $media;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(string $slug): self
{
$this->slug = $slug;
return $this;
}
}