Completed
Push — master ( 22e1bb...96416a )
by Torben
04:49
created

CategoryDemand   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 118
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 118
ccs 20
cts 20
cp 1
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setStoragePage() 0 4 1
A getStoragePage() 0 4 1
A getRestrictToStoragePage() 0 4 1
A setRestrictToStoragePage() 0 4 1
A getCategories() 0 4 1
A setCategories() 0 4 1
A getIncludeSubcategories() 0 4 1
A setIncludeSubcategories() 0 4 1
1
<?php
2
namespace DERHANSEN\SfEventMgt\Domain\Model\Dto;
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
 * Category demand
19
 *
20
 * @author Torben Hansen <[email protected]>
21
 */
22
class CategoryDemand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
24
25
    /**
26
     * Storage page
27
     *
28
     * @var string
29
     */
30
    protected $storagePage;
31
32
    /**
33
     * Restrict categories to storagePage
34
     *
35
     * @var bool
36
     */
37
    protected $restrictToStoragePage = false;
38
39
    /**
40
     * Categories (seperated by comma)
41
     *
42
     * @var string
43
     */
44
    protected $categories = '';
45
46
    /**
47
     * Include subcategories
48
     *
49
     * @var bool
50
     */
51
    protected $includeSubcategories = false;
52
53
    /**
54
     * Sets the storage page
55
     *
56
     * @param string $storagePage Storagepage
57
     *
58
     * @return void
59
     */
60 2
    public function setStoragePage($storagePage)
61
    {
62 2
        $this->storagePage = $storagePage;
63 2
    }
64
65
    /**
66
     * Returns the storage page
67
     *
68
     * @return string
69
     */
70 2
    public function getStoragePage()
71
    {
72 2
        return $this->storagePage;
73
    }
74
75
    /**
76
     * Returns restrictToStoragePage
77
     *
78
     * @return bool
79
     */
80 4
    public function getRestrictToStoragePage()
81
    {
82 4
        return $this->restrictToStoragePage;
83
    }
84
85
    /**
86
     * Sets restrictToStoragePage
87
     *
88
     * @param bool $restrictToStoragePage
89
     *
90
     * @return void
91
     */
92 2
    public function setRestrictToStoragePage($restrictToStoragePage)
93
    {
94 2
        $this->restrictToStoragePage = $restrictToStoragePage;
95 2
    }
96
97
    /**
98
     * Returns the categories
99
     *
100
     * @return string
101
     */
102 2
    public function getCategories()
103
    {
104 2
        return $this->categories;
105
    }
106
107
    /**
108
     * Sets the categories
109
     *
110
     * @param string $categories
111
     * @return void
112
     */
113 2
    public function setCategories($categories)
114
    {
115 2
        $this->categories = $categories;
116 2
    }
117
118
    /**
119
     * Returns includeSubcategories
120
     *
121
     * @return boolean
122
     */
123 4
    public function getIncludeSubcategories()
124
    {
125 4
        return $this->includeSubcategories;
126
    }
127
128
    /**
129
     * Sets includeSubcategories
130
     *
131
     * @param boolean $includeSubcategories
132
     * @return void
133
     */
134 2
    public function setIncludeSubcategories($includeSubcategories)
135
    {
136 2
        $this->includeSubcategories = $includeSubcategories;
137 2
    }
138
139
}