Completed
Push — master ( da8bf6...ffff83 )
by Tim
27s queued 17s
created

ConfigurationGroup::setHidden()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * Logical configuration group.
5
 */
6
declare(strict_types=1);
7
8
namespace HDNET\Calendarize\Domain\Model;
9
10
use HDNET\Autoloader\Annotation\DatabaseField;
11
use HDNET\Autoloader\Annotation\DatabaseTable;
12
use HDNET\Autoloader\Annotation\SmartExclude;
13
use TYPO3\CMS\Core\Utility\GeneralUtility;
14
15
/**
16
 * Logical configuration group.
17
 *
18
 * @DatabaseTable
19
 * @SmartExclude(excludes={"Language"})
20
 */
21
class ConfigurationGroup extends AbstractModel
22
{
23
    /**
24
     * Title.
25
     *
26
     * @var string
27
     * @DatabaseField("string")
28
     */
29
    protected $title;
30
31
    /**
32
     * Configurations.
33
     *
34
     * @var string
35
     * @DatabaseField("string")
36
     */
37
    protected $configurations;
38
39
    /**
40
     * Import ID if the item is based on an ICS structure.
41
     *
42
     * @var string
43
     * @DatabaseField("string")
44
     */
45
    protected $importId;
46
47
    /**
48
     * Hidden.
49
     *
50
     * @var bool
51
     */
52
    protected $hidden = false;
53
54
    /**
55
     * Get title.
56
     *
57
     * @return string
58
     */
59
    public function getTitle()
60
    {
61
        return $this->title;
62
    }
63
64
    /**
65
     * Set title.
66
     *
67
     * @param string $title
68
     */
69
    public function setTitle($title)
70
    {
71
        $this->title = $title;
72
    }
73
74
    /**
75
     * Get configurations.
76
     *
77
     * @return int[]
78
     */
79
    public function getConfigurationIds()
80
    {
81
        return GeneralUtility::intExplode(',', $this->configurations);
82
    }
83
84
    /**
85
     * @return bool
86
     */
87
    public function isHidden(): bool
88
    {
89
        return $this->hidden;
90
    }
91
92
    /**
93
     * @param bool $hidden
94
     */
95
    public function setHidden(bool $hidden): void
96
    {
97
        $this->hidden = $hidden;
98
    }
99
}
100