File tree Expand file tree Collapse file tree 3 files changed +35
-19
lines changed
app/code/Magento/AsynchronousOperations Expand file tree Collapse file tree 3 files changed +35
-19
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ namespace Magento \AsynchronousOperations \Api \Data ;
8
+
9
+ /**
10
+ * Class BulkOperationInterface
11
+ * @api
12
+ * @since 103.0.0
13
+ */
14
+ interface BulkOperationInterface
15
+ {
16
+ public const OPERATION_ID = 'id ' ;
17
+
18
+ /**
19
+ * Get operation key
20
+ *
21
+ * @return int|null
22
+ * @since 103.0.1
23
+ */
24
+ public function getOperationKey ();
25
+
26
+ /**
27
+ * Set operation key
28
+ *
29
+ * @param int|null $operationKey
30
+ * @since 103.0.1
31
+ */
32
+ public function setOperationKey (?int $ operationKey );
33
+ }
Original file line number Diff line number Diff line change 13
13
*/
14
14
interface OperationInterface extends \Magento \Framework \Bulk \OperationInterface
15
15
{
16
- public const OPERATION_ID = 'id ' ;
17
-
18
16
/**
19
17
* Retrieve existing extension attributes object.
20
18
*
@@ -33,20 +31,4 @@ public function getExtensionAttributes();
33
31
public function setExtensionAttributes (
34
32
\Magento \AsynchronousOperations \Api \Data \OperationExtensionInterface $ extensionAttributes
35
33
);
36
-
37
- /**
38
- * Get operation key
39
- *
40
- * @return int|null
41
- * @since 103.0.1
42
- */
43
- public function getOperationKey ();
44
-
45
- /**
46
- * Set operation key
47
- *
48
- * @param int|null $operationKey
49
- * @since 103.0.1
50
- */
51
- public function setOperationKey (?int $ operationKey );
52
34
}
Original file line number Diff line number Diff line change 6
6
namespace Magento \AsynchronousOperations \Model ;
7
7
8
8
use Magento \AsynchronousOperations \Api \Data \OperationInterface ;
9
+ use Magento \AsynchronousOperations \Api \Data \BulkOperationInterface ;
9
10
use Magento \AsynchronousOperations \Model \OperationStatusValidator ;
10
11
use Magento \Framework \DataObject ;
11
12
12
13
/**
13
14
* Class Operation encapsulates methods for Operation Model Object
14
15
*/
15
- class Operation extends DataObject implements OperationInterface
16
+ class Operation extends DataObject implements OperationInterface, BulkOperationInterface
16
17
{
17
18
/**
18
19
* @var OperationStatusValidator
You can’t perform that action at this time.
0 commit comments