Completed
Push — typo3v9 ( 6762b6...ea38b1 )
by Tomas Norre
05:52
created

Queue::setConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 4
cp 0.75
crap 1.0156
rs 10
c 0
b 0
f 0
1
<?php
2
namespace AOE\Crawler\Domain\Model;
3
4
/***************************************************************
5
 *  Copyright notice
6
 *
7
 *  (c) 2019 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
     * @return int
107
     */
108 1
    public function getQid()
109
    {
110 1
        return $this->qid;
111
    }
112
113
    /**
114
     * @param int $qid
115
     */
116 1
    public function setQid($qid)
117
    {
118 1
        $this->qid = $qid;
119 1
    }
120
121
    /**
122
     * @return int
123
     */
124 1
    public function getPageId()
125
    {
126 1
        return $this->pageId;
127
    }
128
129
    /**
130
     * @param int $pageId
131
     */
132 1
    public function setPageId($pageId)
133
    {
134 1
        $this->pageId = $pageId;
135 1
    }
136
137
    /**
138
     * @return string
139
     */
140 1
    public function getParameters()
141
    {
142 1
        return $this->parameters;
143
    }
144
145
    /**
146
     * @param string $parameters
147
     */
148 1
    public function setParameters($parameters)
149
    {
150 1
        $this->parameters = $parameters;
151 1
    }
152
153
    /**
154
     * @return string
155
     */
156 1
    public function getParametersHash()
157
    {
158 1
        return $this->parametersHash;
159
    }
160
161
    /**
162
     * @param string $parametersHash
163
     */
164 1
    public function setParametersHash($parametersHash)
165
    {
166 1
        $this->parametersHash = $parametersHash;
167 1
    }
168
169
    /**
170
     * @return string
171
     */
172 1
    public function getConfigurationHash()
173
    {
174 1
        return $this->configurationHash;
175
    }
176
177
    /**
178
     * @param string $configurationHash
179
     */
180 1
    public function setConfigurationHash($configurationHash)
181
    {
182 1
        $this->configurationHash = $configurationHash;
183 1
    }
184
185
    /**
186
     * @return bool
187
     */
188 1
    public function isScheduled()
189
    {
190 1
        return $this->scheduled;
191
    }
192
193
    /**
194
     * @param bool $scheduled
195
     */
196 1
    public function setScheduled($scheduled)
197
    {
198 1
        $this->scheduled = $scheduled;
199 1
    }
200
201
    /**
202
     * @return int
203
     */
204 1
    public function getExecTime()
205
    {
206 1
        return $this->execTime;
207
    }
208
209
    /**
210
     * @param int $execTime
211
     */
212 1
    public function setExecTime($execTime)
213
    {
214 1
        $this->execTime = $execTime;
215 1
    }
216
217
    /**
218
     * @return int
219
     */
220 1
    public function getSetId()
221
    {
222 1
        return $this->setId;
223
    }
224
225
    /**
226
     * @param int $setId
227
     */
228 1
    public function setSetId($setId)
229
    {
230 1
        $this->setId = $setId;
231 1
    }
232
233
    /**
234
     * @return string
235
     */
236 1
    public function getResultData()
237
    {
238 1
        return $this->resultData;
239
    }
240
241
    /**
242
     * @param string $resultData
243
     */
244 1
    public function setResultData($resultData)
245
    {
246 1
        $this->resultData = $resultData;
247 1
    }
248
249
    /**
250
     * @return bool
251
     */
252 1
    public function isProcessScheduled()
253
    {
254 1
        return $this->processScheduled;
255
    }
256
257
    /**
258
     * @param bool $processScheduled
259
     */
260 1
    public function setProcessScheduled($processScheduled)
261
    {
262 1
        $this->processScheduled = $processScheduled;
263 1
    }
264
265
    /**
266
     * @return string
267
     */
268 1
    public function getProcessId()
269
    {
270 1
        return $this->processId;
271
    }
272
273
    /**
274
     * @param string $processId
275
     */
276 1
    public function setProcessId($processId)
277
    {
278 1
        $this->processId = $processId;
279 1
    }
280
281
    /**
282
     * @return string
283
     */
284 1
    public function getProcessIdCompleted()
285
    {
286 1
        return $this->processIdCompleted;
287
    }
288
289
    /**
290
     * @param string $processIdCompleted
291
     */
292 1
    public function setProcessIdCompleted($processIdCompleted)
293
    {
294 1
        $this->processIdCompleted = $processIdCompleted;
295 1
    }
296
297
    /**
298
     * @return string
299
     */
300 1
    public function getConfiguration()
301
    {
302 1
        return $this->configuration;
303
    }
304
305
    /**
306
     * @param string $configuration
307
     */
308 1
    public function setConfiguration($configuration)
309
    {
310 1
        $this->configuration = $configuration;
311 1
    }
312
}
313