<?php
declare(strict_types=1);

namespace PpPhp\Core\Platform\DI\Verification;

final class DiSubsystemLock
{
    public const VERSION = 'R0100.4';
    public const STATUS = 'locked';
    public const LOCK_FILE = 'storage/reports/r0100/r0100-di-subsystem-lock.json';

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