src/Entity/DefinitiveExclusion.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DefinitiveExclusionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassDefinitiveExclusionRepository::class)]
  7. class DefinitiveExclusion
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\OneToOne(inversedBy'definitiveExclusion'cascade: ['persist''remove'])]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?Student $student null;
  16.     #[ORM\ManyToOne(inversedBy'definitiveExclusions')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?School $school null;
  19.     #[ORM\ManyToOne(inversedBy'definitiveExclusions')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?SchoolYear $year null;
  22.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  23.     private ?string $details 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 getDetails(): ?string
  56.     {
  57.         return $this->details;
  58.     }
  59.     public function setDetails(?string $details): static
  60.     {
  61.         $this->details $details;
  62.         return $this;
  63.     }
  64. }