1 | <?php |
||
18 | class QuizReply implements InputFilterAwareInterface |
||
19 | { |
||
20 | protected $inputFilter; |
||
21 | |||
22 | /** |
||
23 | * @ORM\Id |
||
24 | * @ORM\Column(type="integer"); |
||
25 | * @ORM\GeneratedValue(strategy="AUTO") |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * @ORM\ManyToOne(targetEntity="Entry") |
||
31 | * @ORM\JoinColumn(name="entry_id", referencedColumnName="id", onDelete="CASCADE") |
||
32 | **/ |
||
33 | protected $entry; |
||
34 | |||
35 | /** |
||
36 | * @ORM\Column(type="integer") |
||
37 | **/ |
||
38 | protected $totalCorrectAnswers; |
||
39 | |||
40 | /** |
||
41 | * @ORM\Column(type="integer") |
||
42 | **/ |
||
43 | protected $maxCorrectAnswers; |
||
44 | |||
45 | /** |
||
46 | * @ORM\Column(type="integer") |
||
47 | **/ |
||
48 | protected $totalQuestions; |
||
49 | |||
50 | /** |
||
51 | * @ORM\OneToMany(targetEntity="QuizReplyAnswer", mappedBy="reply", cascade={"persist","remove"}) |
||
52 | */ |
||
53 | private $answers; |
||
54 | |||
55 | /** |
||
56 | * @ORM\Column(type="datetime") |
||
57 | */ |
||
58 | protected $created_at; |
||
59 | |||
60 | /** |
||
61 | * @ORM\Column(type="datetime") |
||
62 | */ |
||
63 | protected $updated_at; |
||
64 | |||
65 | public function __construct() |
||
69 | |||
70 | /** |
||
71 | * @PrePersist |
||
72 | */ |
||
73 | public function createChrono() |
||
78 | |||
79 | /** |
||
80 | * @PreUpdate |
||
81 | */ |
||
82 | public function updateChrono() |
||
86 | |||
87 | /** |
||
88 | * @return the unknown_type |
||
89 | */ |
||
90 | public function getId() |
||
94 | |||
95 | /** |
||
96 | * @param unknown_type $id |
||
97 | */ |
||
98 | public function setId($id) |
||
104 | |||
105 | /** |
||
106 | * @return PlaygroundGame\Entity\Entry |
||
107 | */ |
||
108 | public function getEntry() |
||
112 | |||
113 | /** |
||
114 | * @param PlaygroundGame\Entity\Entry $entry |
||
115 | */ |
||
116 | public function setEntry($entry) |
||
122 | |||
123 | /** |
||
124 | * @return integer $totalCorrectAnswers |
||
125 | */ |
||
126 | public function getTotalCorrectAnswers() |
||
130 | |||
131 | /** |
||
132 | * @param integer $totalCorrectAnswers |
||
133 | */ |
||
134 | public function setTotalCorrectAnswers($totalCorrectAnswers) |
||
140 | |||
141 | /** |
||
142 | * @return the $maxCorrectAnswers |
||
143 | */ |
||
144 | public function getMaxCorrectAnswers() |
||
148 | |||
149 | /** |
||
150 | * @param field_type $maxCorrectAnswers |
||
151 | */ |
||
152 | public function setMaxCorrectAnswers($maxCorrectAnswers) |
||
158 | |||
159 | /** |
||
160 | * @return integer $totalQuestions |
||
161 | */ |
||
162 | public function getTotalQuestions() |
||
166 | |||
167 | /** |
||
168 | * @param integer $totalQuestions |
||
169 | */ |
||
170 | public function setTotalQuestions($totalQuestions) |
||
176 | |||
177 | /** |
||
178 | * @return ArrayCollection $answers |
||
179 | */ |
||
180 | public function getAnswers() |
||
184 | |||
185 | /** |
||
186 | * frm collection solution |
||
187 | * @param ArrayCollection $answers |
||
188 | */ |
||
189 | public function setAnswers(ArrayCollection $answers) |
||
195 | |||
196 | public function addAnswers(ArrayCollection $answers) |
||
203 | |||
204 | public function removeAnswers(\Doctrine\Common\Collections\Collection $answers) |
||
211 | |||
212 | /** |
||
213 | * Add an answer to the quiz. |
||
214 | * |
||
215 | * @param QuizReplyAnswer $answer |
||
216 | * |
||
217 | * @return void |
||
218 | */ |
||
219 | public function addAnswer(QuizReplyAnswer $answer) |
||
224 | |||
225 | /** |
||
226 | * @return the unknown_type |
||
227 | */ |
||
228 | public function getCreatedAt() |
||
232 | |||
233 | /** |
||
234 | * @param unknown_type $created_at |
||
235 | */ |
||
236 | public function setCreatedAt($created_at) |
||
242 | |||
243 | /** |
||
244 | * @return the unknown_type |
||
245 | */ |
||
246 | public function getUpdatedAt() |
||
250 | |||
251 | /** |
||
252 | * @param unknown_type $updated_at |
||
253 | */ |
||
254 | public function setUpdatedAt($updated_at) |
||
260 | |||
261 | /** |
||
262 | * Convert the object to an array. |
||
263 | * |
||
264 | * @return array |
||
265 | */ |
||
266 | public function getArrayCopy() |
||
272 | |||
273 | /** |
||
274 | * Populate from an array. |
||
275 | * |
||
276 | * @param array $data |
||
277 | */ |
||
278 | public function populate($data = array()) |
||
281 | |||
282 | public function setInputFilter(InputFilterInterface $inputFilter) |
||
286 | |||
287 | public function getInputFilter() |
||
296 | } |
||
297 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.