<?php
namespace App\Entity;
use App\Repository\RetainedRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RetainedRepository::class)]
class Retained
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'retaineds')]
#[ORM\JoinColumn(nullable: false)]
private ?Student $student = null;
#[ORM\ManyToOne(inversedBy: 'retaineds')]
#[ORM\JoinColumn(nullable: false)]
private ?Exams $exam = null;
#[ORM\ManyToOne(inversedBy: 'retaineds')]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
#[ORM\ManyToOne(inversedBy: 'retaineds')]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
#[ORM\ManyToOne(inversedBy: 'retaineds')]
#[ORM\JoinColumn(nullable: false)]
private ?TheClass $classe = null;
public function getId(): ?int
{
return $this->id;
}
public function getStudent(): ?Student
{
return $this->student;
}
public function setStudent(?Student $student): static
{
$this->student = $student;
return $this;
}
public function getExam(): ?Exams
{
return $this->exam;
}
public function setExam(?Exams $exam): static
{
$this->exam = $exam;
return $this;
}
public function getSchool(): ?School
{
return $this->school;
}
public function setSchool(?School $school): static
{
$this->school = $school;
return $this;
}
public function getYear(): ?SchoolYear
{
return $this->year;
}
public function setYear(?SchoolYear $year): static
{
$this->year = $year;
return $this;
}
public function getClasse(): ?TheClass
{
return $this->classe;
}
public function setClasse(?TheClass $classe): static
{
$this->classe = $classe;
return $this;
}
}