src/Entity/AbsenceExclusionConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbsenceExclusionConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsenceExclusionConfigRepository::class)]
  6. class AbsenceExclusionConfig
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(nullabletrue)]
  13.     private ?int $start null;
  14.     #[ORM\Column(nullabletrue)]
  15.     private ?int $end null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?int $dayForInterval null;
  18.     #[ORM\ManyToOne(inversedBy'absenceExclusionConfigs')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?School $school null;
  21.     #[ORM\ManyToOne(inversedBy'absenceExclusionConfigs')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?SchoolYear $year null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?int $day null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?int $absence null;
  28.     #[ORM\ManyToOne(inversedBy'absenceExclusionConfigs')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private ?User $author null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getStart(): ?int
  36.     {
  37.         return $this->start;
  38.     }
  39.     public function setStart(?int $start): static
  40.     {
  41.         $this->start $start;
  42.         return $this;
  43.     }
  44.     public function getEnd(): ?int
  45.     {
  46.         return $this->end;
  47.     }
  48.     public function setEnd(?int $end): static
  49.     {
  50.         $this->end $end;
  51.         return $this;
  52.     }
  53.     public function getDayForInterval(): ?int
  54.     {
  55.         return $this->dayForInterval;
  56.     }
  57.     public function setDayForInterval(?int $dayForInterval): static
  58.     {
  59.         $this->dayForInterval $dayForInterval;
  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 getDay(): ?int
  81.     {
  82.         return $this->day;
  83.     }
  84.     public function setDay(?int $day): static
  85.     {
  86.         $this->day $day;
  87.         return $this;
  88.     }
  89.     public function getAbsence(): ?int
  90.     {
  91.         return $this->absence;
  92.     }
  93.     public function setAbsence(?int $absence): static
  94.     {
  95.         $this->absence $absence;
  96.         return $this;
  97.     }
  98.     public function getAuthor(): ?User
  99.     {
  100.         return $this->author;
  101.     }
  102.     public function setAuthor(?User $author): static
  103.     {
  104.         $this->author $author;
  105.         return $this;
  106.     }
  107. }