Automated PR created by Codex via Gitea API. Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #465
30 lines
768 B
PHP
30 lines
768 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Providers\Readiness;
|
|
|
|
enum ProviderReadinessState: string
|
|
{
|
|
case Ready = 'ready';
|
|
case NeedsAttention = 'needs_attention';
|
|
case Blocked = 'blocked';
|
|
case NotConfigured = 'not_configured';
|
|
case Expired = 'expired';
|
|
case Failed = 'failed';
|
|
case Unknown = 'unknown';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Ready => 'Ready',
|
|
self::NeedsAttention => 'Needs attention',
|
|
self::Blocked => 'Blocked',
|
|
self::NotConfigured => 'Not configured',
|
|
self::Expired => 'Verification expired',
|
|
self::Failed => 'Verification failed',
|
|
self::Unknown => 'Unknown',
|
|
};
|
|
}
|
|
}
|