Passed
Push — master ( c13cd8...09b141 )
by Julito
10:19
created

GradebookResultLog::getResultId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * GradebookResultLog.
10
 *
11
 * @ORM\Table(name="gradebook_result_log")
12
 * @ORM\Entity
13
 */
14
class GradebookResultLog
15
{
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(name="id", type="integer")
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="IDENTITY")
22
     */
23
    protected $id;
24
25
    /**
26
     * @var int
27
     *
28
     * @ORM\Column(name="result_id", type="integer", nullable=false)
29
     */
30
    protected $resultId;
31
32
    /**
33
     * @var int
34
     *
35
     * @ORM\Column(name="user_id", type="integer", nullable=false)
36
     */
37
    protected $userId;
38
39
    /**
40
     * @var int
41
     *
42
     * @ORM\Column(name="evaluation_id", type="integer", nullable=false)
43
     */
44
    protected $evaluationId;
45
46
    /**
47
     * @var \DateTime
48
     *
49
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
50
     */
51
    protected $createdAt;
52
53
    /**
54
     * @var float
55
     *
56
     * @ORM\Column(name="score", type="float", precision=10, scale=0, nullable=true)
57
     */
58
    protected $score;
59
60
    /**
61
     * Set userId.
62
     *
63
     * @param int $userId
64
     *
65
     * @return GradebookResultLog
66
     */
67
    public function setUserId($userId)
68
    {
69
        $this->userId = $userId;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get userId.
76
     *
77
     * @return int
78
     */
79
    public function getUserId()
80
    {
81
        return $this->userId;
82
    }
83
84
    /**
85
     * Set evaluationId.
86
     *
87
     * @param int $evaluationId
88
     *
89
     * @return GradebookResultLog
90
     */
91
    public function setEvaluationId($evaluationId)
92
    {
93
        $this->evaluationId = $evaluationId;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get evaluationId.
100
     *
101
     * @return int
102
     */
103
    public function getEvaluationId()
104
    {
105
        return $this->evaluationId;
106
    }
107
108
    /**
109
     * Set createdAt.
110
     *
111
     * @param \DateTime $createdAt
112
     *
113
     * @return GradebookResultLog
114
     */
115
    public function setCreatedAt($createdAt)
116
    {
117
        $this->createdAt = $createdAt;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get createdAt.
124
     *
125
     * @return \DateTime
126
     */
127
    public function getCreatedAt()
128
    {
129
        return $this->createdAt;
130
    }
131
132
    /**
133
     * Set score.
134
     *
135
     * @param float $score
136
     *
137
     * @return GradebookResultLog
138
     */
139
    public function setScore($score)
140
    {
141
        $this->score = $score;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get score.
148
     *
149
     * @return float
150
     */
151
    public function getScore()
152
    {
153
        return $this->score;
154
    }
155
156
    /**
157
     * Get id.
158
     *
159
     * @return int
160
     */
161
    public function getId()
162
    {
163
        return $this->id;
164
    }
165
166
    /**
167
     * @return int
168
     */
169
    public function getResultId(): int
170
    {
171
        return $this->resultId;
172
    }
173
174
    /**
175
     * @param int $resultId
176
     *
177
     * @return GradebookResultLog
178
     */
179
    public function setResultId(int $resultId): GradebookResultLog
180
    {
181
        $this->resultId = $resultId;
182
183
        return $this;
184
    }
185
}
186