|
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
|
|
|
* CPeerAssessmentCriteria. |
|
13
|
|
|
*/ |
|
14
|
|
|
#[ORM\Table(name: 'c_peer_assessment_criteria')] |
|
15
|
|
|
#[ORM\Entity] |
|
16
|
|
|
class CPeerAssessmentCriteria |
|
17
|
|
|
{ |
|
18
|
|
|
#[ORM\Id] |
|
19
|
|
|
#[ORM\GeneratedValue] |
|
20
|
|
|
#[ORM\Column(type: 'integer')] |
|
21
|
|
|
protected ?int $id = null; |
|
22
|
|
|
|
|
23
|
|
|
#[ORM\ManyToOne(targetEntity: CPeerAssessment::class)] |
|
24
|
|
|
#[ORM\JoinColumn(name: 'peer_assessment_id', referencedColumnName: 'id', nullable: true, onDelete: 'CASCADE')] |
|
25
|
|
|
protected ?CPeerAssessment $peerAssessment = null; |
|
26
|
|
|
|
|
27
|
|
|
#[ORM\Column(type: 'string', length: 255, nullable: true)] |
|
28
|
|
|
protected ?string $title = null; |
|
29
|
|
|
|
|
30
|
|
|
#[ORM\Column(type: 'text', nullable: true)] |
|
31
|
|
|
protected ?string $description = null; |
|
32
|
|
|
|
|
33
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
34
|
|
|
protected ?int $score = null; |
|
35
|
|
|
|
|
36
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
|
37
|
|
|
protected ?int $position = null; |
|
38
|
|
|
|
|
39
|
|
|
|
|
40
|
|
|
public function __construct() {} |
|
41
|
|
|
|
|
42
|
|
|
public function getId(): ?int |
|
43
|
|
|
{ |
|
44
|
|
|
return $this->id; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function getPeerAssessment(): ?CPeerAssessment |
|
48
|
|
|
{ |
|
49
|
|
|
return $this->peerAssessment; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public function setPeerAssessment(?CPeerAssessment $peerAssessment): self |
|
53
|
|
|
{ |
|
54
|
|
|
$this->peerAssessment = $peerAssessment; |
|
55
|
|
|
|
|
56
|
|
|
return $this; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
public function getTitle(): ?string |
|
60
|
|
|
{ |
|
61
|
|
|
return $this->title; |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
public function setTitle(?string $title): self |
|
65
|
|
|
{ |
|
66
|
|
|
$this->title = $title; |
|
67
|
|
|
|
|
68
|
|
|
return $this; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
public function getDescription(): ?string |
|
72
|
|
|
{ |
|
73
|
|
|
return $this->description; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
public function setDescription(?string $description): self |
|
77
|
|
|
{ |
|
78
|
|
|
$this->description = $description; |
|
79
|
|
|
|
|
80
|
|
|
return $this; |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
public function getScore(): ?int |
|
84
|
|
|
{ |
|
85
|
|
|
return $this->score; |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
public function setScore(?int $score): self |
|
89
|
|
|
{ |
|
90
|
|
|
$this->score = $score; |
|
91
|
|
|
|
|
92
|
|
|
return $this; |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
public function getPosition(): ?int |
|
96
|
|
|
{ |
|
97
|
|
|
return $this->position; |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
public function setPosition(?int $position): self |
|
101
|
|
|
{ |
|
102
|
|
|
$this->position = $position; |
|
103
|
|
|
|
|
104
|
|
|
return $this; |
|
105
|
|
|
} |
|
106
|
|
|
} |
|
107
|
|
|
|