Completed
Push — issue/473 ( 4d9f89...4df17b )
by Tomas Norre
05:03
created

Queue   A

Complexity

Total Complexity 28

Size/Duplication

Total Lines 299
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 97.14%

Importance

Changes 0
Metric Value
dl 0
loc 299
ccs 68
cts 70
cp 0.9714
rs 10
c 0
b 0
f 0
wmc 28
lcom 0
cbo 1

28 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getQid() 0 4 1
A setQid() 0 4 1
A getPageId() 0 4 1
A setPageId() 0 4 1
A getParameters() 0 4 1
A setParameters() 0 4 1
A getParametersHash() 0 4 1
A setParametersHash() 0 4 1
A getConfigurationHash() 0 4 1
A setConfigurationHash() 0 4 1
A isScheduled() 0 4 1
A setScheduled() 0 4 1
A getExecTime() 0 4 1
A setExecTime() 0 4 1
A getSetId() 0 4 1
A setSetId() 0 4 1
A getResultData() 0 4 1
A setResultData() 0 4 1
A isProcessScheduled() 0 4 1
A setProcessScheduled() 0 4 1
A getProcessId() 0 4 1
A setProcessId() 0 4 1
A getProcessIdCompleted() 0 4 1
A setProcessIdCompleted() 0 4 1
A getConfiguration() 0 4 1
A setConfiguration() 0 4 1
A getRow() 0 4 1
1
<?php
2
namespace AOE\Crawler\Domain\Model;
3
4
/***************************************************************
5
 *  Copyright notice
6
 *
7
 *  (c) 2017 AOE GmbH <[email protected]>
8
 *
9
 *  All rights reserved
10
 *
11
 *  This script is part of the TYPO3 project. The TYPO3 project is
12
 *  free software; you can redistribute it and/or modify
13
 *  it under the terms of the GNU General Public License as published by
14
 *  the Free Software Foundation; either version 3 of the License, or
15
 *  (at your option) any later version.
16
 *
17
 *  The GNU General Public License can be found at
18
 *  http://www.gnu.org/copyleft/gpl.html.
19
 *
20
 *  This script is distributed in the hope that it will be useful,
21
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 *  GNU General Public License for more details.
24
 *
25
 *  This copyright notice MUST APPEAR in all copies of the script!
26
 ***************************************************************/
27
28
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
29
30
/**
31
 * Class Queue
32
 */
