Completed
Push — master ( 0ecd6b...9f36b3 )
by Tim
03:56
created

ConfigurationGroup::getConfigurations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Logical configuration group.
4
 */
5
namespace HDNET\Calendarize\Domain\Model;
6
7
use TYPO3\CMS\Core\Utility\GeneralUtility;
8
9
/**
10
 * Logical configuration group.
11
 *
12
 * @db
13
 * @smartExclude Language
14
 */
15
class ConfigurationGroup extends AbstractModel
16
{
17
    /**
18
     * Title.
19
     *
20
     * @var string
21
     * @db
22
     */
23
    protected $title;
24
25
    /**
26
     * Configurations.
27
     *
28
     * @var string
29
     * @db text
30
     */
31
    protected $configurations;
32
33
    /**
34
     * Import ID if the item is based on an ICS structure.
35
     *
36
     * @var string
37
     * @db
38
     */
39
    protected $importId;
40
41
    /**
42
     * Get title.
43
     *
44
     * @return string
45
     */
46
    public function getTitle()
47
    {
48
        return $this->title;
49
    }
50
51
    /**
52
     * Set title.
53
     *
54
     * @param string $title
55
     */
56
    public function setTitle($title)
57
    {
58
        $this->title = $title;
59
    }
60
61
    /**
62
     * Get configurations.
63
     *
64
     * @return int[]
65
     */
66
    public function getConfigurationIds()
67
    {
68
        return GeneralUtility::intExplode(',', $this->configurations);
69
    }
70
}
71