| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 22 | class CStudentPublicationRelUser |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @ORM\Column(name="iid", type="integer") |
||
| 26 | * @ORM\Id |
||
| 27 | * @ORM\GeneratedValue |
||
| 28 | */ |
||
| 29 | protected int $iid; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\ManyToOne(targetEntity="CStudentPublication") |
||
| 33 | * @ORM\JoinColumn(name="work_id", referencedColumnName="iid", onDelete="CASCADE") |
||
| 34 | */ |
||
| 35 | protected CStudentPublication $publication; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User") |
||
| 39 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 40 | */ |
||
| 41 | protected User $user; |
||
| 42 | |||
| 43 | public function getPublication(): CStudentPublication |
||
| 46 | } |
||
| 47 | |||
| 48 | public function setPublication(CStudentPublication $publication): self |
||
| 49 | { |
||
| 50 | $this->publication = $publication; |
||
| 51 | |||
| 52 | return $this; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getUser(): User |
||
| 56 | { |
||
| 57 | return $this->user; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function setUser(User $user): self |
||
| 65 | } |
||
| 66 | } |
||
| 67 |