Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-inventory-reservations/Cron/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-inventory-reservations/Cron/CleanupReservations.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\InventoryReservations\Cron;

use Magento\InventoryReservationsApi\Model\CleanupReservationsInterface;

/**
 * Cron job precessing of reservations cleanup
 */
class CleanupReservations
{
    /**
     * @var CleanupReservationsInterface
     */
    private $cleanupReservations;

    /**
     * @param CleanupReservationsInterface $cleanupReservations
     */
    public function __construct(CleanupReservationsInterface $cleanupReservations)
    {
        $this->cleanupReservations = $cleanupReservations;
    }

    /**
     * Cleanup reservations
     *
     * @return void
     */
    public function execute()
    {
        $this->cleanupReservations->execute();
    }
}