SummaryOperationStatusInterface.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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\AsynchronousOperations\Api\Data;
  8. /**
  9. * Getter Class OperationsStatusInterface
  10. * Instead of OperationInterface this class don't provide all operation data
  11. * and not responsive to set any data, just to get operation data
  12. * without serialized_data and result_serialized_data
  13. *
  14. * @api
  15. * @since 100.2.3
  16. */
  17. interface SummaryOperationStatusInterface
  18. {
  19. /**
  20. * Operation id
  21. *
  22. * @return int
  23. * @since 100.2.3
  24. */
  25. public function getId();
  26. /**
  27. * Get operation status
  28. *
  29. * OPEN | COMPLETE | RETRIABLY_FAILED | NOT_RETRIABLY_FAILED
  30. *
  31. * @return int
  32. * @since 100.2.3
  33. */
  34. public function getStatus();
  35. /**
  36. * Get result message
  37. *
  38. * @return string
  39. * @since 100.2.3
  40. */
  41. public function getResultMessage();
  42. /**
  43. * Get error code
  44. *
  45. * @return int
  46. * @since 100.2.3
  47. */
  48. public function getErrorCode();
  49. }