src/Core/Entity/SolicitudAsignacion.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Core\Repository\SolicitudAsignacionRepository")
  6. */
  7. class SolicitudAsignacion
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\ManyToOne(targetEntity="App\Core\Entity\User")
  17. * @ORM\JoinColumn(nullable=true)
  18. */
  19. private $usuario;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Core\Entity\Curso", inversedBy="solicitudAsignaciones")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $curso;
  25. /**
  26. * @ORM\Column(type="datetime")
  27. */
  28. private $fecha;
  29. /**
  30. * @ORM\Column(type="integer")
  31. * 0: en espera
  32. * 1: aceptado
  33. * 2: rechazado
  34. */
  35. private $estado;
  36. /**
  37. * @ORM\Column(type="integer")
  38. * 1: Estudiante a curso
  39. * 2: Curso a estudiante existente
  40. * 3: Curso a estudiante no existente
  41. * 4: Curso a maestro existente
  42. * 5: Curso a maestro no existente
  43. */
  44. private $tipo;
  45. /**
  46. * @ORM\Column(type="string", length=180, nullable=true)
  47. * Necesario cuando el tipo es 3 o 5. Es decir, el usuario no existe. Se usa para que al
  48. * momento de registrarse se vea si hay invitaciones con ese correo
  49. */
  50. private $email;
  51. /**
  52. * @ORM\Column(type="string", length=255, nullable=true)
  53. */
  54. private $nombre;
  55. public function getId(): ?int
  56. {
  57. return $this->id;
  58. }
  59. public function getUsuario(): ?User
  60. {
  61. return $this->usuario;
  62. }
  63. public function setUsuario(?User $usuario): self
  64. {
  65. $this->usuario = $usuario;
  66. return $this;
  67. }
  68. public function getCurso(): ?Curso
  69. {
  70. return $this->curso;
  71. }
  72. public function setCurso(?Curso $curso): self
  73. {
  74. $this->curso = $curso;
  75. return $this;
  76. }
  77. public function getFecha(): ?\DateTimeInterface
  78. {
  79. return $this->fecha;
  80. }
  81. public function setFecha(\DateTimeInterface $fecha): self
  82. {
  83. $this->fecha = $fecha;
  84. return $this;
  85. }
  86. public function getEstado(): ?int
  87. {
  88. return $this->estado;
  89. }
  90. public function setEstado(int $estado): self
  91. {
  92. $this->estado = $estado;
  93. return $this;
  94. }
  95. public function getTipo(): ?int
  96. {
  97. return $this->tipo;
  98. }
  99. public function setTipo(int $tipo): self
  100. {
  101. $this->tipo = $tipo;
  102. return $this;
  103. }
  104. public function getEmail(): ?string
  105. {
  106. return $this->email;
  107. }
  108. public function setEmail(string $email): self
  109. {
  110. $this->email = $email;
  111. return $this;
  112. }
  113. public function getNombre(): ?string
  114. {
  115. return $this->nombre;
  116. }
  117. public function setNombre(?string $nombre): self
  118. {
  119. $this->nombre = $nombre;
  120. return $this;
  121. }
  122. }