Skip to content

Commit 9f57132

Browse files
committed
finish PHPdoc comments
1 parent dac9527 commit 9f57132

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Model/ResultInterface.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,34 @@
1919
*/
2020
interface 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
/**

0 commit comments

Comments
 (0)