Files
nexusphp/app/Enums/MessageTemplateNameEnum.php

19 lines
365 B
PHP
Raw Permalink Normal View History

2025-06-19 13:13:26 +07:00
<?php
namespace App\Enums;
use function PHPUnit\Framework\matches;
enum MessageTemplateNameEnum: string
{
case REGISTER_WELCOME = "register_welcome";
public function label(): string
{
return match ($this) {
self::REGISTER_WELCOME => nexus_trans("message-template.register_welcome"),
default => '',
};
}
}