AsyncResponse.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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\Model;
  8. use Magento\AsynchronousOperations\Api\Data\AsyncResponseInterface;
  9. use Magento\Framework\DataObject;
  10. use Magento\Framework\Api\ExtensibleDataInterface;
  11. class AsyncResponse extends DataObject implements AsyncResponseInterface, ExtensibleDataInterface
  12. {
  13. /**
  14. * @inheritDoc
  15. */
  16. public function getBulkUuid()
  17. {
  18. return $this->getData(self::BULK_UUID);
  19. }
  20. /**
  21. * @inheritDoc
  22. */
  23. public function setBulkUuid($bulkUuid)
  24. {
  25. return $this->setData(self::BULK_UUID, $bulkUuid);
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. public function getRequestItems()
  31. {
  32. return $this->getData(self::REQUEST_ITEMS);
  33. }
  34. /**
  35. * @inheritDoc
  36. */
  37. public function setRequestItems($requestItems)
  38. {
  39. return $this->setData(self::REQUEST_ITEMS, $requestItems);
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function setErrors($isErrors = false)
  45. {
  46. return $this->setData(self::ERRORS, $isErrors);
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function isErrors()
  52. {
  53. return $this->getData(self::ERRORS);
  54. }
  55. /**
  56. * @inheritDoc
  57. */
  58. public function getExtensionAttributes()
  59. {
  60. return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
  61. }
  62. /**
  63. * @inheritDoc
  64. */
  65. public function setExtensionAttributes(
  66. \Magento\AsynchronousOperations\Api\Data\AsyncResponseExtensionInterface $extensionAttributes
  67. ) {
  68. return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
  69. }
  70. }