From 3abf0ff6c15df1c8687546a4cb760580abbb83e6 Mon Sep 17 00:00:00 2001 From: marvin Date: Tue, 19 Nov 2024 10:16:50 +0100 Subject: [PATCH] =?UTF-8?q?Entit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Entity/Participant.php | 10 +++++----- src/Entity/Site.php | 2 +- src/Entity/Sortie.php | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Entity/Participant.php b/src/Entity/Participant.php index 5218db9..f10b039 100644 --- a/src/Entity/Participant.php +++ b/src/Entity/Participant.php @@ -21,7 +21,7 @@ class Participant private ?string $nom = null; #[ORM\Column(length: 255)] - private ?string $prénom = null; + private ?string $prenom = null; #[ORM\Column(length: 255, nullable: true)] private ?string $telephone = null; @@ -74,14 +74,14 @@ class Participant return $this; } - public function getPrénom(): ?string + public function getPrenom(): ?string { - return $this->prénom; + return $this->prenom; } - public function setPrénom(string $prénom): self + public function setPrenom(string $prenom): self { - $this->prénom = $prénom; + $this->prenom = $prenom; return $this; } diff --git a/src/Entity/Site.php b/src/Entity/Site.php index 890bf63..3c6c088 100644 --- a/src/Entity/Site.php +++ b/src/Entity/Site.php @@ -34,7 +34,7 @@ class Site public function __construct() { - $this->idSite = Uuid::v4(); // Génération automatique de l'UUID + $this->idSite = Uuid::v4(); $this->sorties = new ArrayCollection(); $this->participants = new ArrayCollection(); } diff --git a/src/Entity/Sortie.php b/src/Entity/Sortie.php index 06e05ac..159bf45 100644 --- a/src/Entity/Sortie.php +++ b/src/Entity/Sortie.php @@ -23,7 +23,7 @@ class Sortie private ?\DateTimeInterface $dateHeureDebut = null; #[ORM\Column(nullable: true)] - private ?int $durée = null; + private ?int $duree = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $dateLimiteInscription = null; @@ -52,7 +52,7 @@ class Sortie public function __construct() { - $this->idSortie = Uuid::v4(); // Génération automatique d'un UUID + $this->idSortie = Uuid::v4(); } public function getIdSortie(): ?Uuid @@ -84,14 +84,14 @@ class Sortie return $this; } - public function getDurée(): ?int + public function getDuree(): ?int { - return $this->durée; + return $this->duree; } - public function setDurée(?int $durée): self + public function setDuree(?int $duree): self { - $this->durée = $durée; + $this->duree = $duree; return $this; }