| Total Complexity | 6 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class CAttendanceResult |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | * |
||
| 25 | * @ORM\Column(name="iid", type="integer") |
||
| 26 | * @ORM\Id |
||
| 27 | * @ORM\GeneratedValue |
||
| 28 | */ |
||
| 29 | protected $iid; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User") |
||
| 33 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
||
| 34 | */ |
||
| 35 | protected User $user; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CAttendance") |
||
| 39 | * @ORM\JoinColumn(name="attendance_id", referencedColumnName="iid") |
||
| 40 | */ |
||
| 41 | protected CAttendance $attendance; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var int |
||
| 45 | * |
||
| 46 | * @ORM\Column(name="score", type="integer", nullable=false) |
||
| 47 | */ |
||
| 48 | protected $score; |
||
| 49 | |||
| 50 | public function getUser(): User |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return CAttendanceResult |
||
| 57 | */ |
||
| 58 | public function setUser(User $user): self |
||
| 59 | { |
||
| 60 | $this->user = $user; |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getAttendance(): CAttendance |
||
| 66 | { |
||
| 67 | return $this->attendance; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function setAttendance(CAttendance $attendance): self |
||
| 71 | { |
||
| 72 | $this->attendance = $attendance; |
||
| 73 | |||
| 74 | return $this; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Set score. |
||
| 79 | * |
||
| 80 | * @param int $score |
||
| 81 | */ |
||
| 82 | public function setScore($score): self |
||
| 83 | { |
||
| 84 | $this->score = $score; |
||
| 85 | |||
| 86 | return $this; |
||
| 87 | } |
||
| 88 | |||
| 89 | /** |
||
| 90 | * Get score. |
||
| 91 | * |
||
| 92 | * @return int |
||
| 93 | */ |
||
| 94 | public function getScore() |
||
| 97 | } |
||
| 98 | } |
||
| 99 |