src/Entity/DisciplinePunish.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DisciplinePunishRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDisciplinePunishRepository::class)]
  6. class DisciplinePunish
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Student $student null;
  15.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?SchoolYear $year null;
  18.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?School $school null;
  21.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?TheClass $classe null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $origin null;
  26.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?Exams $exam null;
  29.     #[ORM\ManyToOne(inversedBy'disciplinePunishes')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?Quarter $quarter null;
  32.     #[ORM\Column]
  33.     private ?int $status null;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getStudent(): ?Student
  39.     {
  40.         return $this->student;
  41.     }
  42.     public function setStudent(?Student $student): static
  43.     {
  44.         $this->student $student;
  45.         return $this;
  46.     }
  47.     public function getYear(): ?SchoolYear
  48.     {
  49.         return $this->year;
  50.     }
  51.     public function setYear(?SchoolYear $year): static
  52.     {
  53.         $this->year $year;
  54.         return $this;
  55.     }
  56.     public function getSchool(): ?School
  57.     {
  58.         return $this->school;
  59.     }
  60.     public function setSchool(?School $school): static
  61.     {
  62.         $this->school $school;
  63.         return $this;
  64.     }
  65.     public function getClasse(): ?TheClass
  66.     {
  67.         return $this->classe;
  68.     }
  69.     public function setClasse(?TheClass $classe): static
  70.     {
  71.         $this->classe $classe;
  72.         return $this;
  73.     }
  74.     public function getOrigin(): ?string
  75.     {
  76.         return $this->origin;
  77.     }
  78.     public function setOrigin(?string $origin): static
  79.     {
  80.         $this->origin $origin;
  81.         return $this;
  82.     }
  83.     public function getExam(): ?Exams
  84.     {
  85.         return $this->exam;
  86.     }
  87.     public function setExam(?Exams $exam): static
  88.     {
  89.         $this->exam $exam;
  90.         return $this;
  91.     }
  92.     public function getQuarter(): ?Quarter
  93.     {
  94.         return $this->quarter;
  95.     }
  96.     public function setQuarter(?Quarter $quarter): static
  97.     {
  98.         $this->quarter $quarter;
  99.         return $this;
  100.     }
  101.     public function getStatus(): ?int
  102.     {
  103.         return $this->status;
  104.     }
  105.     public function setStatus(int $status): static
  106.     {
  107.         $this->status $status;
  108.         return $this;
  109.     }
  110. }