true])] private bool $isActive = true; #[ORM\Column(type: 'text', nullable: true)] private ?string $description; #[ORM\Column(options: ['default' => 1])] #[Assert\Range(notInRangeMessage: 'between_{{ min }}_and_{{ max }}', min: 1, max: 10)] private int $coefficient = 1; #[ORM\OneToMany(mappedBy: 'educationNotationConfig', targetEntity: Access::class)] private Collection $teachers; #[ORM\OneToMany(mappedBy: 'educationNotationConfig', targetEntity: EducationCurriculum::class)] private Collection $educationCurriculums; #[ORM\OneToMany(mappedBy: 'educationNotationConfig', targetEntity: EducationNotationCriteriaConfig::class, cascade: ['persist', 'remove'], orphanRemoval: true)] private Collection $educationNotationCriteriaConfigs; #[Pure] public function __construct() { $this->teachers = new ArrayCollection(); $this->educationCurriculums = new ArrayCollection(); $this->educationNotationCriteriaConfigs = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function setOrganization(Organization $organization): self { $this->organization = $organization; return $this; } public function getOrganization(): Organization { return $this->organization; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getLabel(): string { return $this->label; } public function setIsActive(bool $isActive): self { $this->isActive = $isActive; return $this; } public function getIsActive(): bool { return $this->isActive; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getDescription(): ?string { return $this->description; } public function setCoefficient(?int $coefficient): self { if ($coefficient === null) { $coefficient = 1; } $this->coefficient = $coefficient; return $this; } public function getCoefficient(): int { return $this->coefficient; } public function addTeacher(Access $teacher): self { if (!$this->teachers->contains($teacher)) { $this->teachers[] = $teacher; $teacher->setEducationNotationConfig($this); } return $this; } public function removeTeacher(Access $teacher): self { if ($this->teachers->removeElement($teacher)) { // set the owning side to null (unless already changed) if ($teacher->getEducationNotationConfig() === $this) { $teacher->setEducationNotationConfig(null); } } return $this; } public function getTeachers(): Collection { return $this->teachers; } public function addEducationCurriculum(EducationCurriculum $educationCurriculums): self { if (!$this->educationCurriculums->contains($educationCurriculums)) { $this->educationCurriculums[] = $educationCurriculums; $educationCurriculums->setEducationNotationConfig($this); } return $this; } public function removeEducationCurriculum(EducationCurriculum $educationCurriculums): self { if ($this->educationCurriculums->removeElement($educationCurriculums)) { // set the owning side to null (unless already changed) if ($educationCurriculums->getEducationNotationConfig() === $this) { $educationCurriculums->setEducationNotationConfig(null); } } return $this; } public function getEducationCurriculums(): Collection { return $this->educationCurriculums; } /** * @return Collection */ public function getEducationNotationCriteriaConfigs(): Collection { return $this->educationNotationCriteriaConfigs; } public function addEducationNotationCriteriaConfig(EducationNotationCriteriaConfig $educationNotationCriteriaConfig): self { if (!$this->educationNotationCriteriaConfigs->contains($educationNotationCriteriaConfig)) { $this->educationNotationCriteriaConfigs[] = $educationNotationCriteriaConfig; $educationNotationCriteriaConfig->setEducationNotationConfig($this); } return $this; } public function removeEducationNotationCriteriaConfig(EducationNotationCriteriaConfig $educationNotationCriteriaConfig): self { if ($this->educationNotationCriteriaConfigs->removeElement($educationNotationCriteriaConfig)) { // set the owning side to null (unless already changed) if ($educationNotationCriteriaConfig->getEducationNotationConfig() === $this) { $educationNotationCriteriaConfig->setEducationNotationConfig(null); } } return $this; } }