Files
SkinbaseNova/app/Enums/ModerationRuleType.php

19 lines
440 B
PHP

<?php
namespace App\Enums;
enum ModerationRuleType: string
{
case SuspiciousKeyword = 'suspicious_keyword';
case HighRiskKeyword = 'high_risk_keyword';
case Regex = 'regex';
public function label(): string
{
return match ($this) {
self::SuspiciousKeyword => 'Suspicious Keyword',
self::HighRiskKeyword => 'High-risk Keyword',
self::Regex => 'Regex Rule',
};
}
}