src/Entity/GlobalDisciplineEnabledConfig.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GlobalDisciplineEnabledConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassGlobalDisciplineEnabledConfigRepository::class)]
  6. class GlobalDisciplineEnabledConfig
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?bool $punish null;
  14.     #[ORM\Column]
  15.     private ?bool $warning null;
  16.     #[ORM\Column]
  17.     private ?bool $blame null;
  18.     #[ORM\Column]
  19.     private ?bool $exclusion null;
  20.     #[ORM\ManyToOne(inversedBy'globalDisciplineEnabledConfigs')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?School $school null;
  23.     #[ORM\ManyToOne(inversedBy'globalDisciplineEnabledConfigs')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?SchoolYear $year null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?bool $retained null;
  28.     #[ORM\Column(nullabletrue)]
  29.     private ?int $warningPriority null;
  30.     #[ORM\Column(nullabletrue)]
  31.     private ?int $punishPriority null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?int $blamePriority null;
  34.     #[ORM\Column(nullabletrue)]
  35.     private ?int $retainedPriority null;
  36.     #[ORM\ManyToOne(inversedBy'globalDisciplineEnabledConfigs')]
  37.     private ?User $author null;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function isPunish(): ?bool
  43.     {
  44.         return $this->punish;
  45.     }
  46.     public function setIsPunish(bool $punish): static
  47.     {
  48.         $this->punish $punish;
  49.         return $this;
  50.     }
  51.     public function isWarning(): ?bool
  52.     {
  53.         return $this->warning;
  54.     }
  55.     public function setIsWarning(bool $warning): static
  56.     {
  57.         $this->warning $warning;
  58.         return $this;
  59.     }
  60.     public function isBlame(): ?bool
  61.     {
  62.         return $this->blame;
  63.     }
  64.     public function setIsBlame(bool $blame): static
  65.     {
  66.         $this->blame $blame;
  67.         return $this;
  68.     }
  69.     public function isExclusion(): ?bool
  70.     {
  71.         return $this->exclusion;
  72.     }
  73.     public function setIsExclusion(bool $exclusion): static
  74.     {
  75.         $this->exclusion $exclusion;
  76.         return $this;
  77.     }
  78.     public function getSchool(): ?School
  79.     {
  80.         return $this->school;
  81.     }
  82.     public function setSchool(?School $school): static
  83.     {
  84.         $this->school $school;
  85.         return $this;
  86.     }
  87.     public function getYear(): ?SchoolYear
  88.     {
  89.         return $this->year;
  90.     }
  91.     public function setYear(?SchoolYear $year): static
  92.     {
  93.         $this->year $year;
  94.         return $this;
  95.     }
  96.     public function isRetained(): ?bool
  97.     {
  98.         return $this->retained;
  99.     }
  100.     public function setIsRetained(?bool $retained): static
  101.     {
  102.         $this->retained $retained;
  103.         return $this;
  104.     }
  105.     public function getWarningPriority(): ?int
  106.     {
  107.         return $this->warningPriority;
  108.     }
  109.     public function setWarningPriority(?int $warningPriority): static
  110.     {
  111.         $this->warningPriority $warningPriority;
  112.         return $this;
  113.     }
  114.     public function getPunishPriority(): ?int
  115.     {
  116.         return $this->punishPriority;
  117.     }
  118.     public function setPunishPriority(?int $punishPriority): static
  119.     {
  120.         $this->punishPriority $punishPriority;
  121.         return $this;
  122.     }
  123.     public function getBlamePriority(): ?int
  124.     {
  125.         return $this->blamePriority;
  126.     }
  127.     public function setBlamePriority(?int $blamePriority): static
  128.     {
  129.         $this->blamePriority $blamePriority;
  130.         return $this;
  131.     }
  132.     public function getRetainedPriority(): ?int
  133.     {
  134.         return $this->retainedPriority;
  135.     }
  136.     public function setRetainedPriority(?int $retainedPriority): static
  137.     {
  138.         $this->retainedPriority $retainedPriority;
  139.         return $this;
  140.     }
  141.     public function getAuthor(): ?User
  142.     {
  143.         return $this->author;
  144.     }
  145.     public function setAuthor(?User $author): static
  146.     {
  147.         $this->author $author;
  148.         return $this;
  149.     }
  150. }