value; } public static function create(string $val): ?static { $value = trim(strtolower($val)); $value = str_replace([' ', '_'], '-', $value); $map = [ 'whisper' => 'whispering', 'witch' => 'witchy', ]; $value = $map[$value] ?? $value; return self::tryFrom($value); } }