src/Entity/PunishRetainedConfig.php line 9

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