CleanupReservationsInterface.php 553 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryReservationsApi\Model;
  8. /**
  9. * Extension point for reservation cleanup (Service Provider Interface - SPI).
  10. * Provide own implementation of this interface if you would like to replace cleanup strategy.
  11. *
  12. * @api
  13. */
  14. interface CleanupReservationsInterface
  15. {
  16. /**
  17. * Clean reservation table to prevent overloading.
  18. *
  19. * @return void
  20. */
  21. public function execute(): void;
  22. }