<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\Event\Verification;

final class EventCoreLock
{
    public const VERSION = 'R0100.5A';
    public const STATUS = 'locked';
    public const LOCK_FILE = 'storage/reports/r0100/r0100-event-core-lock.json';

    public static function payload(EventCoreStatus $status): array
    {
        return [
            'version' => self::VERSION,
            'status' => self::STATUS,
            'lockedAt' => date('c'),
            'verification' => $status->toArray(),
            'nextMilestone' => 'R0100.5B Listener Registry',
        ];
    }
}
