Files
SkinbaseNova/app/Enums/ModerationDomainStatus.php

37 lines
1004 B
PHP

<?php
namespace App\Enums;
enum ModerationDomainStatus: string
{
case Allowed = 'allowed';
case Neutral = 'neutral';
case Suspicious = 'suspicious';
case Blocked = 'blocked';
case Escalated = 'escalated';
case ReviewRequired = 'review_required';
public function label(): string
{
return match ($this) {
self::Allowed => 'Allowed',
self::Neutral => 'Neutral',
self::Suspicious => 'Suspicious',
self::Blocked => 'Blocked',
self::Escalated => 'Escalated',
self::ReviewRequired => 'Review Required',
};
}
public function badgeClass(): string
{
return match ($this) {
self::Allowed => 'badge-success',
self::Neutral => 'badge-light',
self::Suspicious => 'badge-warning',
self::Blocked => 'badge-danger',
self::Escalated => 'badge-dark',
self::ReviewRequired => 'badge-info',
};
}
}