Implement creator studio and upload updates
This commit is contained in:
19
app/Enums/ModerationRuleType.php
Normal file
19
app/Enums/ModerationRuleType.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user