Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Operation.php
Go to the documentation of this file.
1 <?php
7 
10 
14 class Operation extends DataObject implements OperationInterface
15 {
19  public function getId()
20  {
21  return $this->getData(self::ID);
22  }
23 
27  public function setId($id)
28  {
29  return $this->setData(self::ID, $id);
30  }
31 
35  public function getBulkUuid()
36  {
37  return $this->getData(self::BULK_ID);
38  }
39 
43  public function setBulkUuid($bulkId)
44  {
45  return $this->setData(self::BULK_ID, $bulkId);
46  }
47 
51  public function getTopicName()
52  {
53  return $this->getData(self::TOPIC_NAME);
54  }
55 
59  public function setTopicName($topic)
60  {
61  return $this->setData(self::TOPIC_NAME, $topic);
62  }
63 
67  public function getSerializedData()
68  {
69  return $this->getData(self::SERIALIZED_DATA);
70  }
71 
75  public function setSerializedData($serializedData)
76  {
77  return $this->setData(self::SERIALIZED_DATA, $serializedData);
78  }
79 
83  public function getResultSerializedData()
84  {
85  return $this->getData(self::RESULT_SERIALIZED_DATA);
86  }
87 
91  public function setResultSerializedData($resultSerializedData)
92  {
93  return $this->setData(self::RESULT_SERIALIZED_DATA, $resultSerializedData);
94  }
95 
99  public function getStatus()
100  {
101  return $this->getData(self::STATUS);
102  }
103 
107  public function setStatus($status)
108  {
109  return $this->setData(self::STATUS, $status);
110  }
111 
115  public function getResultMessage()
116  {
117  return $this->getData(self::RESULT_MESSAGE);
118  }
119 
123  public function setResultMessage($resultMessage)
124  {
125  return $this->setData(self::RESULT_MESSAGE, $resultMessage);
126  }
127 
131  public function getErrorCode()
132  {
133  return $this->getData(self::ERROR_CODE);
134  }
135 
139  public function setErrorCode($errorCode)
140  {
141  return $this->setData(self::ERROR_CODE, $errorCode);
142  }
143 
149  public function getExtensionAttributes()
150  {
151  return $this->getData(self::EXTENSION_ATTRIBUTES_KEY);
152  }
153 
160  public function setExtensionAttributes(
161  \Magento\AsynchronousOperations\Api\Data\OperationExtensionInterface $extensionAttributes
162  ) {
163  return $this->setData(self::EXTENSION_ATTRIBUTES_KEY, $extensionAttributes);
164  }
165 }
getData($key='', $index=null)
Definition: DataObject.php:119
$id
Definition: fieldset.phtml:14
setExtensionAttributes(\Magento\AsynchronousOperations\Api\Data\OperationExtensionInterface $extensionAttributes)
Definition: Operation.php:160
setResultSerializedData($resultSerializedData)
Definition: Operation.php:91
$status
Definition: order_status.php:8
$extensionAttributes
Definition: payment.php:22
setData($key, $value=null)
Definition: DataObject.php:72