<?php
declare(strict_types=1);

namespace App\Modules\Cron;

use App\Modules\Settings\AllegroStatusSyncService;

final class AllegroStatusSyncHandler
{
    public function __construct(private readonly AllegroStatusSyncService $syncService)
    {
    }

    /**
     * @param array<string, mixed> $payload
     * @return array<string, mixed>
     */
    public function handle(array $payload): array
    {
        return $this->syncService->sync();
    }
}
