<?php

namespace App\Jobs;

use App\Services\EvidenceService;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Queue\Queueable;
use Illuminate\Support\Facades\Log;

class CleanupEvidenceFiles implements ShouldQueue
{
    use Queueable;

    public function handle(EvidenceService $evidenceService): void
    {
        $deleted = $evidenceService->cleanupExpired();
        Log::info('evidence.cleanup.completed', ['deleted_files' => $deleted]);
    }
}
