1 | <?php |
||
30 | class Board extends AbstractBoard |
||
31 | { |
||
32 | /** |
||
33 | * |
||
34 | * @var integer $id |
||
35 | */ |
||
36 | protected $id; |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * @var string name |
||
41 | */ |
||
42 | protected $name; |
||
43 | |||
44 | /** |
||
45 | * |
||
46 | * @var string $description\ |
||
47 | */ |
||
48 | protected $description; |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | * @var integer $cachedTopicCount |
||
53 | */ |
||
54 | protected $cachedTopicCount = 0; |
||
55 | |||
56 | /** |
||
57 | * |
||
58 | * @var integer $cachedPostCount |
||
59 | */ |
||
60 | protected $cachedPostCount = 0; |
||
61 | |||
62 | /** |
||
63 | * |
||
64 | * @var integer $listOrderPriority |
||
65 | */ |
||
66 | protected $listOrderPriority = 0; |
||
67 | |||
68 | /** |
||
69 | * |
||
70 | * @var array $readAuthorisedRoles |
||
71 | */ |
||
72 | protected $readAuthorisedRoles; |
||
73 | |||
74 | /** |
||
75 | * |
||
76 | * @var array $topicCreateAuthorisedRoles |
||
77 | */ |
||
78 | protected $topicCreateAuthorisedRoles; |
||
|
|||
79 | |||
80 | /** |
||
81 | * |
||
82 | * @var array $topicReplyAuthorisedRoles |
||
83 | */ |
||
84 | protected $topicReplyAuthorisedRoles; |
||
85 | |||
86 | /** |
||
87 | * |
||
88 | * @access public |
||
89 | */ |
||
90 | public function __construct() |
||
99 | |||
100 | public function __toString() |
||
104 | |||
105 | /** |
||
106 | * Get id |
||
107 | * |
||
108 | * @return integer |
||
109 | */ |
||
110 | public function getId() |
||
114 | |||
115 | /** |
||
116 | * Get name |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getName() |
||
124 | |||
125 | /** |
||
126 | * Set name |
||
127 | * |
||
128 | * @param string $name |
||
129 | * @return Board |
||
130 | */ |
||
131 | public function setName($name) |
||
137 | |||
138 | /** |
||
139 | * Get description |
||
140 | * |
||
141 | * @return string |
||
142 | */ |
||
143 | public function getDescription() |
||
147 | |||
148 | /** |
||
149 | * Set description |
||
150 | * |
||
151 | * @param string $description |
||
152 | * @return Board |
||
153 | */ |
||
154 | public function setDescription($description) |
||
160 | |||
161 | /** |
||
162 | * Get list_order_priority |
||
163 | * |
||
164 | * @return integer |
||
165 | */ |
||
166 | public function getListOrderPriority() |
||
170 | |||
171 | /** |
||
172 | * Set list_order_priority |
||
173 | * |
||
174 | * @param integer $listOrderPriority |
||
175 | * @return Board |
||
176 | */ |
||
177 | public function setListOrderPriority($listOrderPriority) |
||
183 | |||
184 | /** |
||
185 | * Get cachedTopicCount |
||
186 | * |
||
187 | * @return integer |
||
188 | */ |
||
189 | public function getCachedTopicCount() |
||
193 | |||
194 | /** |
||
195 | * Set cachedTopicCount |
||
196 | * |
||
197 | * @param integer $cachedTopicCount |
||
198 | * @return Board |
||
199 | */ |
||
200 | public function setCachedTopicCount($cachedTopicCount) |
||
206 | |||
207 | /** |
||
208 | * Get cachedPostCount |
||
209 | * |
||
210 | * @return integer |
||
211 | */ |
||
212 | public function getCachedPostCount() |
||
216 | |||
217 | /** |
||
218 | * Set cachedPostCount |
||
219 | * |
||
220 | * @param integer $cachedPostCount |
||
221 | * @return Board |
||
222 | */ |
||
223 | public function setCachedPostCount($cachedPostCount) |
||
229 | |||
230 | /** |
||
231 | * @return array |
||
232 | */ |
||
233 | public function getReadAuthorisedRoles() |
||
237 | |||
238 | /** |
||
239 | * @param array $roles |
||
240 | * @return Board |
||
241 | */ |
||
242 | public function setReadAuthorisedRoles(array $roles = null) |
||
248 | |||
249 | /** |
||
250 | * @param $role |
||
251 | * |
||
252 | * @return bool |
||
253 | */ |
||
254 | public function hasReadAuthorisedRole($role) |
||
258 | |||
259 | /** |
||
260 | * @param SecurityContextInterface $securityContext |
||
261 | * |
||
262 | * @return bool |
||
263 | */ |
||
264 | public function isAuthorisedToRead(SecurityContextInterface $securityContext) |
||
278 | |||
279 | /** |
||
280 | * @return array |
||
281 | */ |
||
282 | public function getTopicCreateAuthorisedRoles() |
||
286 | |||
287 | /** |
||
288 | * @param array $roles |
||
289 | * |
||
290 | * @return Board |
||
291 | */ |
||
292 | public function setTopicCreateAuthorisedRoles(array $roles = null) |
||
298 | |||
299 | /** |
||
300 | * @param $role |
||
301 | * |
||
302 | * @return bool |
||
303 | */ |
||
304 | public function hasTopicCreateAuthorisedRole($role) |
||
308 | |||
309 | /** |
||
310 | * @param SecurityContextInterface $securityContext |
||
311 | * |
||
312 | * @return bool |
||
313 | */ |
||
314 | public function isAuthorisedToCreateTopic(SecurityContextInterface $securityContext) |
||
328 | |||
329 | /** |
||
330 | * @return array |
||
331 | */ |
||
332 | public function getTopicReplyAuthorisedRoles() |
||
336 | |||
337 | /** |
||
338 | * @param array $roles |
||
339 | * |
||
340 | * @return Board |
||
341 | */ |
||
342 | public function setTopicReplyAuthorisedRoles(array $roles = null) |
||
348 | |||
349 | /** |
||
350 | * @param $role |
||
351 | * |
||
352 | * @return bool |
||
353 | */ |
||
354 | public function hasTopicReplyAuthorisedRole($role) |
||
358 | |||
359 | /** |
||
360 | * @param SecurityContextInterface $securityContext |
||
361 | * |
||
362 | * @return bool |
||
363 | */ |
||
364 | public function isAuthorisedToReplyToTopic(SecurityContextInterface $securityContext) |
||
378 | } |
||
379 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.