src/Entity/AbsencePunishConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AbsencePunishConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassAbsencePunishConfigRepository::class)]
  6. class AbsencePunishConfig
  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\Column]
  17.     private ?int $punish null;
  18.     #[ORM\ManyToOne(inversedBy'absencePunishConfigs')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?School $school null;
  21.     #[ORM\ManyToOne(inversedBy'absencePunishConfigs')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?SchoolYear $year null;
  24.     #[ORM\ManyToOne(inversedBy'absencePunishConfigs')]
  25.     #[ORM\JoinColumn(nullablefalse)]
  26.     private ?User $author null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getStart(): ?int
  32.     {
  33.         return $this->start;
  34.     }
  35.     public function setStart(int $start): static
  36.     {
  37.         $this->start $start;
  38.         return $this;
  39.     }
  40.     public function getEnd(): ?int
  41.     {
  42.         return $this->end;
  43.     }
  44.     public function setEnd(int $end): static
  45.     {
  46.         $this->end $end;
  47.         return $this;
  48.     }
  49.     public function getPunish(): ?int
  50.     {
  51.         return $this->punish;
  52.     }
  53.     public function setPunish(int $punish): static
  54.     {
  55.         $this->punish $punish;
  56.         return $this;
  57.     }
  58.     public function getSchool(): ?School
  59.     {
  60.         return $this->school;
  61.     }
  62.     public function setSchool(?School $school): static
  63.     {
  64.         $this->school $school;
  65.         return $this;
  66.     }
  67.     public function getYear(): ?SchoolYear
  68.     {
  69.         return $this->year;
  70.     }
  71.     public function setYear(?SchoolYear $year): static
  72.     {
  73.         $this->year $year;
  74.         return $this;
  75.     }
  76.     public function getAuthor(): ?User
  77.     {
  78.         return $this->author;
  79.     }
  80.     public function setAuthor(?User $author): static
  81.     {
  82.         $this->author $author;
  83.         return $this;
  84.     }
  85. }