Passed
Push — master ( 099650...7ed4f3 )
by Julito
10:49
created

TrackEHotpotatoes::setScore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
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
 * TrackEHotpotatoes.
10
 *
11
 * @ORM\Table(name="track_e_hotpotatoes", indexes={
12
 *     @ORM\Index(name="idx_tehp_user_id", columns={"exe_user_id"}),
13
 *     @ORM\Index(name="idx_tehp_c_id", columns={"c_id"})
14
 * })
15
 * @ORM\Entity
16
 */
17
class TrackEHotpotatoes
18
{
19
    /**
20
     * @var int
21
     *
22
     * @ORM\Column(name="id", type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue
25
     */
26
    protected $id;
27
28
    /**
29
     * @var string
30
     *
31
     * @ORM\Column(name="exe_name", type="string", length=255, nullable=false)
32
     */
33
    protected $exeName;
34
35
    /**
36
     * @var int
37
     *
38
     * @ORM\Column(name="exe_user_id", type="integer", nullable=true)
39
     */
40
    protected $exeUserId;
41
42
    /**
43
     * @var \DateTime
44
     *
45
     * @ORM\Column(name="exe_date", type="datetime", nullable=false)
46
     */
47
    protected $exeDate;
48
49
    /**
50
     * @var int
51
     *
52
     * @ORM\Column(name="c_id", type="integer", nullable=false)
53
     */
54
    protected $cId;
55
56
    /**
57
     * @var int
58
     *
59
     * @ORM\Column(name="score", type="smallint", nullable=false)
60
     */
61
    protected $score;
62
63
    /**
64
     * @var int
65
     *
66
     * @ORM\Column(name="max_score", type="smallint", nullable=false)
67
     */
68
    protected $maxScore;
69
70
    /**
71
     * Set exeName.
72
     *
73
     * @param string $exeName
74
     *
75
     * @return TrackEHotpotatoes
76
     */
77
    public function setExeName($exeName)
78
    {
79
        $this->exeName = $exeName;
80
81
        return $this;
82
    }
83
84
    /**
85
     * Get exeName.
86
     *
87
     * @return string
88
     */
89
    public function getExeName()
90
    {
91
        return $this->exeName;
92
    }
93
94
    /**
95
     * Set exeUserId.
96
     *
97
     * @param int $exeUserId
98
     *
99
     * @return TrackEHotpotatoes
100
     */
101
    public function setExeUserId($exeUserId)
102
    {
103
        $this->exeUserId = $exeUserId;
104
105
        return $this;
106
    }
107
108
    /**
109
     * Get exeUserId.
110
     *
111
     * @return int
112
     */
113
    public function getExeUserId()
114
    {
115
        return $this->exeUserId;
116
    }
117
118
    /**
119
     * Set exeDate.
120
     *
121
     * @param \DateTime $exeDate
122
     *
123
     * @return TrackEHotpotatoes
124
     */
125
    public function setExeDate($exeDate)
126
    {
127
        $this->exeDate = $exeDate;
128
129
        return $this;
130
    }
131
132
    /**
133
     * Get exeDate.
134
     *
135
     * @return \DateTime
136
     */
137
    public function getExeDate()
138
    {
139
        return $this->exeDate;
140
    }
141
142
    /**
143
     * Set cId.
144
     *
145
     * @param int $cId
146
     *
147
     * @return TrackEHotpotatoes
148
     */
149
    public function setCId($cId)
150
    {
151
        $this->cId = $cId;
152
153
        return $this;
154
    }
155
156
    /**
157
     * Get cId.
158
     *
159
     * @return int
160
     */
161
    public function getCId()
162
    {
163
        return $this->cId;
164
    }
165
166
    /**
167
     * Get id.
168
     *
169
     * @return int
170
     */
171
    public function getId()
172
    {
173
        return $this->id;
174
    }
175
176
    /**
177
     * @return int
178
     */
179
    public function getScore(): int
180
    {
181
        return $this->score;
182
    }
183
184
    /**
185
     * @param int $score
186
     *
187
     * @return TrackEHotpotatoes
188
     */
189
    public function setScore(int $score): TrackEHotpotatoes
190
    {
191
        $this->score = $score;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @return int
198
     */
199
    public function getMaxScore(): int
200
    {
201
        return $this->maxScore;
202
    }
203
204
    /**
205
     * @param int $maxScore
206
     *
207
     * @return TrackEHotpotatoes
208
     */
209
    public function setMaxScore(int $maxScore): TrackEHotpotatoes
210
    {
211
        $this->maxScore = $maxScore;
212
213
        return $this;
214
    }
215
}
216