|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
/* For licensing terms, see /license.txt */ |
|
6
|
|
|
|
|
7
|
|
|
namespace Chamilo\CourseBundle\Entity; |
|
8
|
|
|
|
|
9
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
10
|
|
|
use Chamilo\CoreBundle\Entity\Usergroup; |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* CPeerAssessmentCorrection. |
|
14
|
|
|
*/ |
|
15
|
|
|
#[ORM\Table(name: 'c_peer_assessment_correction')] |
|
16
|
|
|
#[ORM\Entity] |
|
17
|
|
|
class CPeerAssessmentCorrection |
|
18
|
|
|
{ |
|
19
|
|
|
#[ORM\Id] |
|
20
|
|
|
#[ORM\GeneratedValue] |
|
21
|
|
|
#[ORM\Column(type: 'integer')] |
|
22
|
|
|
protected ?int $id = null; |
|
23
|
|
|
|
|
24
|
|
|
#[ORM\ManyToOne(targetEntity: CPeerAssessment::class)] |
|
25
|
|
|
#[ORM\JoinColumn(name: 'peer_assessment_id', referencedColumnName: 'id', nullable: true, onDelete: 'CASCADE')] |
|
26
|
|
|
protected ?CPeerAssessment $peerAssessment = null; |
|
27
|
|
|
|
|
28
|
|
|
#[ORM\ManyToOne(targetEntity: Usergroup::class)] |
|
29
|
|
|
#[ORM\JoinColumn(name: 'student_group_id', referencedColumnName: 'id', nullable: true, onDelete: 'CASCADE')] |
|
30
|
|
|
protected ?Usergroup $studentGroup = null; |
|
31
|
|
|
|
|
32
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
33
|
|
|
protected ?int $examinerId = null; |
|
34
|
|
|
|
|
35
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
36
|
|
|
protected ?int $examinerGroupId = null; |
|
37
|
|
|
|
|
38
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
39
|
|
|
protected ?int $totalScore = 0; |
|
40
|
|
|
|
|
41
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
42
|
|
|
protected ?int $maximumScore = 0; |
|
43
|
|
|
|
|
44
|
|
|
#[ORM\Column(type: 'boolean', nullable: true)] |
|
45
|
|
|
protected ?bool $delivered = false; |
|
46
|
|
|
|
|
47
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
48
|
|
|
protected ?int $examinerFolderId = null; |
|
49
|
|
|
|
|
50
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
51
|
|
|
protected ?int $examinerDocumentId = null; |
|
52
|
|
|
|
|
53
|
|
|
#[ORM\Column(type: 'boolean', nullable: true)] |
|
54
|
|
|
protected ?bool $completed = false; |
|
55
|
|
|
|
|
56
|
|
|
|
|
57
|
|
|
public function __construct() {} |
|
58
|
|
|
|
|
59
|
|
|
public function getId(): ?int |
|
60
|
|
|
{ |
|
61
|
|
|
return $this->id; |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
public function getPeerAssessment(): ?CPeerAssessment |
|
65
|
|
|
{ |
|
66
|
|
|
return $this->peerAssessment; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
public function setPeerAssessment(?CPeerAssessment $peerAssessment): self |
|
70
|
|
|
{ |
|
71
|
|
|
$this->peerAssessment = $peerAssessment; |
|
72
|
|
|
|
|
73
|
|
|
return $this; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
public function getStudentGroup(): ?Usergroup |
|
77
|
|
|
{ |
|
78
|
|
|
return $this->studentGroup; |
|
79
|
|
|
} |
|
80
|
|
|
|
|
81
|
|
|
public function setStudentGroup(?Usergroup $studentGroup): self |
|
82
|
|
|
{ |
|
83
|
|
|
$this->studentGroup = $studentGroup; |
|
84
|
|
|
|
|
85
|
|
|
return $this; |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
public function getExaminerId(): ?int |
|
89
|
|
|
{ |
|
90
|
|
|
return $this->examinerId; |
|
91
|
|
|
} |
|
92
|
|
|
|
|
93
|
|
|
public function setExaminerId(?int $examinerId): self |
|
94
|
|
|
{ |
|
95
|
|
|
$this->examinerId = $examinerId; |
|
96
|
|
|
|
|
97
|
|
|
return $this; |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
public function getExaminerGroupId(): ?int |
|
101
|
|
|
{ |
|
102
|
|
|
return $this->examinerGroupId; |
|
103
|
|
|
} |
|
104
|
|
|
|
|
105
|
|
|
public function setExaminerGroupId(?int $examinerGroupId): self |
|
106
|
|
|
{ |
|
107
|
|
|
$this->examinerGroupId = $examinerGroupId; |
|
108
|
|
|
|
|
109
|
|
|
return $this; |
|
110
|
|
|
} |
|
111
|
|
|
|
|
112
|
|
|
public function getTotalScore(): ?int |
|
113
|
|
|
{ |
|
114
|
|
|
return $this->totalScore; |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
public function setTotalScore(?int $totalScore): self |
|
118
|
|
|
{ |
|
119
|
|
|
$this->totalScore = $totalScore; |
|
120
|
|
|
|
|
121
|
|
|
return $this; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
public function getMaximumScore(): ?int |
|
125
|
|
|
{ |
|
126
|
|
|
return $this->maximumScore; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
public function setMaximumScore(?int $maximumScore): self |
|
130
|
|
|
{ |
|
131
|
|
|
$this->maximumScore = $maximumScore; |
|
132
|
|
|
|
|
133
|
|
|
return $this; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
public function getDelivered(): ?bool |
|
137
|
|
|
{ |
|
138
|
|
|
return $this->delivered; |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
public function setDelivered(?bool $delivered): self |
|
142
|
|
|
{ |
|
143
|
|
|
$this->delivered = $delivered; |
|
144
|
|
|
|
|
145
|
|
|
return $this; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
public function getExaminerFolderId(): ?int |
|
149
|
|
|
{ |
|
150
|
|
|
return $this->examinerFolderId; |
|
151
|
|
|
} |
|
152
|
|
|
|
|
153
|
|
|
public function setExaminerFolderId(?int $examinerFolderId): self |
|
154
|
|
|
{ |
|
155
|
|
|
$this->examinerFolderId = $examinerFolderId; |
|
156
|
|
|
|
|
157
|
|
|
return $this; |
|
158
|
|
|
} |
|
159
|
|
|
|
|
160
|
|
|
public function getExaminerDocumentId(): ?int |
|
161
|
|
|
{ |
|
162
|
|
|
return $this->examinerDocumentId; |
|
163
|
|
|
} |
|
164
|
|
|
|
|
165
|
|
|
public function setExaminerDocumentId(?int $examinerDocumentId): self |
|
166
|
|
|
{ |
|
167
|
|
|
$this->examinerDocumentId = $examinerDocumentId; |
|
168
|
|
|
|
|
169
|
|
|
return $this; |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
public function getCompleted(): ?bool |
|
173
|
|
|
{ |
|
174
|
|
|
return $this->completed; |
|
175
|
|
|
} |
|
176
|
|
|
|
|
177
|
|
|
public function setCompleted(?bool $completed): self |
|
178
|
|
|
{ |
|
179
|
|
|
$this->completed = $completed; |
|
180
|
|
|
|
|
181
|
|
|
return $this; |
|
182
|
|
|
} |
|
183
|
|
|
} |
|
184
|
|
|
|