<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\QPVRepository;use Doctrine\ORM\Mapping as ORM;/** * QPV. * * @ORM\Table(name="QPV") * * @ORM\Entity(repositoryClass=QPVRepository::class) */class QPV{ /** * @var int * * @ORM\Column(name="id", type="integer") * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="code_quartier", type="string", length=255) */ private $codeQuartier; /** * @var string * * @ORM\Column(name="quartier_prioritaire", type="string", length=255) */ private $quartierPrioritaire; /** * @var string * * @ORM\Column(name="communes_concernees", type="string", length=255) */ private $communesConcernees; /** * @ORM\ManyToOne(targetEntity="Departement") * * @ORM\JoinColumn(name="departement_id", referencedColumnName="id") */ private $departement; #[\Override] public function __toString(): string { return $this->codeQuartier.' - '.$this->quartierPrioritaire.' ('.$this->getCommunesConcernees().' - '.$this->getDepartement()->getNum().')'; } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set codeQuartier. * * @param string $codeQuartier */ public function setCodeQuartier($codeQuartier): static { $this->codeQuartier = $codeQuartier; return $this; } /** * Get codeQuartier. * * @return string */ public function getCodeQuartier() { return $this->codeQuartier; } /** * Set quartierPrioritaire. * * @param string $quartierPrioritaire */ public function setQuartierPrioritaire($quartierPrioritaire): static { $this->quartierPrioritaire = $quartierPrioritaire; return $this; } /** * Get quartierPrioritaire. * * @return string */ public function getQuartierPrioritaire() { return $this->quartierPrioritaire; } /** * Set communesConcernees. * * @param string $communesConcernees */ public function setCommunesConcernees($communesConcernees): static { $this->communesConcernees = $communesConcernees; return $this; } /** * Get communesConcernees. * * @return string */ public function getCommunesConcernees() { return $this->communesConcernees; } /** * Set departement. * * @return Commune */ public function setDepartement(?Departement $departement = null): static { $this->departement = $departement; return $this; } /** * Get departement. * * @return Departement */ public function getDepartement() { return $this->departement; }}