<?php
namespace App\Core\Entity;
use App\Core\Entity\Estudiante;
use App\Core\Entity\Maestro;
use App\Core\Repository\PuntuacionEstudianteRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Core\EventListener\PuntuacionEstudianteAgregada;
/**
* @ORM\Entity(repositoryClass=PuntuacionEstudianteRepository::class)
*/
class PuntuacionEstudiante
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Estudiante::class, inversedBy="puntuaciones")
* @ORM\JoinColumn(nullable=false)
*/
private $estudiante;
/**
* @ORM\ManyToOne(targetEntity=Maestro::class)
* @ORM\JoinColumn(nullable=false)
*/
private $maestro;
/**
* @ORM\Column(type="integer")
*/
private $puntuacion;
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 getMaestro(): ?Maestro
{
return $this->maestro;
}
public function setMaestro(?Maestro $maestro): self
{
$this->maestro = $maestro;
return $this;
}
public function getPuntuacion(): ?int
{
return $this->puntuacion;
}
public function setPuntuacion(int $puntuacion): self
{
$this->puntuacion = $puntuacion;
return $this;
}
}