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