TenantAtlas/apps/platform/app/Support/Providers/Readiness/ProviderReadinessState.php
ahmido a6c064cbf1 feat: improve provider readiness semantics and freshness guidance (#465)
Automated PR created by Codex via Gitea API.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #465
2026-06-21 17:20:10 +00:00

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',
};
}
}