Entité
This commit is contained in:
@@ -21,7 +21,7 @@ class Participant
|
|||||||
private ?string $nom = null;
|
private ?string $nom = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
#[ORM\Column(length: 255)]
|
||||||
private ?string $prénom = null;
|
private ?string $prenom = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255, nullable: true)]
|
#[ORM\Column(length: 255, nullable: true)]
|
||||||
private ?string $telephone = null;
|
private ?string $telephone = null;
|
||||||
@@ -74,14 +74,14 @@ class Participant
|
|||||||
return $this;
|
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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class Site
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->idSite = Uuid::v4(); // Génération automatique de l'UUID
|
$this->idSite = Uuid::v4();
|
||||||
$this->sorties = new ArrayCollection();
|
$this->sorties = new ArrayCollection();
|
||||||
$this->participants = new ArrayCollection();
|
$this->participants = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Sortie
|
|||||||
private ?\DateTimeInterface $dateHeureDebut = null;
|
private ?\DateTimeInterface $dateHeureDebut = null;
|
||||||
|
|
||||||
#[ORM\Column(nullable: true)]
|
#[ORM\Column(nullable: true)]
|
||||||
private ?int $durée = null;
|
private ?int $duree = null;
|
||||||
|
|
||||||
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
|
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
|
||||||
private ?\DateTimeInterface $dateLimiteInscription = null;
|
private ?\DateTimeInterface $dateLimiteInscription = null;
|
||||||
@@ -52,7 +52,7 @@ class Sortie
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->idSortie = Uuid::v4(); // Génération automatique d'un UUID
|
$this->idSortie = Uuid::v4();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIdSortie(): ?Uuid
|
public function getIdSortie(): ?Uuid
|
||||||
@@ -84,14 +84,14 @@ class Sortie
|
|||||||
return $this;
|
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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user