label() => self::MALE, self::FEMALE->label() => self::FEMALE, }; } public function variant(): string { return match ($this) { self::MALE => 'primary', self::FEMALE => 'secondary', }; } }