Passed
Push — typo3v9 ( 2404ee...b9b5fa )
by Tomas Norre
05:51
created

Queue::getExecTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

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