File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1919 */
2020interface ResultInterface
2121{
22+ /**
23+ * Sets the score the user achieved.
24+ *
25+ * @param ScoreInterface $score The score
26+ */
2227 public function setScore (ScoreInterface $ score );
2328
2429 /**
25- * @return ScoreInterface
30+ * Returns the user's score.
31+ *
32+ * @return ScoreInterface The score
2633 */
2734 public function getScore ();
2835
36+ /**
37+ * Sets whether or not the user finished a task successfully.
38+ *
39+ * @param boolean $success True if the user finished an exercise successfully,
40+ * false otherwise
41+ */
2942 public function setSuccess ($ success );
3043
44+ /**
45+ * Returns whether or not the user finished a task successfully.
46+ *
47+ * @return boolean True if the user finished an exercise successfully,
48+ * false otherwise
49+ */
3150 public function getSuccess ();
3251
3352 /**
You can’t perform that action at this time.
0 commit comments