src/Entity/AbsenceBlameConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbsenceBlameConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsenceBlameConfigRepository::class)]
  6. class AbsenceBlameConfig
  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.     #[ORM\ManyToOne(inversedBy'absenceBlameConfigs')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?School $school null;
  19.     #[ORM\ManyToOne(inversedBy'absenceBlameConfigs')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?SchoolYear $year null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?int $absence null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?int $blame null;
  26.     #[ORM\ManyToOne(inversedBy'absenceBlameConfigs')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?User $author null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getStart(): ?int
  34.     {
  35.         return $this->start;
  36.     }
  37.     public function setStart(int $start): static
  38.     {
  39.         $this->start $start;
  40.         return $this;
  41.     }
  42.     public function getEnd(): ?int
  43.     {
  44.         return $this->end;
  45.     }
  46.     public function setEnd(int $end): static
  47.     {
  48.         $this->end $end;
  49.         return $this;
  50.     }
  51.     
  52.     public function getNumber(): ?int
  53.     {
  54.         return $this->number;
  55.     }
  56.     public function setNumber(int $number): static
  57.     {
  58.         $this->number $number;
  59.         return $this;
  60.     }
  61.     public function getSchool(): ?School
  62.     {
  63.         return $this->school;
  64.     }
  65.     public function setSchool(?School $school): static
  66.     {
  67.         $this->school $school;
  68.         return $this;
  69.     }
  70.     public function getYear(): ?SchoolYear
  71.     {
  72.         return $this->year;
  73.     }
  74.     public function setYear(?SchoolYear $year): static
  75.     {
  76.         $this->year $year;
  77.         return $this;
  78.     }
  79.     public function getAbsence(): ?int
  80.     {
  81.         return $this->absence;
  82.     }
  83.     public function setAbsence(int $absence): static
  84.     {
  85.         $this->absence $absence;
  86.         return $this;
  87.     }
  88.     public function getBlame(): ?int
  89.     {
  90.         return $this->blame;
  91.     }
  92.     public function setBlame(int $blame): static
  93.     {
  94.         $this->blame $blame;
  95.         return $this;
  96.     }
  97.     public function getAuthor(): ?User
  98.     {
  99.         return $this->author;
  100.     }
  101.     public function setAuthor(?User $author): static
  102.     {
  103.         $this->author $author;
  104.         return $this;
  105.     }
  106. }