<?phpnamespace App\Core\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Core\Repository\SolicitudAsignacionRepository") */class SolicitudAsignacion{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Core\Entity\User") * @ORM\JoinColumn(nullable=true) */ private $usuario; /** * @ORM\ManyToOne(targetEntity="App\Core\Entity\Curso", inversedBy="solicitudAsignaciones") * @ORM\JoinColumn(nullable=false) */ private $curso; /** * @ORM\Column(type="datetime") */ private $fecha; /** * @ORM\Column(type="integer") * 0: en espera * 1: aceptado * 2: rechazado */ private $estado; /** * @ORM\Column(type="integer") * 1: Estudiante a curso * 2: Curso a estudiante existente * 3: Curso a estudiante no existente * 4: Curso a maestro existente * 5: Curso a maestro no existente */ private $tipo; /** * @ORM\Column(type="string", length=180, nullable=true) * Necesario cuando el tipo es 3 o 5. Es decir, el usuario no existe. Se usa para que al * momento de registrarse se vea si hay invitaciones con ese correo */ private $email; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $nombre; public function getId(): ?int { return $this->id; } public function getUsuario(): ?User { return $this->usuario; } public function setUsuario(?User $usuario): self { $this->usuario = $usuario; return $this; } public function getCurso(): ?Curso { return $this->curso; } public function setCurso(?Curso $curso): self { $this->curso = $curso; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(\DateTimeInterface $fecha): self { $this->fecha = $fecha; return $this; } public function getEstado(): ?int { return $this->estado; } public function setEstado(int $estado): self { $this->estado = $estado; return $this; } public function getTipo(): ?int { return $this->tipo; } public function setTipo(int $tipo): self { $this->tipo = $tipo; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(?string $nombre): self { $this->nombre = $nombre; return $this; }}