1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace SalesforceBulkApi\dto; |
4
|
|
|
|
5
|
|
|
use BaseHelpers\hydrators\ConstructFromArrayOrJson; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* For more info follow the link |
9
|
|
|
* https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_reference_jobinfo.htm |
10
|
|
|
*/ |
11
|
|
|
class JobInfoDto extends ConstructFromArrayOrJson |
12
|
|
|
{ |
13
|
|
|
const STATE_OPEN = 'Open'; |
14
|
|
|
const STATE_CLOSED = 'Closed'; |
15
|
|
|
const STATE_ABORTED = 'Aborted'; |
16
|
|
|
const STATE_FAILED = 'Failed'; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var int |
20
|
|
|
*/ |
21
|
|
|
protected $apexProcessingTime; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var int |
25
|
|
|
*/ |
26
|
|
|
protected $apiActiveProcessingTime; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
protected $apiVersion; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string |
35
|
|
|
*/ |
36
|
|
|
protected $concurrencyMode; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string |
40
|
|
|
*/ |
41
|
|
|
protected $contentType; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string |
45
|
|
|
*/ |
46
|
|
|
protected $createdById; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string |
50
|
|
|
*/ |
51
|
|
|
protected $createdDate; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
*/ |
56
|
|
|
protected $id; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var int |
60
|
|
|
*/ |
61
|
|
|
protected $numberBatchesCompleted; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var int |
65
|
|
|
*/ |
66
|
|
|
protected $numberBatchesFailed; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @var int |
70
|
|
|
*/ |
71
|
|
|
protected $numberBatchesInProgress; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @var int |
75
|
|
|
*/ |
76
|
|
|
protected $numberBatchesQueued; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var int |
80
|
|
|
*/ |
81
|
|
|
protected $numberBatchesTotal; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var int |
85
|
|
|
*/ |
86
|
|
|
protected $numberRecordsFailed; |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @var int |
90
|
|
|
*/ |
91
|
|
|
protected $numberRecordsProcessed; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var int |
95
|
|
|
*/ |
96
|
|
|
protected $numberRetries; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @var string |
100
|
|
|
*/ |
101
|
|
|
protected $object; |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @var string |
105
|
|
|
*/ |
106
|
|
|
protected $operation; |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @var string |
110
|
|
|
*/ |
111
|
|
|
protected $state; |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @var string |
115
|
|
|
*/ |
116
|
|
|
protected $systemModstamp; |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @var int |
120
|
|
|
*/ |
121
|
|
|
protected $totalProcessingTime; |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @return int |
125
|
|
|
*/ |
126
|
|
|
public function getApexProcessingTime() |
127
|
|
|
{ |
128
|
|
|
return $this->apexProcessingTime; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @return int |
133
|
|
|
*/ |
134
|
|
|
public function getApiActiveProcessingTime() |
135
|
|
|
{ |
136
|
|
|
return $this->apiActiveProcessingTime; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @return string |
141
|
|
|
*/ |
142
|
|
|
public function getApiVersion() |
143
|
|
|
{ |
144
|
|
|
return $this->apiVersion; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @return string |
149
|
|
|
*/ |
150
|
|
|
public function getConcurrencyMode() |
151
|
|
|
{ |
152
|
|
|
return $this->concurrencyMode; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @return string |
157
|
|
|
*/ |
158
|
|
|
public function getContentType() |
159
|
|
|
{ |
160
|
|
|
return $this->contentType; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @return string |
165
|
|
|
*/ |
166
|
|
|
public function getCreatedById() |
167
|
|
|
{ |
168
|
|
|
return $this->createdById; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* @return string |
173
|
|
|
*/ |
174
|
|
|
public function getCreatedDate() |
175
|
|
|
{ |
176
|
|
|
return $this->createdDate; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @return string |
181
|
|
|
*/ |
182
|
|
|
public function getId() |
183
|
|
|
{ |
184
|
|
|
return $this->id; |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @return int |
189
|
|
|
*/ |
190
|
|
|
public function getNumberBatchesCompleted() |
191
|
|
|
{ |
192
|
|
|
return $this->numberBatchesCompleted; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @return int |
197
|
|
|
*/ |
198
|
|
|
public function getNumberBatchesFailed() |
199
|
|
|
{ |
200
|
|
|
return $this->numberBatchesFailed; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return int |
205
|
|
|
*/ |
206
|
|
|
public function getNumberBatchesInProgress() |
207
|
|
|
{ |
208
|
|
|
return $this->numberBatchesInProgress; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @return int |
213
|
|
|
*/ |
214
|
|
|
public function getNumberBatchesQueued() |
215
|
|
|
{ |
216
|
|
|
return $this->numberBatchesQueued; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @return int |
221
|
|
|
*/ |
222
|
|
|
public function getNumberBatchesTotal() |
223
|
|
|
{ |
224
|
|
|
return $this->numberBatchesTotal; |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
/** |
228
|
|
|
* @return int |
229
|
|
|
*/ |
230
|
|
|
public function getNumberRecordsFailed() |
231
|
|
|
{ |
232
|
|
|
return $this->numberRecordsFailed; |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
/** |
236
|
|
|
* @return int |
237
|
|
|
*/ |
238
|
|
|
public function getNumberRecordsProcessed() |
239
|
|
|
{ |
240
|
|
|
return $this->numberRecordsProcessed; |
241
|
|
|
} |
242
|
|
|
|
243
|
|
|
/** |
244
|
|
|
* @return int |
245
|
|
|
*/ |
246
|
|
|
public function getNumberRetries() |
247
|
|
|
{ |
248
|
|
|
return $this->numberRetries; |
249
|
|
|
} |
250
|
|
|
|
251
|
|
|
/** |
252
|
|
|
* @return string |
253
|
|
|
*/ |
254
|
|
|
public function getObject() |
255
|
|
|
{ |
256
|
|
|
return $this->object; |
257
|
|
|
} |
258
|
|
|
|
259
|
|
|
/** |
260
|
|
|
* @return string |
261
|
|
|
*/ |
262
|
|
|
public function getOperation() |
263
|
|
|
{ |
264
|
|
|
return $this->operation; |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* @return string |
269
|
|
|
*/ |
270
|
|
|
public function getState() |
271
|
|
|
{ |
272
|
|
|
return $this->state; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @return string |
277
|
|
|
*/ |
278
|
|
|
public function getSystemModstamp() |
279
|
|
|
{ |
280
|
|
|
return $this->systemModstamp; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @return int |
285
|
|
|
*/ |
286
|
|
|
public function getTotalProcessingTime() |
287
|
|
|
{ |
288
|
|
|
return $this->totalProcessingTime; |
289
|
|
|
} |
290
|
|
|
} |