Completed
Push — issue/336 ( 6fb6b4...518511 )
by Tomas Norre
05:49
created

Configuration::setForceSsl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace AOE\Crawler\Domain\Model;
3
4
/***************************************************************
5
 *  Copyright notice
6
 *
7
 *  (c) 2018 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 Configuration
32
 */
33
class Configuration extends AbstractEntity
34
{
35
36
    /**
37
     * @var string
38
     */
39
    protected $name = '';
40
41
    /**
42
     * @var bool
43
     */
44
    protected $forceSsl = true;
45
46
    /**
47
     * @var string
48
     */
49
    protected $processingInstructionFilter = '';
50
51
    /**
52
     * @var string
53
     */
54
    protected $proceessingInstructionParameters = '';
55
56
    /**
57
     * @var string
58
     */
59
    protected $configuration = '';
60
61
    /**
62
     * @var string
63
     */
64
    protected $baseUrl = '';
65
66
    /**
67
     * @var string
68
     */
69
    protected $sysDomainBaseUrl = '';
70
71
    /**
72
     * $var string
73
     */
74
    protected $pidsOnly = '';
75
76
    /**
77
     * @var string
78
     */
79
    protected $beGroups = '';
80
81
    /**
82
     * @var string
83
     */
84
    protected $feGroups = '';
85
86
    /**
87
     * @var int
88
     */
89
    protected $realUrl = 0;
90
91
    /**
92
     * @var int
93
     */
94
    protected $cHash = 0;
95
96
    /**
97
     * @var string
98
     */
99
    protected $excludeText = '';
100
101
    /**
102
     * @var int
103
     */
104
    protected $rootTemplatePid = 0;
105
106
    /**
107
     * @return string
108
     */
109 3
    public function getName()
110
    {
111 3
        return $this->name;
112
    }
113
114
    /**
115
     * @param string $name
116
     */
117 1
    public function setName($name)
118
    {
119 1
        $this->name = $name;
120 1
    }
121
122
    /**
123
     * @return bool
124
     */
125 2
    public function isForceSsl()
126
    {
127 2
        return $this->forceSsl;
128
    }
129
130
    /**
131
     * @param bool $forceSsl
132
     */
133 1
    public function setForceSsl($forceSsl)
134
    {
135 1
        $this->forceSsl = $forceSsl;
136 1
    }
137
138
    /**
139
     * @return string
140
     */
141 2
    public function getProcessingInstructionFilter()
142
    {
143 2
        return $this->processingInstructionFilter;
144
    }
145
146
    /**
147
     * @param string $processingInstructionFilter
148
     */
149 1
    public function setProcessingInstructionFilter($processingInstructionFilter)
150
    {
151 1
        $this->processingInstructionFilter = $processingInstructionFilter;
152 1
    }
153
154
    /**
155
     * @return string
156
     */
157 1
    public function getProceessingInstructionParameters()
158
    {
159 1
        return $this->proceessingInstructionParameters;
160
    }
161
162
    /**
163
     * @param string $proceessingInstructionParameters
164
     */
165 1
    public function setProceessingInstructionParameters($proceessingInstructionParameters)
166
    {
167 1
        $this->proceessingInstructionParameters = $proceessingInstructionParameters;
168 1
    }
169
170
    /**
171
     * @return string
172
     */
173 2
    public function getConfiguration()
174
    {
175 2
        return $this->configuration;
176
    }
177
178
    /**
179
     * @param string $configuration
180
     */
181 1
    public function setConfiguration($configuration)
182
    {
183 1
        $this->configuration = $configuration;
184 1
    }
185
186
    /**
187
     * @return string
188
     */
189 2
    public function getBaseUrl()
190
    {
191 2
        return $this->baseUrl;
192
    }
193
194
    /**
195
     * @param string $baseUrl
196
     */
197 1
    public function setBaseUrl($baseUrl)
198
    {
199 1
        $this->baseUrl = $baseUrl;
200 1
    }
201
202
    /**
203
     * @return string
204
     */
205 2
    public function getSysDomainBaseUrl()
206
    {
207 2
        return $this->sysDomainBaseUrl;
208
    }
209
210
    /**
211
     * @param string $sysDomainBaseUrl
212
     */
213 1
    public function setSysDomainBaseUrl($sysDomainBaseUrl)
214
    {
215 1
        $this->sysDomainBaseUrl = $sysDomainBaseUrl;
216 1
    }
217
218
    /**
219
     * @return mixed
220
     */
221 2
    public function getPidsOnly()
222
    {
223 2
        return $this->pidsOnly;
224
    }
225
226
    /**
227
     * @param mixed $pidsOnly
228
     */
229 1
    public function setPidsOnly($pidsOnly)
230
    {
231 1
        $this->pidsOnly = $pidsOnly;
232 1
    }
233
234
    /**
235
     * @return string
236
     */
237 2
    public function getBeGroups()
238
    {
239 2
        return $this->beGroups;
240
    }
241
242
    /**
243
     * @param string $beGroups
244
     */
245 1
    public function setBeGroups($beGroups)
246
    {
247 1
        $this->beGroups = $beGroups;
248 1
    }
249
250
    /**
251
     * @return string
252
     */
253 2
    public function getFeGroups()
254
    {
255 2
        return $this->feGroups;
256
    }
257
258
    /**
259
     * @param string $feGroups
260
     */
261 1
    public function setFeGroups($feGroups)
262
    {
263 1
        $this->feGroups = $feGroups;
264 1
    }
265
266
    /**
267
     * @return int
268
     */
269 2
    public function getRealUrl()
270
    {
271 2
        return $this->realUrl;
272
    }
273
274
    /**
275
     * @param int $realUrl
276
     */
277 1
    public function setRealUrl($realUrl)
278
    {
279 1
        $this->realUrl = $realUrl;
280 1
    }
281
282
    /**
283
     * @return int
284
     */
285 2
    public function getCHash()
286
    {
287 2
        return $this->cHash;
288
    }
289
290
    /**
291
     * @param int $cHash
292
     */
293 1
    public function setCHash($cHash)
294
    {
295 1
        $this->cHash = $cHash;
296 1
    }
297
298
    /**
299
     * @return string
300
     */
301 2
    public function getExcludeText()
302
    {
303 2
        return $this->excludeText;
304
    }
305
306
    /**
307
     * @param string $excludeText
308
     */
309 1
    public function setExcludeText($excludeText)
310
    {
311 1
        $this->excludeText = $excludeText;
312 1
    }
313
314
    /**
315
     * @return int
316
     */
317 2
    public function getRootTemplatePid()
318
    {
319 2
        return $this->rootTemplatePid;
320
    }
321
322
    /**
323
     * @param int $rootTemplatePid
324
     */
325 1
    public function setRootTemplatePid($rootTemplatePid)
326
    {
327 1
        $this->rootTemplatePid = $rootTemplatePid;
328
    }
329
}