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 19
19
*/
20
20
interface ResultInterface
21
21
{
22
+ /**
23
+ * Sets the score the user achieved.
24
+ *
25
+ * @param ScoreInterface $score The score
26
+ */
22
27
public function setScore (ScoreInterface $ score );
23
28
24
29
/**
25
- * @return ScoreInterface
30
+ * Returns the user's score.
31
+ *
32
+ * @return ScoreInterface The score
26
33
*/
27
34
public function getScore ();
28
35
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
+ */
29
42
public function setSuccess ($ success );
30
43
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
+ */
31
50
public function getSuccess ();
32
51
33
52
/**
You can’t perform that action at this time.
0 commit comments