mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
19 lines
365 B
PHP
19 lines
365 B
PHP
<?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 => '',
|
|
};
|
|
}
|
|
}
|