-
Notifications
You must be signed in to change notification settings - Fork 0
/
Highscore.php
113 lines (93 loc) · 1.88 KB
/
Highscore.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
/**
* Created by PhpStorm.
* User: janba_000
* Date: 1. 12. 2015
* Time: 13:28
*/
namespace App\Holder;
use App\Base\IHolder;
use App\Model\Respondent;
use Nette\Utils\DateTime;
class Highscore implements IHolder{
/**
* @var Respondent
*/
private $respondent;
/**
* @var int
*/
private $totalQuestions;
/**
* @var int
*/
private $totalCorrect;
/**
* @var DateTime
*/
private $date;
/**
* @var float
*/
private $score;
/**
* @return Respondent
*/
public function getRespondent() {
return $this->respondent;
}
/**
* @param Respondent $respondent
*/
public function setRespondent($respondent) {
$this->respondent = $respondent;
}
/**
* @return int
*/
public function getTotalQuestions() {
return $this->totalQuestions;
}
/**
* @param int $totalQuestions
*/
public function setTotalQuestions($totalQuestions) {
$this->totalQuestions = $totalQuestions;
}
/**
* @return int
*/
public function getTotalCorrect() {
return $this->totalCorrect;
}
/**
* @param int $totalCorrect
*/
public function setTotalCorrect($totalCorrect) {
$this->totalCorrect = $totalCorrect;
}
/**
* @return DateTime
*/
public function getDate() {
return $this->date;
}
/**
* @param DateTime $date
*/
public function setDate($date) {
$this->date = $date;
}
/**
* @return float
*/
public function getScore() {
return round($this->score,2);
}
/**
* @param float $score
*/
public function setScore($score) {
$this->score = $score;
}
}