33
class Queue extends AbstractEntity
34
{
35
    /**
36
     * @var array
37
     */
38
    protected $row;
39
40
    /**
41
     * @var int
42
     */
43
    protected $qid = 0;
44
45
    /**
46
     * @var int
47
     */
48
    protected $pageId = 0;
49
50
    /**
51
     * @var string
52
     */
53
    protected $parameters = '';
54
55
    /**
56
     * @var string
57
     */
58
    protected $parametersHash = '';
59
60
    /**
61
     * @var string
62
     */
63
    protected $configurationHash = '';
64
65
    /**
66
     * @var bool
67
     */
68
    protected $scheduled = false;
69
70
    /**
71
     * @var int
72
     */
73
    protected $execTime = 0;
74
75
    /**
76
     * @var int
77
     */
78
    protected $setId = 0;
79
80
    /**
81
     * @var string
82
     */
83
    protected $resultData = '';
84
85
    /**
86
     * @var bool
87
     */
88
    protected $processScheduled = false;
89
90
    /**
91
     * @var string
92
     */
93
    protected $processId = '';
94
95
    /**
96
     * @var string
97
     */
98
    protected $processIdCompleted = '';
99
100
    /**
101
     * @var string
102
     */
103
    protected $configuration = '';
104
105
    /**
106
     * @param array $row
107
     */
108 8
    public function __construct($row = [])
109
    {
110 8
        $this->row = $row;
111 8
    }
112
113
    /**
114
     * Returns the properties of the object as array
115
     *
116
     * @return array
117
     * @deprecated since crawler v6.2.2, will be removed in crawler v7.0.0.
118
     */
119
    public function getRow()
120
    {
121
        return $this->row;
122
    }
123
124
    /**
125
     * @return int
126
     */
127 6
    public function getQid()
128
    {
129 6
        return $this->qid;
130
    }
131
132
    /**
133
     * @param int $qid
134
     */
135 6
    public function setQid($qid)
136
    {
137 6
        $this->qid = $qid;
138 6
    }
139
140
    /**
141
     * @return int
142
     */
143 1
    public function getPageId()
144
    {
145 1
        return $this->pageId;
146
    }
147
148
    /**
149
     * @param int $pageId
150
     */
151 6
    public function setPageId($pageId)
152
    {
153 6
        $this->pageId = $pageId;
154 6
    }
155
156
    /**
157
     * @return string
158
     */
159 1
    public function getParameters()
160
    {
161 1
        return $this->parameters;
162
    }
163
164
    /**
165
     * @param string $parameters
166
     */
167 6
    public function setParameters($parameters)
168
    {
169 6
        $this->parameters = $parameters;
170 6
    }
171
172
    /**
173
     * @return string
174
     */
175 1
    public function getParametersHash()
176
    {
177 1
        return $this->parametersHash;
178
    }
179
180
    /**
181
     * @param string $parametersHash
182
     */
183 6
    public function setParametersHash($parametersHash)
184
    {
185 6
        $this->parametersHash = $parametersHash;
186 6
    }
187
188
    /**
189
     * @return string
190
     */
191 1
    public function getConfigurationHash()
192
    {
193 1
        return $this->configurationHash;
194
    }
195
196
    /**
197
     * @param string $configurationHash
198
     */
199 6
    public function setConfigurationHash($configurationHash)
200
    {
201 6
        $this->configurationHash = $configurationHash;
202 6
    }
203
204
    /**
205
     * @return bool
206
     */
207 1
    public function isScheduled()
208
    {
209 1
        return $this->scheduled;
210
    }
211
212
    /**
213
     * @param bool $scheduled
214
     */
215 6
    public function setScheduled($scheduled)
216
    {
217 6
        $this->scheduled = $scheduled;
218 6
    }
219
220
    /**
221
     * @return int
222
     */
223 3
    public function getExecTime()
224
    {
225 3
        return $this->execTime;
226
    }
227
228
    /**
229
     * @param int $execTime
230
     */
231 8
    public function setExecTime($execTime)
232
    {
233 8
        $this->execTime = $execTime;
234 8
    }
235
236
    /**
237
     * @return int
238
     */
239 1
    public function getSetId()
240
    {
241 1
        return $this->setId;
242
    }
243
244
    /**
245
     * @param int $setId
246
     */
247 6
    public function setSetId($setId)
248
    {
249 6
        $this->setId = $setId;
250 6
    }
251
252
    /**
253
     * @return string
254
     */
255 1
    public function getResultData()
256
    {
257 1
        return $this->resultData;
258
    }
259
260
    /**
261
     * @param string $resultData
262
     */
263 6
    public function setResultData($resultData)
264
    {
265 6
        $this->resultData = $resultData;
266 6
    }
267
268
    /**
269
     * @return bool
270
     */
271 1
    public function isProcessScheduled()
272
    {
273 1
        return $this->processScheduled;
274
    }
275
276
    /**
277
     * @param bool $processScheduled
278
     */
279 6
    public function setProcessScheduled($processScheduled)
280
    {
281 6
        $this->processScheduled = $processScheduled;
282 6
    }
283
284
    /**
285
     * @return string
286
     */
287 3
    public function getProcessId()
288
    {
289 3
        return $this->processId;
290
    }
291
292
    /**
293
     * @param string $processId
294
     */
295 6
    public function setProcessId($processId)
296
    {
297 6
        $this->processId = $processId;
298 6
    }
299
300
    /**
301
     * @return string
302
     */
303 1
    public function getProcessIdCompleted()
304
    {
305 1
        return $this->processIdCompleted;
306
    }
307
308
    /**
309
     * @param string $processIdCompleted
310
     */
311 6
    public function setProcessIdCompleted($processIdCompleted)
312
    {
313 6
        $this->processIdCompleted = $processIdCompleted;
314 6
    }
315
316
    /**
317
     * @return string
318
     */
319 6
    public function getConfiguration()
320
    {
321 6
        return $this->configuration;
322
    }
323
324
    /**
325
     * @param string $configuration
326
     */
327 6
    public function setConfiguration($configuration)
328
    {
329 6
        $this->configuration = $configuration;
330 6
    }
331
}
332