Test Failed
Push — main ( c76fcf...a2096a )
by Bingo
14:02
created

HistoricIdentityLinkLogQueryImpl   A

Complexity

Total Complexity 36

Size/Duplication

Total Lines 234
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 36
eloc 90
c 1
b 0
f 1
dl 0
loc 234
rs 9.52

36 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A orderByTaskId() 0 4 1
A executeCount() 0 6 1
A operationType() 0 5 1
A orderByGroupId() 0 4 1
A getDateAfter() 0 3 1
A orderByTime() 0 4 1
A taskId() 0 5 1
A getProcessDefinitionId() 0 3 1
A orderByProcessDefinitionKey() 0 4 1
A groupId() 0 5 1
A orderByType() 0 4 1
A withoutTenantId() 0 5 1
A getOperationType() 0 3 1
A userId() 0 5 1
A getType() 0 3 1
A getProcessDefinitionKey() 0 3 1
A processDefinitionId() 0 5 1
A tenantIdIn() 0 6 1
A orderByProcessDefinitionId() 0 4 1
A getDateBefore() 0 3 1
A type() 0 5 1
A orderByTenantId() 0 4 1
A dateBefore() 0 5 1
A isTenantIdSet() 0 3 1
A orderByUserId() 0 4 1
A getGroupId() 0 3 1
A processDefinitionKey() 0 5 1
A assignerId() 0 5 1
A getUserId() 0 3 1
A getAssignerId() 0 3 1
A executeList() 0 6 1
A orderByOperationType() 0 4 1
A orderByAssignerId() 0 4 1
A dateAfter() 0 5 1
A getTaskId() 0 3 1
1
<?php
2
3
namespace Jabe\Engine\Impl;
4
5
use Jabe\Engine\History\HistoricIdentityLinkLogQueryInterface;
6
use Jabe\Engine\Impl\Interceptor\{
7
    CommandContext,
8
    CommandExecutorInterface
9
};
10
use Jabe\Engine\Impl\Util\EnsureUtil;
0 ignored issues
show
Bug introduced by
The type Jabe\Engine\Impl\Util\EnsureUtil was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
class HistoricIdentityLinkLogQueryImpl extends AbstractVariableQueryImpl implements HistoricIdentityLinkLogQueryInterface
13
{
14
    protected $dateBefore;
15
    protected $dateAfter;
16
    protected $type;
17
    protected $userId;
18
    protected $groupId;
19
    protected $taskId;
20
    protected $processDefinitionId;
21
    protected $processDefinitionKey;
22
    protected $operationType;
23
    protected $assignerId;
24
    protected $tenantIds = [];
25
    protected $isTenantIdSet;
26
27
    public function __construct(CommandExecutorInterface $commandExecutor)
28
    {
29
        parent::__construct($commandExecutor);
30
    }
31
32
    public function getType(): string
33
    {
34
        return $this->type;
35
    }
36
37
    public function getUserId(): string
38
    {
39
        return $this->userId;
40
    }
41
42
    public function getGroupId(): string
43
    {
44
        return $this->groupId;
45
    }
46
47
    public function getTaskId(): string
48
    {
49
        return $this->taskId;
50
    }
51
52
    public function getProcessDefinitionId(): string
53
    {
54
        return $this->processDefinitionId;
55
    }
56
57
    public function getProcessDefinitionKey(): string
58
    {
59
        return $this->processDefinitionKey;
60
    }
61
62
    public function getOperationType(): string
63
    {
64
        return $this->operationType;
65
    }
66
67
    public function getAssignerId(): string
68
    {
69
        return $this->assignerId;
70
    }
71
72
    public function isTenantIdSet(): bool
73
    {
74
        return $this->isTenantIdSet;
75
    }
76
77
    public function tenantIdIn(array $tenantIds): HistoricIdentityLinkLogQuery
78
    {
79
        EnsureUtil::ensureNotNull("tenantIds", "tenantIds", $tenantIds);
80
        $this->tenantIds = $tenantIds;
81
        $this->isTenantIdSet = true;
82
        return $this;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this returns the type Jabe\Engine\Impl\HistoricIdentityLinkLogQueryImpl which is incompatible with the type-hinted return Jabe\Engine\Impl\HistoricIdentityLinkLogQuery.
Loading history...
83
    }
84
85
    public function withoutTenantId(): HistoricIdentityLinkLogQueryInterface
86
    {
87
        $this->tenantIds = null;
88
        $this->isTenantIdSet = true;
89
        return $this;
90
    }
91
92
    public function getDateBefore(): string
93
    {
94
        return $this->dateBefore;
95
    }
96
97
    public function getDateAfter(): string
98
    {
99
        return $this->dateAfter;
100
    }
101
102
    public function type(string $type): HistoricIdentityLinkLogQueryInterface
103
    {
104
        EnsureUtil::ensureNotNull("type", "type", $type);
105
        $this->type = $type;
106
        return $this;
107
    }
108
109
    public function dateBefore(string $dateBefore): HistoricIdentityLinkLogQueryInterface
110
    {
111
        EnsureUtil::ensureNotNull("dateBefore", "dateBefore", $dateBefore);
112
        $this->dateBefore = $dateBefore;
113
        return $this;
114
    }
115
116
    public function dateAfter(string $dateAfter): HistoricIdentityLinkLogQueryInterface
117
    {
118
        EnsureUtil::ensureNotNull("dateAfter", "dateAfter", $dateAfter);
119
        $this->dateAfter = $dateAfter;
120
        return $this;
121
    }
122
123
    public function userId(string $userId): HistoricIdentityLinkLogQueryInterface
124
    {
125
        EnsureUtil::ensureNotNull("userId", "userId", $userId);
126
        $this->userId = $userId;
127
        return $this;
128
    }
129
130
    public function groupId(string $groupId): HistoricIdentityLinkLogQueryInterface
131
    {
132
        EnsureUtil::ensureNotNull("groupId", "groupId", $groupId);
133
        $this->groupId = $groupId;
134
        return $this;
135
    }
136
137
    public function taskId(string $taskId): HistoricIdentityLinkLogQueryInterface
138
    {
139
        EnsureUtil::ensureNotNull("taskId", "taskId", $taskId);
140
        $this->taskId = $taskId;
141
        return $this;
142
    }
143
144
    public function processDefinitionId(string $processDefinitionId): HistoricIdentityLinkLogQueryInterface
145
    {
146
        EnsureUtil::ensureNotNull("processDefinitionId", "processDefinitionId", $processDefinitionId);
147
        $this->processDefinitionId = $processDefinitionId;
148
        return $this;
149
    }
150
151
    public function processDefinitionKey(string $processDefinitionKey): HistoricIdentityLinkLogQueryInterface
152
    {
153
        EnsureUtil::ensureNotNull("processDefinitionKey", "processDefinitionKey", $processDefinitionKey);
154
        $this->processDefinitionKey = $processDefinitionKey;
155
        return $this;
156
    }
157
158
    public function operationType(string $operationType): HistoricIdentityLinkLogQueryInterface
159
    {
160
        EnsureUtil::ensureNotNull("operationType", "operationType", $operationType);
161
        $this->operationType = $operationType;
162
        return $this;
163
    }
164
165
    public function assignerId(string $assignerId): HistoricIdentityLinkLogQueryInterface
166
    {
167
        EnsureUtil::ensureNotNull("assignerId", "assignerId", $assignerId);
168
        $this->assignerId = $assignerId;
169
        return $this;
170
    }
171
172
    public function orderByTime(): HistoricIdentityLinkLogQueryInterface
173
    {
174
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::time());
175
        return $this;
176
    }
