'Non acquis', self::IN_PROGRESS => 'En cours d\'acquisition', self::ACQUIRED => 'Acquis', self::EXCEEDED => 'Dépassé', }; } public function sortOrder(): int { return match ($this) { self::NOT_ACQUIRED => 1, self::IN_PROGRESS => 2, self::ACQUIRED => 3, self::EXCEEDED => 4, }; } public function color(): string { return match ($this) { self::NOT_ACQUIRED => '#e74c3c', self::IN_PROGRESS => '#f39c12', self::ACQUIRED => '#2ecc71', self::EXCEEDED => '#3498db', }; } }