<?php

declare(strict_types=1);

namespace MauticPlugin\DealFlowBundle\Service;

final class UpdateCheckResult
{
    public function __construct(
        public readonly bool $updateAvailable,
        public readonly string $latestVersion,
        public readonly string $currentVersion,
        public readonly ?string $downloadUrl = null,
        public readonly ?string $changelog = null,
        public readonly ?string $sha256 = null,
        public readonly bool $requiresMigration = false,
        public readonly bool $eligible = true,
        public readonly ?string $updatesUntil = null,
        public readonly ?string $releasedAt = null,
        public readonly bool $fromCache = false,
        public readonly bool $error = false,
        public readonly ?string $errorMessage = null,
    ) {
    }
}
