<?php

declare(strict_types=1);

namespace App\Domain\Shared\Application\Command;

use App\Domain\Shared\Domain\Contract\CommandInterface;
use App\Domain\Shared\Domain\Model\JobStatus;

readonly class DeleteJobsByCriteria implements CommandInterface
{
    /**
     * @param JobStatus[]|null $statuses
     */
    public function __construct(
        public ?array $statuses = null,
        public ?string $type = null,
        public ?\DateTimeImmutable $createdAfter = null,
        public ?\DateTimeImmutable $createdBefore = null,
    ) {
    }
}
