123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\AsynchronousOperations\Model;
- use Magento\AsynchronousOperations\Api\Data\OperationInterface;
- use Magento\Framework\DataObject;
- /**
- * Class Operation
- */
- class Operation extends DataObject implements OperationInterface
- {
- /**
- * @inheritDoc
- */
- public function getId()
- {
- return $this->getData(self::ID);
- }
- /**
- * @inheritDoc
- */
- public function setId($id)
- {
- return $this->setData(self::ID, $id);
- }
- /**
- * @inheritDoc
- */
- public function getBulkUuid()
- {
- return $this->getData(self::BULK_ID);
- }
- /**
- * @inheritDoc
- */
- public function setBulkUuid($bulkId)
- {
- return $this->setData(self::BULK_ID, $bulkId);
- }
- /**
- * @inheritDoc
- */
- public function getTopicName()
- {
- return $this->getData(self::TOPIC_NAME);
- }
- /**
- * @inheritDoc
- */
- public function setTopicName($topic)
- {
- return $this->setData(self::TOPIC_NAME, $topic);
- }
- /**
- * @inheritDoc
- */
- public function getSerializedData()
- {
- return $this->getData(self::SERIALIZED_DATA);
- }
- /**
- * @inheritDoc
- */
- public function setSerializedData($serializedData)
- {
- return $this->setData(self::SERIALIZED_DATA, $serializedData);
- }
- /**
- * @inheritDoc
- */
- public function getResultSerializedData()
- {
- return $this->getData(self::RESULT_SERIALIZED_DATA);
- }
- /**
- * @inheritDoc
- */
- public function setResultSerializedData($resultSerializedData)
- {
- return $this->setData(self::RESULT_SERIALIZED_DATA, $resultSerializedData);
- }
- /**
- * @inheritDoc
- */
- public function getStatus()
- {
- return $this->getData(self::STATUS);
- }
- /**
- * @inheritDoc
- */
- public function setStatus($status)
- {
- return $this->setData(self::STATUS, $status);
- }
- /**
- * @inheritDoc
- */
- public function getResultMessage()
- {
- return $this->getData(self::RESULT_MESSAGE);
- }
- /**
- * @inheritDoc
- */
- public function setResultMessage($resultMessage)
- {
- return $this->setData(self::RESULT_MESSAGE, $resultMessage);
- }
- /**
- * @inheritDoc
- */
- public function getErrorCode()
- {
- return $this->getData(self::ERROR_CODE);
- }
- /**
- * @inheritDoc
- */
- public function setErrorCode($errorCode)
- {
- return $this->setData(self::ERROR_CODE, $errorCode);
- }
- /**
- * Retrieve existing extension attributes object.
- *
- * @return \Magento\AsynchronousOperations\Api\Data\OperationExtensionInterface|null
- */
- public function getExtensionAttributes()
- {
- return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
- }
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\AsynchronousOperations\Api\Data\OperationExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\AsynchronousOperations\Api\Data\OperationExtensionInterface $extensionAttributes
- ) {
- return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
- }
- }
|