-
Notifications
You must be signed in to change notification settings - Fork 9.4k
/
Copy pathBulkSummaryInterface.php
118 lines (106 loc) · 2.26 KB
/
BulkSummaryInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Bulk;
/**
* Interface BulkSummaryInterface
* @api
* @since 103.0.0
*/
interface BulkSummaryInterface
{
/**#@+
* Constants for keys of data array. Identical to the name of the getter in snake case
*/
const BULK_ID = 'uuid';
const DESCRIPTION = 'description';
const START_TIME = 'start_time';
const USER_ID = 'user_id';
const OPERATION_COUNT = 'operation_count';
/**#@-*/
/**#@+
* Bulk statuses constants
*/
const NOT_STARTED = 0;
const IN_PROGRESS = 1;
const FINISHED_SUCCESSFULLY = 2;
const FINISHED_WITH_FAILURE = 3;
/**#@-*/
/**
* Get bulk uuid
*
* @return string
* @since 103.0.0
*/
public function getBulkId();
/**
* Set bulk uuid
*
* @param string $bulkUuid
* @return $this
* @since 103.0.0
*/
public function setBulkId($bulkUuid);
/**
* Get bulk description
*
* @return string
* @since 103.0.0
*/
public function getDescription();
/**
* Set bulk description
*
* @param string $description
* @return $this
* @since 103.0.0
*/
public function setDescription($description);
/**
* Get bulk scheduled time
*
* @return string
* @since 103.0.0
*/
public function getStartTime();
/**
* Set bulk scheduled time
*
* @param string $timestamp
* @return $this
* @since 103.0.0
*/
public function setStartTime($timestamp);
/**
* Get user id
*
* @return int
* @since 103.0.0
*/
public function getUserId();
/**
* Set user id
*
* @param int $userId
* @return $this
* @since 103.0.0
*/
public function setUserId($userId);
/**
* Get total number of operations scheduled in scope of this bulk
*
* @return int
* @since 103.0.0
*/
public function getOperationCount();
/**
* Set total number of operations scheduled in scope of this bulk
*
* @param int $operationCount
* @return $this
* @since 103.0.0
*/
public function setOperationCount($operationCount);
}