Passed
Pull Request — master (#90)
by
unknown
02:11
created

MetadataObject::setGndFieldUid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace EWW\Dpf\Domain\Model;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * MetadataObject
19
 */
20
class MetadataObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
0 ignored issues
show
Bug introduced by
The type TYPO3\CMS\Extbase\DomainObject\AbstractEntity 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...
21
{
22
23
    /**
24
     * name
25
     *
26
     * @var string
27
     */
28
    protected $name = '';
29
30
    /**
31
     * displayName
32
     *
33
     * @var string
34
     */
35
    protected $displayName = '';
36
37
    /**
38
     * maxIteration
39
     *
40
     * @var integer
41
     */
42
    protected $maxIteration = 0;
43
44
    /**
45
     * mandatory
46
     *
47
     * @var boolean
48
     */
49
    protected $mandatory = false;
50
51
    /**
52
     * mapping
53
     *
54
     * @var string
55
     */
56
    protected $mapping = '';
57
58
    /**
59
     * inputField
60
     *
61
     * @var integer
62
     */
63
    protected $inputField = 0;
64
65
66
    const input    = 0;
67
    const textarea = 1;
68
    const select   = 2;
69
    const checkbox = 3;
70
    const hidden   = 4;
71
72
    const INPUT_DATA_TYPE_REGEXP = "REGEXP";
73
    const INPUT_DATA_TYPE_DATE   = "DATE";
74
75
    /**
76
     * dataType
77
     *
78
     * @var string
79
     */
80
    protected $dataType;
81
82
    /**
83
     * modsExtension
84
     *
85
     * @var boolean
86
     */
87
    protected $modsExtension = false;
88
89
    /**
90
     * inputOptionList
91
     *
92
     * @var \EWW\Dpf\Domain\Model\InputOptionList
93
     */
94
    protected $inputOptionList = null;
95
96
    /**
97
     * fillOutService
98
     *
99
     * @var string
100
     */
101
    protected $fillOutService = '';
102
103
    const FILL_OUT_SERVICE_URN = 'urn';
104
    const FILL_OUT_SERVICE_GND = 'gnd';
105
106
    /**
107
     * @var string
108
     */
109
    protected $gndFieldUid = '';
110
111
    /**
112
     * backendOnly
113
     *
114
     * @var boolean
115
     */
116
    protected $backendOnly = false;
117
118
    /**
119
     * consent
120
     *
121
     * @var boolean
122
     */
123
    protected $consent;
124
125
    /**
126
     * defaultValue
127
     *
128
     * @var string
129
     */
130
    protected $defaultValue;
131
132
    /**
133
     * validation
134
     *
135
     * @var string
136
     */
137
    protected $validation = '';
138
139
    /**
140
     * Returns the name
141
     *
142
     * @return string $name
143
     */
144
    public function getName()
145
    {
146
        return $this->name;
147
    }
148
149
    /**
150
     * Sets the name
151
     *
152
     * @param string $name
153
     * @return void
154
     */
155
    public function setName($name)
156
    {
157
        $this->name = $name;
158
    }
159
160
    /**
161
     * Returns the displayName
162
     *
163
     * @return string $displayName
164
     */
165
    public function getDisplayName()
166
    {
167
        return $this->displayName;
168
    }
169
170
    /**
171
     * Sets the displayName
172
     *
173
     * @param string $displayName
174
     * @return void
175
     */
176
    public function setDisplayName($displayName)
177
    {
178
        $this->displayName = $displayName;
179
    }
180
181
    /**
182
     * Returns the maxIteration
183
     *
184
     * @return integer $maxIteration
185
     */
186
    public function getMaxIteration()
187
    {
188
        return $this->maxIteration;
189
    }
190
191
    /**
192
     * Sets the maxIteration
193
     *
194
     * @param integer $maxIteration
195
     * @return void
196
     */
197
    public function setMaxIteration($maxIteration)
198
    {
199
        $this->maxIteration = $maxIteration;
200
    }
201
202
    /**
203
     * Returns the mandatory
204
     *
205
     * @return boolean $mandatory
206
     */
207
    public function getMandatory()
208
    {
209
        return $this->mandatory;
210
    }
211
212
    /**
213
     * Sets the mandatory
214
     *
215
     * @param boolean $mandatory
216
     * @return void
217
     */
218
    public function setMandatory($mandatory)
219
    {
220
        $this->mandatory = $mandatory;
221
    }
222
223
    /**
224
     * Returns the boolean state of mandatory
225
     *
226
     * @return boolean
227
     */
228
    public function isMandatory()
229
    {
230
        return $this->mandatory;
231
    }
232
233
    /**
234
     * Returns the modsExtension
235
     *
236
     * @return boolean $modsExtension
237
     */
238
    public function getModsExtension()
239
    {
240
        return $this->modsExtension;
241
    }
242
243
    /**
244
     * Sets the modsExtension
245
     *
246
     * @param boolean $modsExtension
247
     * @return void
248
     */
249
    public function setModsExtension($modsExtension)
250
    {
251
        $this->modsExtension = $modsExtension;
252
    }
253
254
    /**
255
     * Returns the boolean state of modsExtension
256
     *
257
     * @return boolean
258
     */
259
    public function isModsExtension()
260
    {
261
        return $this->modsExtension;
262
    }
263
264
    /**
265
     * Returns the mapping
266
     *
267
     * @return string $mapping
268
     */
269
    public function getMapping()
270
    {
271
        return $this->mapping;
272
    }
273
274
    /**
275
     * Sets the mapping
276
     *
277
     * @param string $mapping
278
     * @return void
279
     */
280
    public function setMapping($mapping)
281
    {
282
        $this->mapping = $mapping;
283
    }
284
285
    /**
286
     * Returns the relative mapping
287
     *
288
     * @return string $relativeMapping
289
     */
290
    public function getRelativeMapping()
291
    {
292
        $modsRegExp = "/^.*?mods:mods/i";
293
        $mapping    = preg_replace($modsRegExp, "", $this->mapping);
294
        return trim($mapping, " /");
295
    }
296
297
    /**
298
     * Returns the inputField
299
     *
300
     * @return integer $inputField
301
     */
302
    public function getInputField()
303
    {
304
        return $this->inputField;
305
    }
306
307
    /**
308
     * Sets the inputField
309
     *
310
     * @param integer $inputField
311
     * @return void
312
     */
313
    public function setInputField($inputField)
314
    {
315
        $this->inputField = $inputField;
316
    }
317
318
    /**
319
     * Returns always NULL because an Object never has children.
320
     *
321
     * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\MetadataObject> $metadataObject
0 ignored issues
show
Bug introduced by
The type TYPO3\CMS\Extbase\Persistence\ObjectStorage 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...
322
     */
323
    public function getChildren()
324
    {
325
        return null;
326
    }
327
328
    /**
329
     * Returns the inputOptionList
330
     *
331
     * @return \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
332
     */
333
    public function getInputOptionList()
334
    {
335
        return $this->inputOptionList;
336
    }
337
338
    /**
339
     * Sets the inputOptionList
340
     *
341
     * @param \EWW\Dpf\Domain\Model\InputOptionList $inputOptionList
342
     * @return void
343
     */
344
    public function setInputOptionList(\EWW\Dpf\Domain\Model\InputOptionList $inputOptionList)
345
    {
346
        $this->inputOptionList = $inputOptionList;
347
    }
348
349
    /**
350
     * Returns the fillOutService
351
     *
352
     * @return string $fillOutService
353
     */
354
    public function getFillOutService()
355
    {
356
        return $this->fillOutService;
357
    }
358
359
    /**
360
     * Sets the fillOutService
361
     *
362
     * @param string $fillOutService
363
     * @return void
364
     */
365
    public function setFillOutService($fillOutService)
366
    {
367
        $this->fillOutService = $fillOutService;
368
    }
369
370
    /**
371
     * Returns the backendOnly
372
     *
373
     * @return boolean $backendOnly
374
     */
375
    public function getBackendOnly()
376
    {
377
        return $this->backendOnly;
378
    }
379
380
    /**
381
     * Sets the backendOnly
382
     *
383
     * @param boolean $backendOnly
384
     * @return void
385
     */
386
    public function setBackendOnly($backendOnly)
387
    {
388
        $this->backendOnly = $backendOnly;
389
    }
390
391
    /**
392
     * Returns the consent
393
     *
394
     * @return boolean $consent
395
     */
396
    public function getConsent()
397
    {
398
        return $this->consent;
399
    }
400
401
    /**
402
     * Sets the consent
403
     *
404
     * @param boolean $consent
405
     * @return void
406
     */
407
    public function setConsent($consent)
408
    {
409
        $this->consent = $consent;
410
    }
411
412
    /**
413
     * Returns the defaultValue
414
     *
415
     * @return string $defaultValue
416
     */
417
    public function getDefaultValue()
418
    {
419
        return $this->defaultValue;
420
    }
421
422
    /**
423
     * Sets the defaultValue
424
     *
425
     * @param string $defaultValue
426
     * @return void
427
     */
428
    public function setDefaultValue($defaultValue)
429
    {
430
        $this->defaultValue = $defaultValue;
431
    }
432
433
    /**
434
     * Returns the validation
435
     *
436
     * @return string $validation
437
     */
438
    public function getValidation()
439
    {
440
        return $this->validation;
441
    }
442
443
    /**
444
     * Sets the validation
445
     *
446
     * @param string $validation
447
     * @return void
448
     */
449
    public function setValidation($validation)
450
    {
451
        $this->validation = $validation;
452
    }
453
454
    /**
455
     * Returns the dataType
456
     *
457
     * @return string $dataType
458
     */
459
    public function getDataType()
460
    {
461
        return $this->dataType;
462
    }
463
464
    /**
465
     * Sets the dataType
466
     *
467
     * @param string $dataType
468
     * @return void
469
     */
470
    public function setDataType($dataType)
471
    {
472
        $this->dataType = $dataType;
473
    }
474
475
    /**
476
     * @return string
477
     */
478
    public function getGndFieldUid()
479
    {
480
        return $this->gndFieldUid;
481
    }
482
483
    /**
484
     * @param string $gndFieldUid
485
     */
486
    public function setGndFieldUid($gndFieldUid)
487
    {
488
        $this->gndFieldUid = $gndFieldUid;
489
    }
490
491
}
492