<?php

declare(strict_types=1);

namespace App\Support\Alerts;

use Carbon\CarbonImmutable;

final class AlertDestinationLastTestStatus
{
    public function __construct(
        public readonly AlertDestinationLastTestStatusEnum $status,
        public readonly ?CarbonImmutable $timestamp,
        public readonly ?int $deliveryId,
    ) {}

    public static function never(): self
    {
        return new self(
            status: AlertDestinationLastTestStatusEnum::Never,
            timestamp: null,
            deliveryId: null,
        );
    }
}
