src/Asistencia/Entity/Logro.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Asistencia\Entity;
  3. use App\Core\Entity\EstudianteCurso;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass="App\Asistencia\Repository\LogroRepository")
  7. */
  8. class Logro
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=200)
  18. */
  19. private $descripcion;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Core\Entity\EstudianteCurso", inversedBy="logros")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $estudianteCurso;
  25. /**
  26. * @ORM\Column(type="datetime")
  27. */
  28. private $fecha;
  29. /**
  30. * @ORM\ManyToOne(targetEntity="App\Asistencia\Entity\Clase")
  31. * @ORM\JoinColumn(nullable=false)
  32. */
  33. private $claseEntregado;
  34. /**
  35. * @ORM\Column(type="string", length=25, nullable=true)
  36. */
  37. private $tipoMedalla;
  38. /**
  39. * @ORM\Column(type="string", length=10, nullable=true)
  40. */
  41. private $colorMedalla;
  42. public function getId(): ?int
  43. {
  44. return $this->id;
  45. }
  46. public function getDescripcion(): ?string
  47. {
  48. return $this->descripcion;
  49. }
  50. public function setDescripcion(string $descripcion): self
  51. {
  52. $this->descripcion = $descripcion;
  53. return $this;
  54. }
  55. public function getEstudianteCurso(): ?EstudianteCurso
  56. {
  57. return $this->estudianteCurso;
  58. }
  59. public function setEstudianteCurso(?EstudianteCurso $estudianteCurso): self
  60. {
  61. $this->estudianteCurso = $estudianteCurso;
  62. return $this;
  63. }
  64. public function getFecha(): ?\DateTimeInterface
  65. {
  66. return $this->fecha;
  67. }
  68. public function setFecha(\DateTimeInterface $fecha): self
  69. {
  70. $this->fecha = $fecha;
  71. return $this;
  72. }
  73. public function getClaseEntregado(): ?Clase
  74. {
  75. return $this->claseEntregado;
  76. }
  77. public function setClaseEntregado(?Clase $clase): self
  78. {
  79. $this->claseEntregado = $clase;
  80. return $this;
  81. }
  82. public function getTipoMedalla(): ?string
  83. {
  84. return $this->tipoMedalla;
  85. }
  86. public function setTipoMedalla(string $tipoMedalla): self
  87. {
  88. $this->tipoMedalla = $tipoMedalla;
  89. return $this;
  90. }
  91. public function getColorMedalla(): ?string
  92. {
  93. return $this->colorMedalla;
  94. }
  95. public function setColorMedalla(string $colorMedalla): self
  96. {
  97. $this->colorMedalla = $colorMedalla;
  98. return $this;
  99. }
  100. }