Completed
Push — master ( a40e80...ce60f3 )
by Tim
12s queued 10s
created

Question::getLanguageId()   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 0
1
<?php
2
3
declare(strict_types = 1);
4
/**
5
 * Question / Frage.
6
 */
7
8
namespace HDNET\Faq\Domain\Model;
9
10
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
11
12
/**
13
 * Question / Frage.
14
 *
15
 * @db
16
 */
17
class Question extends AbstractModel
18
{
19
    /**
20
     * Title.
21
     *
22
     * @var string
23
     * @db
24
     */
25
    protected $title;
26
27
    /**
28
     * Answer.
29
     *
30
     * @var string
31
     * @db
32
     */
33
    protected $answer;
34
35
    /**
36
     * Tags.
37
     *
38
     * @var string
39
     * @db
40
     */
41
    protected $tags;
42
43
    /**
44
     * Top Counter.
45
     *
46
     * @var int
47
     * @db
48
     */
49
    protected $topCounter;
50
51
    /**
52
     * Flop Counter.
53
     *
54
     * @var int
55
     * @db
56
     */
57
    protected $flopCounter;
58
59
    /**
60
     * @var int
61
     */
62
    protected $_languageUid = 0;
63
64
    /**
65
     * Categories.
66
     *
67
     * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\HDNET\Faq\Domain\Model\Questioncategory>
68
     * @db int(11) DEFAULT '0' NOT NULL
69
     */
70
    protected $categories;
71
72
    /**
73
     * Question constructor.
74
     */
75
    public function __construct()
76
    {
77
        $this->categories = new ObjectStorage();
78
    }
79
80
    /**
81
     * Set the title.
82
     *
83
     * @param string $title
84
     */
85
    public function setTitle($title)
86
    {
87
        $this->title = $title;
88
    }
89
90
    /**
91
     * Get the title.
92
     *
93
     * @return string
94
     */
95
    public function getTitle()
96
    {
97
        return $this->title;
98
    }
99
100
    /**
101
     * Set answer.
102
     *
103
     * @param string $answer
104
     */
105
    public function setAnswer($answer)
106
    {
107
        $this->answer = $answer;
108
    }
109
110
    /**
111
     * Get answer.
112
     *
113
     * @return string
114
     */
115
    public function getAnswer()
116
    {
117
        return $this->answer;
118
    }
119
120
    /**
121
     * Set tags.
122
     *
123
     * @param string $tags
124
     */
125
    public function setTags($tags)
126
    {
127
        $this->tags = $tags;
128
    }
129
130
    /**
131
     * Get tags.
132
     *
133
     * @return string
134
     */
135
    public function getTags()
136
    {
137
        return $this->tags;
138
    }
139
140
    /**
141
     * Set the top counter.
142
     *
143
     * @param int $topCounter
144
     */
145
    public function setTopCounter($topCounter)
146
    {
147
        $this->topCounter = $topCounter;
148
    }
149
150
    /**
151
     * Get the top counter.
152
     *
153
     * @return int
154
     */
155
    public function getTopCounter()
156
    {
157
        return (int)$this->topCounter;
158
    }
159
160
    /**
161
     * Set the categories.
162
     *
163
     * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $categories
164
     */
165
    public function setCategories($categories)
166
    {
167
        $this->categories = $categories;
168
    }
169
170
    /**
171
     * Get the categories.
172
     *
173
     * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
174
     */
175
    public function getCategories()
176
    {
177
        return $this->categories;
178
    }
179
180
    /**
181
     * Set the Flop Counter.
182
     *
183
     * @param int $flopCounter
184
     */
185
    public function setFlopCounter($flopCounter)
186
    {
187
        $this->flopCounter = $flopCounter;
188
    }
189
190
    /**
191
     * Get the flop counter.
192
     *
193
     * @return int
194
     */
195
    public function getFlopCounter()
196
    {
197
        return (int)$this->flopCounter;
198
    }
199
200
    /**
201
     * Public getter for the languageUid
202
     * @return int
203
     */
204
    public function getLanguageId()
205
    {
206
        return $this->_languageUid;
207
    }
208
}
209