fedi-feed-router/app/Enums/PlatformEnum.php
myrmidex ec09711a6f
All checks were successful
CI / ci (push) Successful in 5m21s
CI / ci (pull_request) Successful in 5m39s
Build and Push Docker Image / build (push) Successful in 4m36s
21 - Add dynamic channel labels based on platform type
2026-03-08 18:10:47 +01:00

22 lines
369 B
PHP

<?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',
};
}
}