src/Core/Entity/PuntuacionMaestro.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use App\Core\Entity\Estudiante;
  4. use App\Core\Entity\Maestro;
  5. use App\Core\Repository\PuntuacionMaestroRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Core\EventListener\PuntuacionMaestroAgregada;
  8. /**
  9. * @ORM\Entity(repositoryClass=PuntuacionMaestroRepository::class)
  10. */
  11. class PuntuacionMaestro
  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=Maestro::class, inversedBy="puntuacionesMaestro")
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private $maestro;
  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 getMaestro(): ?Maestro
  47. {
  48. return $this->maestro;
  49. }
  50. public function setMaestro(?Maestro $maestro): self
  51. {
  52. $this->maestro = $maestro;
  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. }