<?phpnamespace App\Entity;use App\Repository\RetainedWarningConfigRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RetainedWarningConfigRepository::class)]class RetainedWarningConfig{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column] private ?int $retained = null; #[ORM\Column] private ?int $warning = null; #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] private ?SchoolYear $year = null; #[ORM\ManyToOne(inversedBy: 'retainedWarningConfigs')] #[ORM\JoinColumn(nullable: false)] private ?School $school = null; #[ORM\Column(nullable: true)] private ?int $start = null; #[ORM\Column(nullable: true)] private ?int $end = null; #[ORM\Column(nullable: true)] private ?int $warningForInterval = null; public function getId(): ?int { return $this->id; } public function getRetained(): ?int { return $this->retained; } public function setRetained(int $retained): static { $this->retained = $retained; return $this; } public function getWarning(): ?int { return $this->warning; } public function setWarning(int $warning): static { $this->warning = $warning; return $this; } public function getYear(): ?SchoolYear { return $this->year; } public function setYear(?SchoolYear $year): static { $this->year = $year; return $this; } public function getSchool(): ?School { return $this->school; } public function setSchool(?School $school): static { $this->school = $school; return $this; } public function getStart(): ?int { return $this->start; } public function setStart(?int $start): static { $this->start = $start; return $this; } public function getEnd(): ?int { return $this->end; } public function setEnd(?int $end): static { $this->end = $end; return $this; } public function getWarningForInterval(): ?int { return $this->warningForInterval; } public function setWarningForInterval(?int $warningForInterval): static { $this->warningForInterval = $warningForInterval; return $this; }}