<?php
namespace App\Core\Entity;
use App\Core\Entity\Estudiante;
use App\Asistencia\Entity\Clase;
use App\Core\Repository\PuntuacionClaseRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Core\EventListener\PuntuacionClaseAgregada;
/**
* @ORM\Entity(repositoryClass=PuntuacionClaseRepository::class)
*/
class PuntuacionClase
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=EstudianteCurso::class, inversedBy="puntuacionesClases")
* @ORM\JoinColumn(nullable=false)
*/
private $estudianteCurso;
/**
* @ORM\Column(type="integer")
*/
private $puntuacion;
/**
* @ORM\ManyToOne(targetEntity=Clase::class, inversedBy="puntuaciones")
* @ORM\JoinColumn(nullable=false)
*/
private $clase;
public function getId(): ?int
{
return $this->id;
}
public function getEstudianteCurso(): ?EstudianteCurso
{
return $this->estudianteCurso;
}
public function setEstudianteCurso(?EstudianteCurso $estudianteCurso): self
{
$this->estudianteCurso = $estudianteCurso;
return $this;
}
public function getPuntuacion(): ?int
{
return $this->puntuacion;
}
public function setPuntuacion(int $puntuacion): self
{
$this->puntuacion = $puntuacion;
return $this;
}
public function getClase(): ?Clase
{
return $this->clase;
}
public function setClase(?Clase $clase): self
{
$this->clase = $clase;
return $this;
}
}