<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Scheduler;

final class ScheduleIdentifier
{
    public static function next(string $prefix = 'schedule'): string
    {
        return $prefix . '_' . str_replace('.', '', uniqid('', true)) . '_' . bin2hex(random_bytes(4));
    }
}
