1 | <?php |
||
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() |
||
79 | |||
80 | /** |
||
81 | * Set the title. |
||
82 | * |
||
83 | * @param string $title |
||
84 | */ |
||
85 | public function setTitle($title) |
||
89 | |||
90 | /** |
||
91 | * Get the title. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getTitle() |
||
99 | |||
100 | /** |
||
101 | * Set answer. |
||
102 | * |
||
103 | * @param string $answer |
||
104 | */ |
||
105 | public function setAnswer($answer) |
||
109 | |||
110 | /** |
||
111 | * Get answer. |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getAnswer() |
||
119 | |||
120 | /** |
||
121 | * Set tags. |
||
122 | * |
||
123 | * @param string $tags |
||
124 | */ |
||
125 | public function setTags($tags) |
||
129 | |||
130 | /** |
||
131 | * Get tags. |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getTags() |
||
139 | |||
140 | /** |
||
141 | * Set the top counter. |
||
142 | * |
||
143 | * @param int $topCounter |
||
144 | */ |
||
145 | public function setTopCounter($topCounter) |
||
149 | |||
150 | /** |
||
151 | * Get the top counter. |
||
152 | * |
||
153 | * @return int |
||
154 | */ |
||
155 | public function getTopCounter() |
||
159 | |||
160 | /** |
||
161 | * Set the categories. |
||
162 | * |
||
163 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $categories |
||
164 | */ |
||
165 | public function setCategories($categories) |
||
169 | |||
170 | /** |
||
171 | * Get the categories. |
||
172 | * |
||
173 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage |
||
174 | */ |
||
175 | public function getCategories() |
||
179 | |||
180 | /** |
||
181 | * Set the Flop Counter. |
||
182 | * |
||
183 | * @param int $flopCounter |
||
184 | */ |
||
185 | public function setFlopCounter($flopCounter) |
||
189 | |||
190 | /** |
||
191 | * Get the flop counter. |
||
192 | * |
||
193 | * @return int |
||
194 | */ |
||
195 | public function getFlopCounter() |
||
199 | |||
200 | /** |
||
201 | * Public getter for the languageUid |
||
202 | * @return int |
||
203 | */ |
||
204 | public function getLanguageId() |
||
208 | } |
||
209 |