TenantAtlas/apps/platform/app/Support/Providers/Readiness/ProviderReadinessState.php
Ahmed Darrazi 1245af12af
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m25s
feat: improve provider readiness semantics and freshness guidance
2026-06-21 19:18:00 +02: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',
};
}
}