forked from UnlockedLabs/UnlockEdv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…e in `Enrollment` Model and `StoreEnrollmentRequest`.
- Loading branch information
1 parent
7a9352e
commit 4e8dc02
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Enums; | ||
|
||
enum EnrollmentState: string | ||
{ | ||
case ACTIVE = 'active'; | ||
case INACTIVE = 'inactive'; | ||
// case INVITED = 'invited'; | ||
case COMPLETED = 'completed'; | ||
case DELETED = 'deleted'; | ||
|
||
public static function toArray(): array | ||
{ | ||
return array_column(EnrollmentState::cases(), 'value'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters