src/Entity/FichaEstudiantil.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Core\Entity\Estudiante;
  4. use App\Repository\FichaEstudiantilRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass=FichaEstudiantilRepository::class)
  10. */
  11. class FichaEstudiantil
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=255, nullable=true)
  21. */
  22. private $nombre_completo_papa;
  23. /**
  24. * @ORM\Column(type="string", length=255, nullable=true)
  25. */
  26. private $email_papa;
  27. /**
  28. * @ORM\Column(type="string", length=255, nullable=true)
  29. */
  30. private $nombre_completo_mama;
  31. /**
  32. * @ORM\Column(type="string", length=255, nullable=true)
  33. */
  34. private $email_mama;
  35. /**
  36. * @ORM\Column(type="string", length=255, nullable=true)
  37. */
  38. private $direccion_papa;
  39. /**
  40. * @ORM\Column(type="string", length=255, nullable=true)
  41. */
  42. private $direccion_mama;
  43. /**
  44. * @ORM\Column(type="string", length=255, nullable=true)
  45. */
  46. private $telefono_papa;
  47. /**
  48. * @ORM\Column(type="string", length=255, nullable=true)
  49. */
  50. private $telefono_mama;
  51. /**
  52. * @ORM\OneToOne(targetEntity=Estudiante::class, inversedBy="fichaEstudiantil", cascade={"persist", "remove"})
  53. */
  54. private $estudiante;
  55. /**
  56. * @ORM\ManyToMany(targetEntity=OtrosContactosEmergencia::class, mappedBy="ficha", cascade={"persist", "remove"}, orphanRemoval=true)
  57. */
  58. private $otrosContactosEmergencias;
  59. /**
  60. * @ORM\Column(type="text", nullable=true)
  61. */
  62. private $hobbies;
  63. public function __construct()
  64. {
  65. $this->otrosContactosEmergencias = new ArrayCollection();
  66. }
  67. public function getId(): ?int
  68. {
  69. return $this->id;
  70. }
  71. public function getNombreCompletoPapa(): ?string
  72. {
  73. return $this->nombre_completo_papa;
  74. }
  75. public function setNombreCompletoPapa(?string $nombre_completo_papa): self
  76. {
  77. $this->nombre_completo_papa = $nombre_completo_papa;
  78. return $this;
  79. }
  80. public function getEmailPapa(): ?string
  81. {
  82. return $this->email_papa;
  83. }
  84. public function setEmailPapa(?string $email_papa): self
  85. {
  86. $this->email_papa = $email_papa;
  87. return $this;
  88. }
  89. public function getNombreCompletoMama(): ?string
  90. {
  91. return $this->nombre_completo_mama;
  92. }
  93. public function setNombreCompletoMama(?string $nombre_completo_mama): self
  94. {
  95. $this->nombre_completo_mama = $nombre_completo_mama;
  96. return $this;
  97. }
  98. public function getEmailMama(): ?string
  99. {
  100. return $this->email_mama;
  101. }
  102. public function setEmailMama(?string $email_mama): self
  103. {
  104. $this->email_mama = $email_mama;
  105. return $this;
  106. }
  107. public function getDireccionPapa(): ?string
  108. {
  109. return $this->direccion_papa;
  110. }
  111. public function setDireccionPapa(?string $direccion_papa): self
  112. {
  113. $this->direccion_papa = $direccion_papa;
  114. return $this;
  115. }
  116. public function getDireccionMama(): ?string
  117. {
  118. return $this->direccion_mama;
  119. }
  120. public function setDireccionMama(?string $direccion_mama): self
  121. {
  122. $this->direccion_mama = $direccion_mama;
  123. return $this;
  124. }
  125. public function getTelefonoPapa(): ?string
  126. {
  127. return $this->telefono_papa;
  128. }
  129. public function setTelefonoPapa(?string $telefono_papa): self
  130. {
  131. $this->telefono_papa = $telefono_papa;
  132. return $this;
  133. }
  134. public function getTelefonoMama(): ?string
  135. {
  136. return $this->telefono_mama;
  137. }
  138. public function setTelefonoMama(?string $telefono_mama): self
  139. {
  140. $this->telefono_mama = $telefono_mama;
  141. return $this;
  142. }
  143. public function getEstudiante(): ?Estudiante
  144. {
  145. return $this->estudiante;
  146. }
  147. public function setEstudiante(?Estudiante $estudiante): self
  148. {
  149. $this->estudiante = $estudiante;
  150. return $this;
  151. }
  152. /**
  153. * @return Collection<int, OtrosContactosEmergencia>
  154. */
  155. public function getOtrosContactosEmergencias(): Collection
  156. {
  157. return $this->otrosContactosEmergencias;
  158. }
  159. public function addOtrosContactosEmergencia(OtrosContactosEmergencia $otrosContactosEmergencia): self
  160. {
  161. if (!$this->otrosContactosEmergencias->contains($otrosContactosEmergencia)) {
  162. $this->otrosContactosEmergencias[] = $otrosContactosEmergencia;
  163. $otrosContactosEmergencia->addFicha($this);
  164. }
  165. return $this;
  166. }
  167. public function removeOtrosContactosEmergencia(OtrosContactosEmergencia $otrosContactosEmergencia): self
  168. {
  169. if ($this->otrosContactosEmergencias->removeElement($otrosContactosEmergencia)) {
  170. $otrosContactosEmergencia->removeFicha($this);
  171. }
  172. return $this;
  173. }
  174. public function getHobbies(): ?string
  175. {
  176. return $this->hobbies;
  177. }
  178. public function setHobbies(?string $hobbies): self
  179. {
  180. $this->hobbies = $hobbies;
  181. return $this;
  182. }
  183. }