| Total Complexity | 7 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class GradebookResultAttempt |
||
| 19 | { |
||
| 20 | use TimestampableEntity; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @ORM\Column(name="id", type="integer") |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | */ |
||
| 27 | protected int $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @ORM\Column(name="comment", type="text", nullable=true) |
||
| 31 | */ |
||
| 32 | protected ?string $comment = null; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @ORM\Column(name="score", type="float", nullable=true) |
||
| 36 | */ |
||
| 37 | protected ?float $score = null; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\GradebookResult") |
||
| 41 | * @ORM\JoinColumn(name="result_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 42 | */ |
||
| 43 | protected GradebookResult $result; |
||
| 44 | |||
| 45 | public function getId(): int |
||
| 46 | { |
||
| 47 | return $this->id; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getComment(): ?string |
||
| 51 | { |
||
| 52 | return $this->comment; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function setComment(?string $comment): self |
||
| 56 | { |
||
| 57 | $this->comment = $comment; |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getScore(): ?float |
||
| 65 | } |
||
| 66 | |||
| 67 | public function setScore(?float $score): self |
||
| 72 | } |
||
| 73 | |||
| 74 | public function getResult(): GradebookResult |
||
| 77 | } |
||
| 78 | |||
| 79 | public function setResult(GradebookResult $result): self |
||
| 84 | } |
||
| 85 | } |
||
| 86 |