27 lines
507 B
PHP
27 lines
507 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Onboarding;
|
|
|
|
enum OnboardingDraftStatus: string
|
|
{
|
|
case Draft = 'draft';
|
|
case Completed = 'completed';
|
|
case Cancelled = 'cancelled';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Draft => 'Draft',
|
|
self::Completed => 'Completed',
|
|
self::Cancelled => 'Cancelled',
|
|
};
|
|
}
|
|
|
|
public function isResumable(): bool
|
|
{
|
|
return $this === self::Draft;
|
|
}
|
|
}
|