src/Entity/Warning.php line 9

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