Passed
Push — master ( 70e393...45daf5 )
by Julito
09:50
created

TrackEHotspot::setHotspotAnswerId()   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 Chamilo\CoreBundle\Traits\CourseTrait;
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * TrackEHotspot.
11
 *
12
 * @ORM\Table(name="track_e_hotspot", indexes={
13
 *     @ORM\Index(name="hotspot_user_id", columns={"hotspot_user_id"}),
14
 *     @ORM\Index(name="hotspot_exe_id", columns={"hotspot_exe_id"}),
15
 *     @ORM\Index(name="hotspot_question_id", columns={"hotspot_question_id"})
16
 * })
17
 * @ORM\Entity
18
 */
19
class TrackEHotspot
20
{
21
    use CourseTrait;
22
23
    /**
24
     * @var int
25
     *
26
     * @ORM\Column(name="hotspot_id", type="integer")
27
     * @ORM\Id
28
     * @ORM\GeneratedValue
29
     */
30
    protected $hotspotId;
31
32
    /**
33
     * @var int
34
     *
35
     * @ORM\Column(name="hotspot_user_id", type="integer", nullable=false)
36
     */
37
    protected $hotspotUserId;
38
39
    /**
40
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Course")
41
     * @ORM\JoinColumn(name="c_id", referencedColumnName="id")
42
     */
43
    protected $course;
44
45
    /**
46
     * @var int
47
     *
48
     * @ORM\Column(name="hotspot_exe_id", type="integer", nullable=false)
49
     */
50
    protected $hotspotExeId;
51
52
    /**
53
     * @var int
54
     *
55
     * @ORM\Column(name="hotspot_question_id", type="integer", nullable=false)
56
     */
57
    protected $hotspotQuestionId;
58
59
    /**
60
     * @var int
61
     *
62
     * @ORM\Column(name="hotspot_answer_id", type="integer", nullable=false)
63
     */
64
    protected $hotspotAnswerId;
65
66
    /**
67
     * @var bool
68
     *
69
     * @ORM\Column(name="hotspot_correct", type="boolean", nullable=false)
70
     */
71
    protected $hotspotCorrect;
72
73
    /**
74
     * @var string
75
     *
76
     * @ORM\Column(name="hotspot_coordinate", type="text", nullable=false)
77
     */
78
    protected $hotspotCoordinate;
79
80
    /**
81
     * Set hotspotUserId.
82
     *
83
     * @param int $hotspotUserId
84
     *
85
     * @return TrackEHotspot
86
     */
87
    public function setHotspotUserId($hotspotUserId)
88
    {
89
        $this->hotspotUserId = $hotspotUserId;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Get hotspotUserId.
96
     *
97
     * @return int
98
     */
99
    public function getHotspotUserId()
100
    {
101
        return $this->hotspotUserId;
102
    }
103
104
    /**
105
     * Set hotspotExeId.
106
     *
107
     * @param int $hotspotExeId
108
     *
109
     * @return TrackEHotspot
110
     */
111
    public function setHotspotExeId($hotspotExeId)
112
    {
113
        $this->hotspotExeId = $hotspotExeId;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get hotspotExeId.
120
     *
121
     * @return int
122
     */
123
    public function getHotspotExeId()
124
    {
125
        return $this->hotspotExeId;
126
    }
127
128
    /**
129
     * Set hotspotQuestionId.
130
     *
131
     * @param int $hotspotQuestionId
132
     *
133
     * @return TrackEHotspot
134
     */
135
    public function setHotspotQuestionId($hotspotQuestionId)
136
    {
137
        $this->hotspotQuestionId = $hotspotQuestionId;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get hotspotQuestionId.
144
     *
145
     * @return int
146
     */
147
    public function getHotspotQuestionId()
148
    {
149
        return $this->hotspotQuestionId;
150
    }
151
152
    /**
153
     * Set hotspotAnswerId.
154
     *
155
     * @param int $hotspotAnswerId
156
     *
157
     * @return TrackEHotspot
158
     */
159
    public function setHotspotAnswerId($hotspotAnswerId)
160
    {
161
        $this->hotspotAnswerId = $hotspotAnswerId;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get hotspotAnswerId.
168
     *
169
     * @return int
170
     */
171
    public function getHotspotAnswerId()
172
    {
173
        return $this->hotspotAnswerId;
174
    }
175
176
    /**
177
     * Set hotspotCorrect.
178
     *
179
     * @param bool $hotspotCorrect
180
     *
181
     * @return TrackEHotspot
182
     */
183
    public function setHotspotCorrect($hotspotCorrect)
184
    {
185
        $this->hotspotCorrect = $hotspotCorrect;
186
187
        return $this;
188
    }
189
190
    /**
191
     * Get hotspotCorrect.
192
     *
193
     * @return bool
194
     */
195
    public function getHotspotCorrect()
196
    {
197
        return $this->hotspotCorrect;
198
    }
199
200
    /**
201
     * Set hotspotCoordinate.
202
     *
203
     * @param string $hotspotCoordinate
204
     *
205
     * @return TrackEHotspot
206
     */
207
    public function setHotspotCoordinate($hotspotCoordinate)
208
    {
209
        $this->hotspotCoordinate = $hotspotCoordinate;
210
211
        return $this;
212
    }
213
214
    /**
215
     * Get hotspotCoordinate.
216
     *
217
     * @return string
218
     */
219
    public function getHotspotCoordinate()
220
    {
221
        return $this->hotspotCoordinate;
222
    }
223
224
    /**
225
     * Get hotspotId.
226
     *
227
     * @return int
228
     */
229
    public function getHotspotId()
230
    {
231
        return $this->hotspotId;
232
    }
233
}
234