<?php
namespace App\Entity;
use App\Repository\WarningExlusionConfigRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: WarningExlusionConfigRepository::class)]
class WarningExlusionConfig
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $warning = null;
#[ORM\Column]
private ?int $exlusion = null;
#[ORM\OneToOne(inversedBy: 'warningExlusionConfig', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
public function getId(): ?int
{
return $this->id;
}
public function getWarning(): ?int
{
return $this->warning;
}
public function setWarning(int $warning): static
{
$this->warning = $warning;
return $this;
}
public function getExlusion(): ?int
{
return $this->exlusion;
}
public function setExlusion(int $exlusion): static
{
$this->exlusion = $exlusion;
return $this;
}
public function getSchool(): ?School
{
return $this->school;
}
public function setSchool(School $school): static
{
$this->school = $school;
return $this;
}
public function getYear(): ?SchoolYear
{
return $this->year;
}
public function setYear(?SchoolYear $year): static
{
$this->year = $year;
return $this;
}
}