<?php
namespace App\Entity;
use App\Repository\CommunesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CommunesRepository::class)]
class Communes
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $code_postal = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pays = null;
#[ORM\Column(length: 255,nullable: true)]
private ?string $population_total = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nom_url = null;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): static
{
$this->nom = $nom;
return $this;
}
public function getCodePostal(): ?string
{
return $this->code_postal;
}
public function setCodePostal(?string $code_postal): static
{
$this->code_postal = $code_postal;
return $this;
}
public function getPays(): ?string
{
return $this->pays;
}
public function setPays(?string $pays): static
{
$this->pays = $pays;
return $this;
}
public function getPopulationTotal(): ?string
{
return $this->population_total;
}
public function setPopulationTotal(string $population_total): static
{
$this->population_total = $population_total;
return $this;
}
public function getNomUrl(): ?string
{
return $this->nom_url;
}
public function setNomUrl(?string $nom_url): static
{
$this->nom_url = $nom_url;
return $this;
}
}