<?php

namespace ReviewX\Handlers;

use ReviewX\Services\OrderService;
class OrderBulkStatusChangedHandler
{
    protected $orderService;
    public function __construct()
    {
        $this->orderService = new OrderService();
    }
    public function __invoke($redirect_to, $action, $order_ids)
    {
        if ($action === 'mark_complete') {
            $data = [];
            foreach ($order_ids as $order_id) {
                $data['order_wp_unique_ids'] = $order_id;
            }
        }
        return $redirect_to;
    }
}
