<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\DepartementRepository;
#[ORM\Entity(repositoryClass: DepartementRepository::class)]
class Departement
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 50)]
private $nomDepartement;
#[ORM\Column(type: 'string', length: 5)]
private $codeDepartement;
#[ORM\Column(type: 'integer')]
private $codeRegion;
#[ORM\Column(type: 'string', length: 100)]
private $nomRegion;
public function getId(): ?int
{
return $this->id;
}
public function getNomDepartement(): ?string
{
return $this->nomDepartement;
}
public function setNomDepartement(string $nomDepartement): self
{
$this->nomDepartement = $nomDepartement;
return $this;
}
public function getCodeDepartement(): ?string
{
return $this->codeDepartement;
}
public function setCodeDepartement(string $codeDepartement): self
{
$this->codeDepartement = $codeDepartement;
return $this;
}
public function getCodeRegion(): ?int
{
return $this->codeRegion;
}
public function setCodeRegion(int $codeRegion): self
{
$this->codeRegion = $codeRegion;
return $this;
}
public function getNomRegion(): ?string
{
return $this->nomRegion;
}
public function setNomRegion(string $nomRegion): self
{
$this->nomRegion = $nomRegion;
return $this;
}
}