<?php
namespace App\Entity;
use App\Repository\AlertesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AlertesRepository::class)
*/
class Alertes
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Villes::class, inversedBy="alertes")
*/
private $Villes;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $Rayon;
/**
* @ORM\ManyToOne(targetEntity=Categories::class, inversedBy="alertes")
*/
private $Categories;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Texte;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="alertes")
*/
private $User;
public function getId(): ?int
{
return $this->id;
}
public function getVilles(): ?Villes
{
return $this->Villes;
}
public function setVilles(?Villes $Villes): self
{
$this->Villes = $Villes;
return $this;
}
public function getRayon(): ?int
{
return $this->Rayon;
}
public function setRayon(?int $Rayon): self
{
$this->Rayon = $Rayon;
return $this;
}
public function getCategories(): ?Categories
{
return $this->Categories;
}
public function setCategories(?Categories $Categories): self
{
$this->Categories = $Categories;
return $this;
}
public function getTexte(): ?string
{
return $this->Texte;
}
public function setTexte(?string $Texte): self
{
$this->Texte = $Texte;
return $this;
}
public function getUser(): ?User
{
return $this->User;
}
public function setUser(?User $User): self
{
$this->User = $User;
return $this;
}
}