<?php

namespace App\Support;

class CatalogMetaLeadEventName
{
    public static function fromBrand(?string $brandName): string
    {
        $slug = preg_replace('/[^a-zA-Z0-9]+/', '', trim((string) $brandName)) ?? '';

        if ($slug === '') {
            return 'Lead';
        }

        return $slug.'Lead';
    }
}
