| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class CStudentPublicationRelDocument |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @ORM\Column(name="iid", type="integer") |
||
| 25 | * @ORM\Id |
||
| 26 | * @ORM\GeneratedValue |
||
| 27 | */ |
||
| 28 | protected int $iid; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\ManyToOne(targetEntity="CStudentPublication") |
||
| 32 | * @ORM\JoinColumn(name="work_id", referencedColumnName="iid", onDelete="CASCADE") |
||
| 33 | */ |
||
| 34 | protected CStudentPublication $publication; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CDocument") |
||
| 38 | * @ORM\JoinColumn(name="document_id", referencedColumnName="iid", onDelete="CASCADE") |
||
| 39 | */ |
||
| 40 | protected CDocument $document; |
||
| 41 | |||
| 42 | public function getPublication(): CStudentPublication |
||
| 43 | { |
||
| 44 | return $this->publication; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function setPublication(CStudentPublication $publication): self |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getDocument(): CDocument |
||
| 55 | { |
||
| 56 | return $this->document; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function setDocument(CDocument $document): self |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return int |
||
| 68 | */ |
||
| 69 | public function getIid() |
||
| 74 |