<?php
namespace App\Core\Entity;
use App\Core\Repository\EstudianteCursoRolRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EstudianteCursoRolRepository::class)
*/
class EstudianteCursoRol
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Estudiante::class, inversedBy="estudianteCursoRols")
*/
private $estudiante;
/**
* @ORM\ManyToOne(targetEntity=Curso::class, inversedBy="estudianteCursoRols")
*/
private $curso;
/**
* @ORM\ManyToOne(targetEntity=Rol::class, inversedBy="estudianteCursoRols")
*/
private $rol;
public function getId(): ?int
{
return $this->id;
}
public function getEstudiante(): ?Estudiante
{
return $this->estudiante;
}
public function setEstudiante(?Estudiante $estudiante): self
{
$this->estudiante = $estudiante;
return $this;
}
public function getCurso(): ?Curso
{
return $this->curso;
}
public function setCurso(?Curso $curso): self
{
$this->curso = $curso;
return $this;
}
public function getRol(): ?Rol
{
return $this->rol;
}
public function setRol(?Rol $rol): self
{
$this->rol = $rol;
return $this;
}
}