up stats page

This commit is contained in:
Tykayn 2025-06-03 12:51:20 +02:00 committed by tykayn
parent a412cb977a
commit e4bf3753b0
9 changed files with 357 additions and 124 deletions

View file

@ -52,6 +52,9 @@ class Stats
#[ORM\Column(type: Types::SMALLINT, nullable: true)]
private ?int $avec_note = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
// calcule le pourcentage de complétion de la zone
public function computeCompletionPercent(): ?int
{
@ -211,6 +214,18 @@ class Stats
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
}