fedi-feed-router/app/Enums/PlatformEnum.php

23 lines
369 B
PHP
Raw Normal View History

2025-06-30 18:18:30 +02:00
<?php
namespace App\Enums;
enum PlatformEnum: string
{
case LEMMY = 'lemmy';
public function channelLabel(): string
{
return match ($this) {
self::LEMMY => 'Community',
};
}
public function channelLabelPlural(): string
{
return match ($this) {
self::LEMMY => 'Communities',
};
}
}