177
178
    public function orderByType(): HistoricIdentityLinkLogQueryInterface
179
    {
180
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::type());
181
        return $this;
182
    }
183
184
    public function orderByUserId(): HistoricIdentityLinkLogQueryInterface
185
    {
186
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::userId());
187
        return $this;
188
    }
189
190
    public function orderByGroupId(): HistoricIdentityLinkLogQueryInterface
191
    {
192
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::groupId());
193
        return $this;
194
    }
195
196
    public function orderByTaskId(): HistoricIdentityLinkLogQueryInterface
197
    {
198
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::taskId());
199
        return $this;
200
    }
201
202
    public function orderByProcessDefinitionId(): HistoricIdentityLinkLogQueryInterface
203
    {
204
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::processDefinitionId());
205
        return $this;
206
    }
207
208
    public function orderByProcessDefinitionKey(): HistoricIdentityLinkLogQueryInterface
209
    {
210
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::processDefinitionKey());
211
        return $this;
212
    }
213
214
    public function orderByOperationType(): HistoricIdentityLinkLogQueryInterface
215
    {
216
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::operationType());
217
        return $this;
218
    }
219
220
    public function orderByAssignerId(): HistoricIdentityLinkLogQueryInterface
221
    {
222
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::assignerId());
223
        return $this;
224
    }
225
226
    public function orderByTenantId(): HistoricIdentityLinkLogQueryInterface
227
    {
228
        $this->orderBy(HistoricIdentityLinkLogQueryProperty::tenantId());
229
        return $this;
230
    }
231
232
    public function executeCount(CommandContext $commandContext): int
233
    {
234
        $this->checkQueryOk();
235
        return $commandContext
236
        ->getHistoricIdentityLinkManager()
237
        ->findHistoricIdentityLinkLogCountByQueryCriteria($this);
238
    }
239
240
    public function executeList(CommandContext $commandContext, Page $page): array
0 ignored issues
show
Bug introduced by
The type Jabe\Engine\Impl\Page was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
241
    {
242
        $this->checkQueryOk();
243
        return $commandContext
244
        ->getHistoricIdentityLinkManager()
245
        ->findHistoricIdentityLinkLogByQueryCriteria($this, $page);
246
    }
247
}
248