Files
SkinbaseNova/app/Enums/ModerationContentType.php

36 lines
1.2 KiB
PHP

<?php
namespace App\Enums;
enum ModerationContentType: string
{
case ArtworkComment = 'artwork_comment';
case ArtworkDescription = 'artwork_description';
case ArtworkTitle = 'artwork_title';
case UserBio = 'user_bio';
case UserProfileLink = 'user_profile_link';
case CollectionTitle = 'collection_title';
case CollectionDescription = 'collection_description';
case StoryTitle = 'story_title';
case StoryContent = 'story_content';
case CardTitle = 'card_title';
case CardText = 'card_text';
public function label(): string
{
return match ($this) {
self::ArtworkComment => 'Artwork Comment',
self::ArtworkDescription => 'Artwork Description',
self::ArtworkTitle => 'Artwork Title',
self::UserBio => 'User Bio',
self::UserProfileLink => 'User Profile Link',
self::CollectionTitle => 'Collection Title',
self::CollectionDescription => 'Collection Description',
self::StoryTitle => 'Story Title',
self::StoryContent => 'Story Content',
self::CardTitle => 'Card Title',
self::CardText => 'Card Text',
};
}
}