src/Entity/WarningExlusionConfig.php line 9

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