BulkSummary.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AsynchronousOperations\Model;
  7. use Magento\AsynchronousOperations\Api\Data\BulkSummaryInterface;
  8. use Magento\Framework\DataObject;
  9. /**
  10. * Class BulkSummary
  11. */
  12. class BulkSummary extends DataObject implements BulkSummaryInterface, \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * @inheritDoc
  16. */
  17. public function getBulkId()
  18. {
  19. return $this->getData(self::BULK_ID);
  20. }
  21. /**
  22. * @inheritDoc
  23. */
  24. public function setBulkId($bulkUuid)
  25. {
  26. return $this->setData(self::BULK_ID, $bulkUuid);
  27. }
  28. /**
  29. * @inheritDoc
  30. */
  31. public function getDescription()
  32. {
  33. return $this->getData(self::DESCRIPTION);
  34. }
  35. /**
  36. * @inheritDoc
  37. */
  38. public function setDescription($description)
  39. {
  40. return $this->setData(self::DESCRIPTION, $description);
  41. }
  42. /**
  43. * @inheritDoc
  44. */
  45. public function getStartTime()
  46. {
  47. return $this->getData(self::START_TIME);
  48. }
  49. /**
  50. * @inheritDoc
  51. */
  52. public function setStartTime($timestamp)
  53. {
  54. return $this->setData(self::START_TIME, $timestamp);
  55. }
  56. /**
  57. * @inheritDoc
  58. */
  59. public function getUserId()
  60. {
  61. return $this->getData(self::USER_ID);
  62. }
  63. /**
  64. * @inheritDoc
  65. */
  66. public function setUserId($userId)
  67. {
  68. return $this->setData(self::USER_ID, $userId);
  69. }
  70. /**
  71. * @inheritDoc
  72. */
  73. public function getUserType()
  74. {
  75. return $this->getData(self::USER_TYPE);
  76. }
  77. /**
  78. * @inheritDoc
  79. */
  80. public function setUserType($userType)
  81. {
  82. return $this->setData(self::USER_TYPE, $userType);
  83. }
  84. /**
  85. * @inheritDoc
  86. */
  87. public function getOperationCount()
  88. {
  89. return $this->getData(self::OPERATION_COUNT);
  90. }
  91. /**
  92. * @inheritDoc
  93. */
  94. public function setOperationCount($operationCount)
  95. {
  96. return $this->setData(self::OPERATION_COUNT, $operationCount);
  97. }
  98. /**
  99. * Retrieve existing extension attributes object.
  100. *
  101. * @return \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface|null
  102. */
  103. public function getExtensionAttributes()
  104. {
  105. return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
  106. }
  107. /**
  108. * Set an extension attributes object.
  109. *
  110. * @param \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface $extensionAttributes
  111. * @return $this
  112. */
  113. public function setExtensionAttributes(
  114. \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface $extensionAttributes
  115. ) {
  116. return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
  117. }
  118. }