src/Entity/Station.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=StationRepository::class)
  8.  */
  9. class Station
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=1000, nullable=true)
  23.      */
  24.     private $description;
  25.     
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $image;
  30.     
  31.     /**
  32.      * @ORM\Column(type="string", length=1000)
  33.      */
  34.     private $media;
  35.     /**
  36.      * @ORM\Column(type="string", length=1000, nullable=true)
  37.      */
  38.     private $url;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $frequence;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=GeoCountries::class, inversedBy="stations")
  45.      * @ORM\JoinColumn(nullable=false)
  46.      */
  47.     private $pays;
  48.     
  49.     /**
  50.      * @ORM\Column(type="string", length=255, unique=true)
  51.      * 
  52.      * @Gedmo\Slug(fields={"name"}, updatable=true)
  53.      */
  54.     private $slug;
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getName(): ?string
  60.     {
  61.         return $this->name;
  62.     }
  63.     public function setName(string $name): self
  64.     {
  65.         $this->name $name;
  66.         return $this;
  67.     }
  68.     public function getDescription(): ?string
  69.     {
  70.         return $this->description;
  71.     }
  72.     public function setDescription(?string $description): self
  73.     {
  74.         $this->description $description;
  75.         return $this;
  76.     }
  77.     public function getUrl(): ?string
  78.     {
  79.         return $this->url;
  80.     }
  81.     public function setUrl(?string $url): self
  82.     {
  83.         $this->url $url;
  84.         return $this;
  85.     }
  86.     public function getFrequence(): ?string
  87.     {
  88.         return $this->frequence;
  89.     }
  90.     public function setFrequence(?string $frequence): self
  91.     {
  92.         $this->frequence $frequence;
  93.         return $this;
  94.     }
  95.     public function getPays(): ?GeoCountries
  96.     {
  97.         return $this->pays;
  98.     }
  99.     public function setPays(?GeoCountries $pays): self
  100.     {
  101.         $this->pays $pays;
  102.         return $this;
  103.     }
  104.     public function getImage(): ?string
  105.     {
  106.         return $this->image;
  107.     }
  108.     public function setImage(string $image): self
  109.     {
  110.         $this->image $image;
  111.         return $this;
  112.     }
  113.     public function getMedia(): ?string
  114.     {
  115.         return $this->media;
  116.     }
  117.     public function setMedia(string $media): self
  118.     {
  119.         $this->media $media;
  120.         return $this;
  121.     }
  122.     
  123.     public function getSlug(): ?string
  124.     {
  125.         return $this->slug;
  126.     }
  127.     public function setSlug(string $slug): self
  128.     {
  129.         $this->slug $slug;
  130.         return $this;
  131.     }
  132. }