OperationManagementInterface.php 745 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Bulk;
  7. /**
  8. * Interface OperationManagementInterface
  9. * @api
  10. * @since 102.0.1
  11. */
  12. interface OperationManagementInterface
  13. {
  14. /**
  15. * Used by consumer to change status after processing operation
  16. *
  17. * @param int $operationId
  18. * @param int $status
  19. * @param int|null $errorCode
  20. * @param string|null $message property to update Result Message
  21. * @param string|null $data serialized data object of failed message
  22. * @return boolean
  23. * @since 102.0.1
  24. */
  25. public function changeOperationStatus($operationId, $status, $errorCode = null, $message = null, $data = null);
  26. }