feat : ajout d'un onglet formation
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-04-13 09:41:36 +02:00
parent b185accdbb
commit 4cd30de3e3
29 changed files with 1244 additions and 36 deletions

View File

@@ -17,8 +17,16 @@ final class DayContextRow
public int $creditedMinutes = 0,
public float $creditedPresenceUnits = 0.0,
public bool $isDriverContract = false,
public bool $hasFormation = false,
public ?string $formationLabel = null,
) {}
public function setFormation(string $label): void
{
$this->hasFormation = true;
$this->formationLabel = $label;
}
public function addAbsence(
?string $label,
?string $color,
@@ -64,7 +72,10 @@ final class DayContextRow
* absentMorning:bool,
* absentAfternoon:bool,
* creditedMinutes:int,
* creditedPresenceUnits:float
* creditedPresenceUnits:float,
* isDriverContract:bool,
* hasFormation:bool,
* formationLabel:?string
* }
*/
public function toArray(): array
@@ -80,6 +91,8 @@ final class DayContextRow
'creditedMinutes' => $this->creditedMinutes,
'creditedPresenceUnits' => $this->creditedPresenceUnits,
'isDriverContract' => $this->isDriverContract,
'hasFormation' => $this->hasFormation,
'formationLabel' => $this->formationLabel,
];
}