<?php
namespace App\Entity;
use App\Core\Entity\Estudiante;
use App\Repository\FichaEstudiantilRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FichaEstudiantilRepository::class)
*/
class FichaEstudiantil
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_completo_papa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email_papa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombre_completo_mama;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email_mama;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $direccion_papa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $direccion_mama;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telefono_papa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telefono_mama;
/**
* @ORM\OneToOne(targetEntity=Estudiante::class, inversedBy="fichaEstudiantil", cascade={"persist", "remove"})
*/
private $estudiante;
/**
* @ORM\ManyToMany(targetEntity=OtrosContactosEmergencia::class, mappedBy="ficha", cascade={"persist", "remove"}, orphanRemoval=true)
*/
private $otrosContactosEmergencias;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $hobbies;
public function __construct()
{
$this->otrosContactosEmergencias = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getNombreCompletoPapa(): ?string
{
return $this->nombre_completo_papa;
}
public function setNombreCompletoPapa(?string $nombre_completo_papa): self
{
$this->nombre_completo_papa = $nombre_completo_papa;
return $this;
}
public function getEmailPapa(): ?string
{
return $this->email_papa;
}
public function setEmailPapa(?string $email_papa): self
{
$this->email_papa = $email_papa;
return $this;
}
public function getNombreCompletoMama(): ?string
{
return $this->nombre_completo_mama;
}
public function setNombreCompletoMama(?string $nombre_completo_mama): self
{
$this->nombre_completo_mama = $nombre_completo_mama;
return $this;
}
public function getEmailMama(): ?string
{
return $this->email_mama;
}
public function setEmailMama(?string $email_mama): self
{
$this->email_mama = $email_mama;
return $this;
}
public function getDireccionPapa(): ?string
{
return $this->direccion_papa;
}
public function setDireccionPapa(?string $direccion_papa): self
{
$this->direccion_papa = $direccion_papa;
return $this;
}
public function getDireccionMama(): ?string
{
return $this->direccion_mama;
}
public function setDireccionMama(?string $direccion_mama): self
{
$this->direccion_mama = $direccion_mama;
return $this;
}
public function getTelefonoPapa(): ?string
{
return $this->telefono_papa;
}
public function setTelefonoPapa(?string $telefono_papa): self
{
$this->telefono_papa = $telefono_papa;
return $this;
}
public function getTelefonoMama(): ?string
{
return $this->telefono_mama;
}
public function setTelefonoMama(?string $telefono_mama): self
{
$this->telefono_mama = $telefono_mama;
return $this;
}
public function getEstudiante(): ?Estudiante
{
return $this->estudiante;
}
public function setEstudiante(?Estudiante $estudiante): self
{
$this->estudiante = $estudiante;
return $this;
}
/**
* @return Collection<int, OtrosContactosEmergencia>
*/
public function getOtrosContactosEmergencias(): Collection
{
return $this->otrosContactosEmergencias;
}
public function addOtrosContactosEmergencia(OtrosContactosEmergencia $otrosContactosEmergencia): self
{
if (!$this->otrosContactosEmergencias->contains($otrosContactosEmergencia)) {
$this->otrosContactosEmergencias[] = $otrosContactosEmergencia;
$otrosContactosEmergencia->addFicha($this);
}
return $this;
}
public function removeOtrosContactosEmergencia(OtrosContactosEmergencia $otrosContactosEmergencia): self
{
if ($this->otrosContactosEmergencias->removeElement($otrosContactosEmergencia)) {
$otrosContactosEmergencia->removeFicha($this);
}
return $this;
}
public function getHobbies(): ?string
{
return $this->hobbies;
}
public function setHobbies(?string $hobbies): self
{
$this->hobbies = $hobbies;
return $this;
}
}