From f3a32e9d94c538785841bafd453a42dd0f7ae584 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 10 Dec 2024 22:51:36 -0500 Subject: [PATCH] Convert CaseLevel to use int for comparisons --- src/Enums/CaseLevel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Enums/CaseLevel.php b/src/Enums/CaseLevel.php index 662749b..f4514ae 100644 --- a/src/Enums/CaseLevel.php +++ b/src/Enums/CaseLevel.php @@ -2,11 +2,11 @@ namespace App\Enums; -enum CaseLevel: string +enum CaseLevel: int { - case PARAPROFESSIONAL = 'Paraprofessional'; - case BACHELOR = 'Bachelor'; - case MASTER = 'Master'; - case DOCTORATE = 'Doctorate'; - case ADMIN = 'Admin'; + case PARAPROFESSIONAL = 0; + case BACHELOR = 1; + case MASTER = 2; + case DOCTORATE = 3; + case ADMIN = 99; }