src/Entity/Retained.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RetainedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRetainedRepository::class)]
  6. class Retained
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'retaineds')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Student $student null;
  15.     #[ORM\ManyToOne(inversedBy'retaineds')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Exams $exam null;
  18.     #[ORM\ManyToOne(inversedBy'retaineds')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?School $school null;
  21.     #[ORM\ManyToOne(inversedBy'retaineds')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?SchoolYear $year null;
  24.     #[ORM\ManyToOne(inversedBy'retaineds')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private ?TheClass $classe null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getStudent(): ?Student
  32.     {
  33.         return $this->student;
  34.     }
  35.     public function setStudent(?Student $student): static
  36.     {
  37.         $this->student $student;
  38.         return $this;
  39.     }
  40.     public function getExam(): ?Exams
  41.     {
  42.         return $this->exam;
  43.     }
  44.     public function setExam(?Exams $exam): static
  45.     {
  46.         $this->exam $exam;
  47.         return $this;
  48.     }
  49.     public function getSchool(): ?School
  50.     {
  51.         return $this->school;
  52.     }
  53.     public function setSchool(?School $school): static
  54.     {
  55.         $this->school $school;
  56.         return $this;
  57.     }
  58.     public function getYear(): ?SchoolYear
  59.     {
  60.         return $this->year;
  61.     }
  62.     public function setYear(?SchoolYear $year): static
  63.     {
  64.         $this->year $year;
  65.         return $this;
  66.     }
  67.     public function getClasse(): ?TheClass
  68.     {
  69.         return $this->classe;
  70.     }
  71.     public function setClasse(?TheClass $classe): static
  72.     {
  73.         $this->classe $classe;
  74.         return $this;
  75.     }
  76. }