Test Failed
Push — main ( 16fa93...92cbf8 )
by Bingo
06:44
created

UserOperationLogContextEntry   A

Complexity

Total Complexity 33

Size/Duplication

Total Lines 211
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 33
eloc 51
dl 0
loc 211
rs 9.76
c 1
b 0
f 0

33 Methods

Rating   Name   Duplication   Size   Complexity  
A setProcessDefinitionId() 0 3 1
A getProcessInstanceId() 0 3 1
A getTaskId() 0 3 1
A setProcessInstanceId() 0 3 1
A getRootProcessInstanceId() 0 3 1
A getProcessDefinitionId() 0 3 1
A setAnnotation() 0 3 1
A setJobDefinitionId() 0 3 1
A getDeploymentId() 0 3 1
A setProcessDefinitionKey() 0 3 1
A getCategory() 0 3 1
A setCategory() 0 3 1
A getJobDefinitionId() 0 3 1
A getJobId() 0 3 1
A getExternalTaskId() 0 3 1
A getEntityType() 0 3 1
A setExecutionId() 0 3 1
A setEntityType() 0 3 1
A getAnnotation() 0 3 1
A __construct() 0 4 1
A getExecutionId() 0 3 1
A setTaskId() 0 3 1
A setExternalTaskId() 0 3 1
A getOperationType() 0 3 1
A getBatchId() 0 3 1
A setJobId() 0 3 1
A setRootProcessInstanceId() 0 3 1
A setDeploymentId() 0 3 1
A setBatchId() 0 3 1
A setPropertyChanges() 0 3 1
A getPropertyChanges() 0 3 1
A setOperationType() 0 3 1
A getProcessDefinitionKey() 0 3 1
1
<?php
2
3
namespace Jabe\Engine\Impl\OpLog;
4
5
class UserOperationLogContextEntry
6
{
7
    protected $deploymentId;
8
    protected $processDefinitionId;
9
    protected $processDefinitionKey;
10
    protected $processInstanceId;
11
    protected $executionId;
12
    //protected String caseDefinitionId;
13
    //protected String caseInstanceId;
14
    //protected String caseExecutionId;
15
    protected $taskId;
16
    protected $operationType;
17
    protected $entityType;
18
    protected $propertyChanges = [];
19
    protected $jobDefinitionId;
20
    protected $jobId;
21
    protected $batchId;
22
    protected $category;
23
    protected $rootProcessInstanceId;
24
    protected $externalTaskId;
25
    protected $annotation;
26
27
    public function __construct(string $operationType, string $entityType)
28
    {
29
        $this->operationType = $operationType;
30
        $this->entityType = $entityType;
31
    }
32
33
    public function getDeploymentId(): string
34
    {
35
        return $this->deploymentId;
36
    }
37
38
    public function setDeploymentId(string $deploymentId): void
39
    {
40
        $this->deploymentId = $deploymentId;
41
    }
42
43
    public function getProcessDefinitionId(): string
44
    {
45
        return $this->processDefinitionId;
46
    }
47
48
    public function setProcessDefinitionId(string $processDefinitionId): void
49
    {
50
        $this->processDefinitionId = $processDefinitionId;
51
    }
52
53
    public function getProcessInstanceId(): string
54
    {
55
        return $this->processInstanceId;
56
    }
57
58
    public function setProcessInstanceId(string $processInstanceId): void
59
    {
60
        $this->processInstanceId = $processInstanceId;
61
    }
62
63
    public function getExecutionId(): string
64
    {
65
        return $this->executionId;
66
    }
67
68
    public function setExecutionId(string $executionId): void
69
    {
70
        $this->executionId = $executionId;
71
    }
72
73
    /*public function getCaseDefinitionId(): string
74
    {
75
        return $this->caseDefinitionId;
76
    }
77
78
    public void setCaseDefinitionId(string $caseDefinitionId) {
79
        $this->caseDefinitionId = caseDefinitionId;
80
    }
81
82
    public String getCaseInstanceId() {
83
        return caseInstanceId;
84
    }
85
86
    public void setCaseInstanceId(string $caseInstanceId) {
87
        $this->caseInstanceId = caseInstanceId;
88
    }
89
90
    public String getCaseExecutionId() {
91
        return caseExecutionId;
92
    }
93
94
    public void setCaseExecutionId(string $caseExecutionId) {
95
        $this->caseExecutionId = caseExecutionId;
96
    }*/
97
98
    public function getTaskId(): string
99
    {
100
        return $this->taskId;
101
    }
102
103
    public function setTaskId(string $taskId): void
104
    {
105
        $this->taskId = $taskId;
106
    }
107
108
    public function getOperationType(): string
109
    {
110
        return $this->operationType;
111
    }
112
113
    public function setOperationType(string $operationType): void
114
    {
115
        $this->operationType = $operationType;
116
    }
117
118
    public function getEntityType(): string
119
    {
120
        return $this->entityType;
121
    }
122
123
    public function setEntityType(string $entityType): void
124
    {
125
        $this->entityType = $entityType;
126
    }
127
128
    public function getPropertyChanges(): array
129
    {
130
        return $this->propertyChanges;
131
    }
132
133
    public function setPropertyChanges(array $propertyChanges): void
134
    {
135
        $this->propertyChanges = $propertyChanges;
136
    }
137
138
    public function getProcessDefinitionKey(): string
139
    {
140
        return $this->processDefinitionKey;
141
    }
142
143
    public function setProcessDefinitionKey(string $processDefinitionKey): void
144
    {
145
        $this->processDefinitionKey = $processDefinitionKey;
146
    }
147
148
    public function getJobDefinitionId(): string
149
    {
150
        return $this->jobDefinitionId;
151
    }
152
153
    public function setJobDefinitionId(string $jobDefinitionId): void
154
    {
155
        $this->jobDefinitionId = $jobDefinitionId;
156
    }
157
158
    public function getJobId(): string
159
    {
160
        return $this->jobId;
161
    }
162
163
    public function setJobId(string $jobId): void
164
    {
165
        $this->jobId = $jobId;
166
    }
167
168
    public function getBatchId(): string
169
    {
170
        return $this->batchId;
171
    }
172
173
    public function setBatchId(string $batchId): void
174
    {
175
        $this->batchId = $batchId;
176
    }
177
178
    public function getCategory(): string
179
    {
180
        return $this->category;
181
    }
182
183
    public function setCategory(string $category): void
184
    {
185
        $this->category = $category;
186
    }
187
188
    public function getRootProcessInstanceId(): string
189
    {
190
        return $this->rootProcessInstanceId;
191
    }
192
193
    public function setRootProcessInstanceId(string $rootProcessInstanceId): void
194
    {
195
        $this->rootProcessInstanceId = $rootProcessInstanceId;
196
    }
197
198
    public function getExternalTaskId(): string
199
    {
200
        return $this->externalTaskId;
201
    }
202
203
    public function setExternalTaskId(string $externalTaskId): void
204
    {
205
        $this->externalTaskId = $externalTaskId;
206
    }
207
208
    public function getAnnotation(): string
209
    {
210
        return $this->annotation;
211
    }
212
213
    public function setAnnotation(string $annotation): void
214
    {
215
        $this->annotation = $annotation;
216
    }
217
}
218