1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Chamilo\CoreBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Chamilo\CoreBundle\Repository\XApiInternalLogRepository; |
6
|
|
|
use Doctrine\DBAL\Types\Types; |
7
|
|
|
use Doctrine\ORM\Mapping as ORM; |
8
|
|
|
use Gedmo\Timestampable\Traits\TimestampableEntity; |
9
|
|
|
|
10
|
|
|
#[ORM\Entity(repositoryClass: XApiInternalLogRepository::class)] |
11
|
|
|
class XApiInternalLog |
12
|
|
|
{ |
13
|
|
|
use TimestampableEntity; |
14
|
|
|
|
15
|
|
|
#[ORM\Id] |
16
|
|
|
#[ORM\GeneratedValue] |
17
|
|
|
#[ORM\Column] |
18
|
|
|
private ?int $id = null; |
19
|
|
|
|
20
|
|
|
#[ORM\ManyToOne] |
21
|
|
|
private ?User $user = null; |
22
|
|
|
|
23
|
|
|
#[ORM\Column(length: 255)] |
24
|
|
|
private ?string $statementId = null; |
25
|
|
|
|
26
|
|
|
#[ORM\Column(length: 255)] |
27
|
|
|
private ?string $verb = null; |
28
|
|
|
|
29
|
|
|
#[ORM\Column(length: 255)] |
30
|
|
|
private ?string $objectId = null; |
31
|
|
|
|
32
|
|
|
#[ORM\Column(length: 255, nullable: true)] |
33
|
|
|
private ?string $activityName = null; |
34
|
|
|
|
35
|
|
|
#[ORM\Column(length: 255)] |
36
|
|
|
private ?string $activityDescription = null; |
37
|
|
|
|
38
|
|
|
#[ORM\Column(nullable: true)] |
39
|
|
|
private ?float $scoreScaled = null; |
40
|
|
|
|
41
|
|
|
#[ORM\Column(nullable: true)] |
42
|
|
|
private ?float $scoreRaw = null; |
43
|
|
|
|
44
|
|
|
#[ORM\Column(nullable: true)] |
45
|
|
|
private ?float $scoreMin = null; |
46
|
|
|
|
47
|
|
|
#[ORM\Column(nullable: true)] |
48
|
|
|
private ?float $scoreMax = null; |
49
|
|
|
|
50
|
|
|
public function getId(): ?int |
51
|
|
|
{ |
52
|
|
|
return $this->id; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function getUser(): ?User |
56
|
|
|
{ |
57
|
|
|
return $this->user; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function setUser(?User $user): static |
61
|
|
|
{ |
62
|
|
|
$this->user = $user; |
63
|
|
|
|
64
|
|
|
return $this; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function getStatementId(): ?string |
68
|
|
|
{ |
69
|
|
|
return $this->statementId; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function setStatementId(string $statementId): static |
73
|
|
|
{ |
74
|
|
|
$this->statementId = $statementId; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getVerb(): ?string |
80
|
|
|
{ |
81
|
|
|
return $this->verb; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function setVerb(string $verb): static |
85
|
|
|
{ |
86
|
|
|
$this->verb = $verb; |
87
|
|
|
|
88
|
|
|
return $this; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
public function getObjectId(): ?string |
92
|
|
|
{ |
93
|
|
|
return $this->objectId; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function setObjectId(string $objectId): static |
97
|
|
|
{ |
98
|
|
|
$this->objectId = $objectId; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function getActivityName(): ?string |
104
|
|
|
{ |
105
|
|
|
return $this->activityName; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function setActivityName(?string $activityName): static |
109
|
|
|
{ |
110
|
|
|
$this->activityName = $activityName; |
111
|
|
|
|
112
|
|
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getActivityDescription(): ?string |
116
|
|
|
{ |
117
|
|
|
return $this->activityDescription; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function setActivityDescription(string $activityDescription): static |
121
|
|
|
{ |
122
|
|
|
$this->activityDescription = $activityDescription; |
123
|
|
|
|
124
|
|
|
return $this; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function getScoreScaled(): ?float |
128
|
|
|
{ |
129
|
|
|
return $this->scoreScaled; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function setScoreScaled(?float $scoreScaled): static |
133
|
|
|
{ |
134
|
|
|
$this->scoreScaled = $scoreScaled; |
135
|
|
|
|
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function getScoreRaw(): ?float |
140
|
|
|
{ |
141
|
|
|
return $this->scoreRaw; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function setScoreRaw(?float $scoreRaw): static |
145
|
|
|
{ |
146
|
|
|
$this->scoreRaw = $scoreRaw; |
147
|
|
|
|
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function getScoreMin(): ?float |
152
|
|
|
{ |
153
|
|
|
return $this->scoreMin; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function setScoreMin(?float $scoreMin): static |
157
|
|
|
{ |
158
|
|
|
$this->scoreMin = $scoreMin; |
159
|
|
|
|
160
|
|
|
return $this; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
public function getScoreMax(): ?float |
164
|
|
|
{ |
165
|
|
|
return $this->scoreMax; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
public function setScoreMax(?float $scoreMax): static |
169
|
|
|
{ |
170
|
|
|
$this->scoreMax = $scoreMax; |
171
|
|
|
|
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
public function getCreatedAt(): ?\DateTimeInterface |
176
|
|
|
{ |
177
|
|
|
return $this->createdAt; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
public function setCreatedAt(?\DateTimeInterface $createdAt): static |
181
|
|
|
{ |
182
|
|
|
$this->createdAt = $createdAt; |
183
|
|
|
|
184
|
|
|
return $this; |
185
|
|
|
} |
186
|
|
|
} |
187
|
|
|
|