BatchInfoDto::getStateMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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_batchinfo.htm
10
 */
11
class BatchInfoDto extends ConstructFromArrayOrJson
12
{
13
    const STATE_QUEUED        = 'Queued';
14
    const STATE_IN_PROGRESS   = 'InProgress';
15
    const STATE_COMPLETED     = 'Completed';
16
    const STATE_FAILED        = 'Failed';
17
    const STATE_NOT_PROCESSED = 'Not Processed';
18
19
    /**
20
     * @var int
21
     */
22
    protected $apexProcessingTime;
23
24
    /**
25
     * @var int
26
     */
27
    protected $apiActiveProcessingTime;
28
29
    /**
30
     * @var string
31
     */
32
    protected $createdDate;
33
34
    /**
35
     * @var string
36
     */
37
    protected $id;
38
39
    /**
40
     * @var string
41
     */
42
    protected $jobId;
43
44
    /**
45
     * @var int
46
     */
47
    protected $numberRecordsFailed;
48
49
    /**
50
     * @var int
51
     */
52
    protected $numberRecordsProcessed;
53
54
    /**
55
     * @var string
56
     */
57
    protected $state;
58
59
    /**
60
     * @var string
61
     */
62
    protected $stateMessage;
63
64
    /**
65
     * @var string
66
     */
67
    protected $systemModstamp;
68
69
    /**
70
     * @var int
71
     */
72
    protected $totalProcessingTime;
73
74
    /**
75
     * @return int
76
     */
77
    public function getApexProcessingTime()
78
    {
79
        return $this->apexProcessingTime;
80
    }
81
82
    /**
83
     * @return int
84
     */
85
    public function getApiActiveProcessingTime()
86
    {
87
        return $this->apiActiveProcessingTime;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getCreatedDate()
94
    {
95
        return $this->createdDate;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getId()
102
    {
103
        return $this->id;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getJobId()
110
    {
111
        return $this->jobId;
112
    }
113
114
    /**
115
     * @return int
116
     */
117
    public function getNumberRecordsFailed()
118
    {
119
        return $this->numberRecordsFailed;
120
    }
121
122
    /**
123
     * @return int
124
     */
125
    public function getNumberRecordsProcessed()
126
    {
127
        return $this->numberRecordsProcessed;
128
    }
129
130
    /**
131
     * @return string
132
     */
133
    public function getState()
134
    {
135
        return $this->state;
136
    }
137
138
    /**
139
     * @return string
140
     */
141
    public function getSystemModstamp()
142
    {
143
        return $this->systemModstamp;
144
    }
145
146
    /**
147
     * @return int
148
     */
149
    public function getTotalProcessingTime()
150
    {
151
        return $this->totalProcessingTime;
152
    }
153
154
    /**
155
     * @return string
156
     */
157
    public function getStateMessage()
158
    {
159
        return $this->stateMessage;
160
    }
161
162
    /**
163
     * @param string $stateMessage
164
     *
165
     * @return $this
166
     */
167
    public function setStateMessage($stateMessage)
168
    {
169
        $this->stateMessage = $stateMessage;
170
        return $this;
171
    }
172
}