src/Entity/AbsenceWarningConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbsenceWarningConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsenceWarningConfigRepository::class)]
  6. class AbsenceWarningConfig
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?int $start null;
  14.     #[ORM\Column]
  15.     private ?int $end null;
  16.     
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?int $number null;
  19.     #[ORM\ManyToOne(inversedBy'absenceWarningConfigs')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?School $school null;
  22.     #[ORM\ManyToOne(inversedBy'absenceWarningConfigs')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?SchoolYear $year null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $warning null;
  27.     #[ORM\ManyToOne(inversedBy'absenceWarningConfigs')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?User $author null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getStart(): ?int
  35.     {
  36.         return $this->start;
  37.     }
  38.     public function setStart(int $start): static
  39.     {
  40.         $this->start $start;
  41.         return $this;
  42.     }
  43.     public function getEnd(): ?int
  44.     {
  45.         return $this->end;
  46.     }
  47.     public function setEnd(int $end): static
  48.     {
  49.         $this->end $end;
  50.         return $this;
  51.     }
  52.     
  53.     public function getNumber(): ?int
  54.     {
  55.         return $this->number;
  56.     }
  57.     public function setNumber(int $number): static
  58.     {
  59.         $this->number $number;
  60.         return $this;
  61.     }
  62.     public function getSchool(): ?School
  63.     {
  64.         return $this->school;
  65.     }
  66.     public function setSchool(?School $school): static
  67.     {
  68.         $this->school $school;
  69.         return $this;
  70.     }
  71.     public function getYear(): ?SchoolYear
  72.     {
  73.         return $this->year;
  74.     }
  75.     public function setYear(?SchoolYear $year): static
  76.     {
  77.         $this->year $year;
  78.         return $this;
  79.     }
  80.     public function getWarning(): ?int
  81.     {
  82.         return $this->warning;
  83.     }
  84.     public function setWarning(int $warning): static
  85.     {
  86.         $this->warning $warning;
  87.         return $this;
  88.     }
  89.     public function getAuthor(): ?User
  90.     {
  91.         return $this->author;
  92.     }
  93.     public function setAuthor(?User $author): static
  94.     {
  95.         $this->author $author;
  96.         return $this;
  97.     }
  98. }