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
|
|
|
* CPeerAssessmentRelStudentPublication. |
13
|
|
|
*/ |
14
|
|
|
#[ORM\Table(name: 'c_peer_assessment_rel_student_publication')] |
15
|
|
|
#[ORM\Entity] |
16
|
|
|
class CPeerAssessmentRelStudentPublication |
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\ManyToOne(targetEntity: CStudentPublication::class)] |
28
|
|
|
#[ORM\JoinColumn(name: 'student_publication_id', referencedColumnName: 'iid', nullable: true, onDelete: 'CASCADE')] |
29
|
|
|
protected ?CStudentPublication $studentPublication = null; |
30
|
|
|
|
31
|
|
|
#[ORM\ManyToOne(targetEntity: CGroup::class)] |
32
|
|
|
#[ORM\JoinColumn(name: 'group_id', referencedColumnName: 'iid', nullable: true, onDelete: 'CASCADE')] |
33
|
|
|
protected ?CGroup $group = null; |
34
|
|
|
|
35
|
|
|
#[ORM\Column(type: 'integer', nullable: true)] |
36
|
|
|
protected ?int $studentPublicationFolderId = null; |
37
|
|
|
|
38
|
|
|
public function __construct() {} |
39
|
|
|
|
40
|
|
|
public function getId(): ?int |
41
|
|
|
{ |
42
|
|
|
return $this->id; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
public function getPeerAssessment(): ?CPeerAssessment |
46
|
|
|
{ |
47
|
|
|
return $this->peerAssessment; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
public function setPeerAssessment(?CPeerAssessment $peerAssessment): self |
51
|
|
|
{ |
52
|
|
|
$this->peerAssessment = $peerAssessment; |
53
|
|
|
|
54
|
|
|
return $this; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
public function getStudentPublication(): ?CStudentPublication |
58
|
|
|
{ |
59
|
|
|
return $this->studentPublication; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function setStudentPublication(?CStudentPublication $studentPublication): self |
63
|
|
|
{ |
64
|
|
|
$this->studentPublication = $studentPublication; |
65
|
|
|
|
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function getGroup(): ?CGroup |
70
|
|
|
{ |
71
|
|
|
return $this->group; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function setGroup(?CGroup $group): self |
75
|
|
|
{ |
76
|
|
|
$this->group = $group; |
77
|
|
|
|
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getStudentPublicationFolderId(): ?int |
82
|
|
|
{ |
83
|
|
|
return $this->studentPublicationFolderId; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function setStudentPublicationFolderId(?int $studentPublicationFolderId): self |
87
|
|
|
{ |
88
|
|
|
$this->studentPublicationFolderId = $studentPublicationFolderId; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
} |
93
|
|
|
|