src/Entity/PunishExclusionConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PunishExclusionConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPunishExclusionConfigRepository::class)]
  6. class PunishExclusionConfig
  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.     
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?int $punish null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?int $day null;
  23.     #[ORM\ManyToOne(inversedBy'punishExclusionConfigs')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?School $school null;
  26.     #[ORM\ManyToOne(inversedBy'punishExclusionConfigs')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?SchoolYear $year 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.     public function getDay(): ?int
  52.     {
  53.         return $this->day;
  54.     }
  55.     public function setDay(?int $day): static
  56.     {
  57.         $this->day $day;
  58.         return $this;
  59.     }
  60.     public function getSchool(): ?School
  61.     {
  62.         return $this->school;
  63.     }
  64.     public function setSchool(?School $school): static
  65.     {
  66.         $this->school $school;
  67.         return $this;
  68.     }
  69.     public function getYear(): ?SchoolYear
  70.     {
  71.         return $this->year;
  72.     }
  73.     public function setYear(?SchoolYear $year): static
  74.     {
  75.         $this->year $year;
  76.         return $this;
  77.     }
  78.     public function getPunish(): ?int
  79.     {
  80.         return $this->punish;
  81.     }
  82.     public function setPunish(?int $punish): static
  83.     {
  84.         $this->punish $punish;
  85.         return $this;
  86.     }
  87.     public function getPunishForInterval(): ?int
  88.     {
  89.         return $this->dayForInterval;
  90.     }
  91.     public function setPunishForInterval(?int $dayForInterval): static
  92.     {
  93.         $this->dayForInterval $dayForInterval;
  94.         return $this;
  95.     }
  96. }