<?php
namespace App\Entity;
use App\Repository\GlobalDisciplineEnabledConfigRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GlobalDisciplineEnabledConfigRepository::class)]
class GlobalDisciplineEnabledConfig
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?bool $punish = null;
#[ORM\Column]
private ?bool $warning = null;
#[ORM\Column]
private ?bool $blame = null;
#[ORM\Column]
private ?bool $exclusion = null;
#[ORM\ManyToOne(inversedBy: 'globalDisciplineEnabledConfigs')]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
#[ORM\ManyToOne(inversedBy: 'globalDisciplineEnabledConfigs')]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
#[ORM\Column(nullable: true)]
private ?bool $retained = null;
#[ORM\Column(nullable: true)]
private ?int $warningPriority = null;
#[ORM\Column(nullable: true)]
private ?int $punishPriority = null;
#[ORM\Column(nullable: true)]
private ?int $blamePriority = null;
#[ORM\Column(nullable: true)]
private ?int $retainedPriority = null;
#[ORM\ManyToOne(inversedBy: 'globalDisciplineEnabledConfigs')]
private ?User $author = null;
public function getId(): ?int
{
return $this->id;
}
public function isPunish(): ?bool
{
return $this->punish;
}
public function setIsPunish(bool $punish): static
{
$this->punish = $punish;
return $this;
}
public function isWarning(): ?bool
{
return $this->warning;
}
public function setIsWarning(bool $warning): static
{
$this->warning = $warning;
return $this;
}
public function isBlame(): ?bool
{
return $this->blame;
}
public function setIsBlame(bool $blame): static
{
$this->blame = $blame;
return $this;
}
public function isExclusion(): ?bool
{
return $this->exclusion;
}
public function setIsExclusion(bool $exclusion): static
{
$this->exclusion = $exclusion;
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;
}
public function isRetained(): ?bool
{
return $this->retained;
}
public function setIsRetained(?bool $retained): static
{
$this->retained = $retained;
return $this;
}
public function getWarningPriority(): ?int
{
return $this->warningPriority;
}
public function setWarningPriority(?int $warningPriority): static
{
$this->warningPriority = $warningPriority;
return $this;
}
public function getPunishPriority(): ?int
{
return $this->punishPriority;
}
public function setPunishPriority(?int $punishPriority): static
{
$this->punishPriority = $punishPriority;
return $this;
}
public function getBlamePriority(): ?int
{
return $this->blamePriority;
}
public function setBlamePriority(?int $blamePriority): static
{
$this->blamePriority = $blamePriority;
return $this;
}
public function getRetainedPriority(): ?int
{
return $this->retainedPriority;
}
public function setRetainedPriority(?int $retainedPriority): static
{
$this->retainedPriority = $retainedPriority;
return $this;
}
public function getAuthor(): ?User
{
return $this->author;
}
public function setAuthor(?User $author): static
{
$this->author = $author;
return $this;
}
}