| Total Complexity | 4 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class ClassUser |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | * |
||
| 22 | * @ORM\Column(name="class_id", type="integer") |
||
| 23 | * @ORM\Id |
||
| 24 | * @ORM\GeneratedValue(strategy="NONE") |
||
| 25 | */ |
||
| 26 | protected $classId; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="classUser") |
||
| 30 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 31 | */ |
||
| 32 | protected $user; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get user. |
||
| 36 | * |
||
| 37 | */ |
||
| 38 | public function getUser(): User |
||
| 39 | { |
||
| 40 | return $this->user; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Set user. |
||
| 45 | * |
||
| 46 | */ |
||
| 47 | public function setUser($user) |
||
| 48 | { |
||
| 49 | $this->user = $user; |
||
| 50 | |||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Set classId. |
||
| 56 | * |
||
| 57 | * @param int $classId |
||
| 58 | * |
||
| 59 | * @return ClassUser |
||
| 60 | */ |
||
| 61 | public function setClassId($classId) |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get classId. |
||
| 70 | * |
||
| 71 | * @return int |
||
| 72 | */ |
||
| 73 | public function getClassId() |
||
| 76 | } |
||
| 77 | } |
||
| 78 |