1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* For licensing terms, see /license.txt */ |
4
|
|
|
|
5
|
|
|
namespace Chamilo\PluginBundle\Entity\XApi; |
6
|
|
|
|
7
|
|
|
use Chamilo\UserBundle\Entity\User; |
8
|
|
|
use DateTime; |
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* @ORM\Table(name="xapi_internal_log") |
13
|
|
|
* @ORM\Entity() |
14
|
|
|
*/ |
15
|
|
|
class InternalLog |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @var int |
19
|
|
|
* |
20
|
|
|
* @ORM\Column(name="id", type="integer") |
21
|
|
|
* @ORM\Id() |
22
|
|
|
* @ORM\GeneratedValue() |
23
|
|
|
*/ |
24
|
|
|
private $id; |
25
|
|
|
/** |
26
|
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\UserBundle\Entity\User") |
27
|
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
28
|
|
|
*/ |
29
|
|
|
private $user; |
30
|
|
|
/** |
31
|
|
|
* @var string |
32
|
|
|
* |
33
|
|
|
* @ORM\Column(name="statement_id", type="string") |
34
|
|
|
*/ |
35
|
|
|
private $statementId; |
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
* |
39
|
|
|
* @ORM\Column(name="verb", type="string") |
40
|
|
|
*/ |
41
|
|
|
private $verb; |
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
* |
45
|
|
|
* @ORM\Column(name="activity_id", type="string") |
46
|
|
|
*/ |
47
|
|
|
private $activityId; |
48
|
|
|
/** |
49
|
|
|
* @var string|null |
50
|
|
|
* |
51
|
|
|
* @ORM\Column(name="activity_name", type="string", nullable=true) |
52
|
|
|
*/ |
53
|
|
|
private $activityName; |
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
* |
57
|
|
|
* @ORM\Column(name="activity_description", type="string", nullable=true) |
58
|
|
|
*/ |
59
|
|
|
private $activityDescription; |
60
|
|
|
/** |
61
|
|
|
* @var float|null |
62
|
|
|
* |
63
|
|
|
* @ORM\Column(name="score_scaled", type="float", nullable=true) |
64
|
|
|
*/ |
65
|
|
|
private $scoreScaled; |
66
|
|
|
/** |
67
|
|
|
* @var float|null |
68
|
|
|
* |
69
|
|
|
* @ORM\Column(name="score_raw", type="float", nullable=true) |
70
|
|
|
*/ |
71
|
|
|
private $scoreRaw; |
72
|
|
|
/** |
73
|
|
|
* @var float|null |
74
|
|
|
* |
75
|
|
|
* @ORM\Column(name="score_min", type="float", nullable=true) |
76
|
|
|
*/ |
77
|
|
|
private $scoreMin; |
78
|
|
|
/** |
79
|
|
|
* @var float|null |
80
|
|
|
* |
81
|
|
|
* @ORM\Column(name="score_max", type="float", nullable=true) |
82
|
|
|
*/ |
83
|
|
|
private $scoreMax; |
84
|
|
|
/** |
85
|
|
|
* @var DateTime|null |
86
|
|
|
* |
87
|
|
|
* @ORM\Column(name="created_at", type="datetime", nullable=true) |
88
|
|
|
*/ |
89
|
|
|
private $createdAt; |
90
|
|
|
|
91
|
|
|
public function getId(): int |
92
|
|
|
{ |
93
|
|
|
return $this->id; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function getUser(): User |
97
|
|
|
{ |
98
|
|
|
return $this->user; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
public function setUser(User $user): InternalLog |
102
|
|
|
{ |
103
|
|
|
$this->user = $user; |
104
|
|
|
|
105
|
|
|
return $this; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function getStatementId(): string |
109
|
|
|
{ |
110
|
|
|
return $this->statementId; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
public function setStatementId(string $statementId): InternalLog |
114
|
|
|
{ |
115
|
|
|
$this->statementId = $statementId; |
116
|
|
|
|
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function getVerb(): string |
121
|
|
|
{ |
122
|
|
|
return $this->verb; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function setVerb(string $verb): InternalLog |
126
|
|
|
{ |
127
|
|
|
$this->verb = $verb; |
128
|
|
|
|
129
|
|
|
return $this; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function getActivityId(): string |
133
|
|
|
{ |
134
|
|
|
return $this->activityId; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
public function setActivityId(string $activityId): InternalLog |
138
|
|
|
{ |
139
|
|
|
$this->activityId = $activityId; |
140
|
|
|
|
141
|
|
|
return $this; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function getActivityName(): ?string |
145
|
|
|
{ |
146
|
|
|
return $this->activityName; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
public function setActivityName(?string $activityName): InternalLog |
150
|
|
|
{ |
151
|
|
|
$this->activityName = $activityName; |
152
|
|
|
|
153
|
|
|
return $this; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @return string|null |
158
|
|
|
*/ |
159
|
|
|
public function getActivityDescription(): ?string |
160
|
|
|
{ |
161
|
|
|
return $this->activityDescription; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
public function setActivityDescription(?string $activityDescription): InternalLog |
165
|
|
|
{ |
166
|
|
|
$this->activityDescription = $activityDescription; |
167
|
|
|
|
168
|
|
|
return $this; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function getScoreScaled(): ?float |
172
|
|
|
{ |
173
|
|
|
return $this->scoreScaled; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
public function setScoreScaled(?float $scoreScaled): InternalLog |
177
|
|
|
{ |
178
|
|
|
$this->scoreScaled = $scoreScaled; |
179
|
|
|
|
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
public function getScoreRaw(): ?float |
184
|
|
|
{ |
185
|
|
|
return $this->scoreRaw; |
186
|
|
|
} |
187
|
|
|
|
188
|
|
|
public function setScoreRaw(?float $scoreRaw): InternalLog |
189
|
|
|
{ |
190
|
|
|
$this->scoreRaw = $scoreRaw; |
191
|
|
|
|
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
public function getScoreMin(): ?float |
196
|
|
|
{ |
197
|
|
|
return $this->scoreMin; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
public function setScoreMin(?float $scoreMin): InternalLog |
201
|
|
|
{ |
202
|
|
|
$this->scoreMin = $scoreMin; |
203
|
|
|
|
204
|
|
|
return $this; |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
public function getScoreMax(): ?float |
208
|
|
|
{ |
209
|
|
|
return $this->scoreMax; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
public function setScoreMax(?float $scoreMax): InternalLog |
213
|
|
|
{ |
214
|
|
|
$this->scoreMax = $scoreMax; |
215
|
|
|
|
216
|
|
|
return $this; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
public function getCreatedAt(): ?DateTime |
220
|
|
|
{ |
221
|
|
|
return $this->createdAt; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
public function setCreatedAt(?DateTime $createdAt): InternalLog |
225
|
|
|
{ |
226
|
|
|
$this->createdAt = $createdAt; |
227
|
|
|
|
228
|
|
|
return $this; |
229
|
|
|
} |
230
|
|
|
} |
231
|
|
|
|