|
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
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* CPeerAssessmentCorrectionCriteria. |
|
13
|
|
|
*/ |
|
14
|
|
|
#[ORM\Table(name: 'c_peer_assessment_correction_criteria')] |
|
15
|
|
|
#[ORM\Entity] |
|
16
|
|
|
class CPeerAssessmentCorrectionCriteria |
|
17
|
|
|
{ |
|
18
|
|
|
#[ORM\Id] |
|
19
|
|
|
#[ORM\GeneratedValue] |
|
20
|
|
|
#[ORM\Column(type: 'integer')] |
|
21
|
|
|
protected ?int $id = null; |
|
22
|
|
|
|
|
23
|
|
|
#[ORM\ManyToOne(targetEntity: CPeerAssessmentCorrection::class)] |
|
24
|
|
|
#[ORM\JoinColumn(name: 'peer_assessment_correction_id', referencedColumnName: 'id', nullable: true, onDelete: 'CASCADE')] |
|
25
|
|
|
protected ?CPeerAssessmentCorrection $peerAssessmentCorrection = null; |
|
26
|
|
|
|
|
27
|
|
|
#[ORM\ManyToOne(targetEntity: CPeerAssessmentCriteria::class)] |
|
28
|
|
|
#[ORM\JoinColumn(name: 'peer_assessment_criteria_id', referencedColumnName: 'id', nullable: true, onDelete: 'CASCADE')] |
|
29
|
|
|
protected ?CPeerAssessmentCriteria $peerAssessmentCriteria = null; |
|
30
|
|
|
|
|
31
|
|
|
#[ORM\Column(type: 'text', nullable: true)] |
|
32
|
|
|
protected ?string $comment = null; |
|
33
|
|
|
|
|
34
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
35
|
|
|
protected ?int $score = null; |
|
36
|
|
|
|
|
37
|
|
|
public function __construct() {} |
|
38
|
|
|
|
|
39
|
|
|
public function getId(): ?int |
|
40
|
|
|
{ |
|
41
|
|
|
return $this->id; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
public function getPeerAssessmentCorrection(): ?CPeerAssessmentCorrection |
|
45
|
|
|
{ |
|
46
|
|
|
return $this->peerAssessmentCorrection; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
public function setPeerAssessmentCorrection(?CPeerAssessmentCorrection $peerAssessmentCorrection): self |
|
50
|
|
|
{ |
|
51
|
|
|
$this->peerAssessmentCorrection = $peerAssessmentCorrection; |
|
52
|
|
|
|
|
53
|
|
|
return $this; |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
public function getPeerAssessmentCriteria(): ?CPeerAssessmentCriteria |
|
57
|
|
|
{ |
|
58
|
|
|
return $this->peerAssessmentCriteria; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
public function setPeerAssessmentCriteria(?CPeerAssessmentCriteria $peerAssessmentCriteria): self |
|
62
|
|
|
{ |
|
63
|
|
|
$this->peerAssessmentCriteria = $peerAssessmentCriteria; |
|
64
|
|
|
|
|
65
|
|
|
return $this; |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
public function getComment(): ?string |
|
69
|
|
|
{ |
|
70
|
|
|
return $this->comment; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
public function setComment(?string $comment): self |
|
74
|
|
|
{ |
|
75
|
|
|
$this->comment = $comment; |
|
76
|
|
|
|
|
77
|
|
|
return $this; |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
public function getScore(): ?int |
|
81
|
|
|
{ |
|
82
|
|
|
return $this->score; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
public function setScore(?int $score): self |
|
86
|
|
|
{ |
|
87
|
|
|
$this->score = $score; |
|
88
|
|
|
|
|
89
|
|
|
return $this; |
|
90
|
|
|
} |
|
91
|
|
|
} |
|
92
|
|
|
|