src/Core/Entity/PuntuacionCurso.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use App\Core\Entity\Curso;
  4. use App\Core\Entity\Estudiante;
  5. use App\Core\Repository\PuntuacionCursoRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Core\EventListener\PuntuacionCursoAgregada;
  8. /**
  9. * @ORM\Entity(repositoryClass=PuntuacionCursoRepository::class)
  10. */
  11. class PuntuacionCurso
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\ManyToOne(targetEntity=Estudiante::class)
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. private $estudiante;
  24. /**
  25. * @ORM\ManyToOne(targetEntity=Curso::class, inversedBy="puntuacionesCurso")
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private $curso;
  29. /**
  30. * @ORM\Column(type="integer")
  31. */
  32. private $puntuacion;
  33. public function getId(): ?int
  34. {
  35. return $this->id;
  36. }
  37. public function getEstudiante(): ?Estudiante
  38. {
  39. return $this->estudiante;
  40. }
  41. public function setEstudiante(?Estudiante $estudiante): self
  42. {
  43. $this->estudiante = $estudiante;
  44. return $this;
  45. }
  46. public function getCurso(): ?Curso
  47. {
  48. return $this->curso;
  49. }
  50. public function setCurso(?Curso $curso): self
  51. {
  52. $this->curso = $curso;
  53. return $this;
  54. }
  55. public function getPuntuacion(): ?int
  56. {
  57. return $this->puntuacion;
  58. }
  59. public function setPuntuacion(int $puntuacion): self
  60. {
  61. $this->puntuacion = $puntuacion;
  62. return $this;
  63. }
  64. }