<?php

namespace App\Jobs;

use App\Services\Payments\MissionSettlementProcessor;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;

class ProcessMissionSettlementPayment implements ShouldQueue
{
    use Queueable;

    public function __construct(public readonly int $missionId) {}

    public function handle(MissionSettlementProcessor $processor): void
    {
        $processor->processMission($this->missionId);
    }
}
