123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\AsynchronousOperations\Model;
- use Magento\AsynchronousOperations\Api\Data\BulkSummaryInterface;
- use Magento\Framework\DataObject;
- /**
- * Class BulkSummary
- */
- class BulkSummary extends DataObject implements BulkSummaryInterface, \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**
- * @inheritDoc
- */
- public function getBulkId()
- {
- return $this->getData(self::BULK_ID);
- }
- /**
- * @inheritDoc
- */
- public function setBulkId($bulkUuid)
- {
- return $this->setData(self::BULK_ID, $bulkUuid);
- }
- /**
- * @inheritDoc
- */
- public function getDescription()
- {
- return $this->getData(self::DESCRIPTION);
- }
- /**
- * @inheritDoc
- */
- public function setDescription($description)
- {
- return $this->setData(self::DESCRIPTION, $description);
- }
- /**
- * @inheritDoc
- */
- public function getStartTime()
- {
- return $this->getData(self::START_TIME);
- }
- /**
- * @inheritDoc
- */
- public function setStartTime($timestamp)
- {
- return $this->setData(self::START_TIME, $timestamp);
- }
- /**
- * @inheritDoc
- */
- public function getUserId()
- {
- return $this->getData(self::USER_ID);
- }
- /**
- * @inheritDoc
- */
- public function setUserId($userId)
- {
- return $this->setData(self::USER_ID, $userId);
- }
- /**
- * @inheritDoc
- */
- public function getUserType()
- {
- return $this->getData(self::USER_TYPE);
- }
- /**
- * @inheritDoc
- */
- public function setUserType($userType)
- {
- return $this->setData(self::USER_TYPE, $userType);
- }
- /**
- * @inheritDoc
- */
- public function getOperationCount()
- {
- return $this->getData(self::OPERATION_COUNT);
- }
- /**
- * @inheritDoc
- */
- public function setOperationCount($operationCount)
- {
- return $this->setData(self::OPERATION_COUNT, $operationCount);
- }
- /**
- * Retrieve existing extension attributes object.
- *
- * @return \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
- }
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\AsynchronousOperations\Api\Data\BulkSummaryExtensionInterface $extensionAttributes
- ) {
- return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
- }
- }
|