src/Entity/School.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\SchoolRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use JMS\Serializer\Annotation\Groups;
  9. #[ORM\HasLifecycleCallbacks]
  10. #[ORM\Entity(repositoryClassSchoolRepository::class)]
  11. class School
  12. {
  13.     use Timestampable;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     #[Groups(['getStudents','getSubject','getAppUsers','getClass'])]
  18.     private ?int $id null;
  19.     #[ORM\Column(length255)]
  20.     #[Groups(['getStudents'])]
  21.     private ?string $name null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $phone null;
  24.     #[ORM\OneToMany(mappedBy'school'targetEntityUser::class)]
  25.     private Collection $users;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $email null;
  28.     #[ORM\OneToMany(mappedBy'school'targetEntityUserYear::class)]
  29.     private Collection $userYears;
  30.     #[ORM\OneToMany(mappedBy'school'targetEntityStudent::class)]
  31.     private Collection $students;
  32.     #[ORM\OneToMany(mappedBy'school'targetEntityStudentYear::class)]
  33.     private Collection $studentYears;
  34.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsence::class)]
  35.     private Collection $absences;
  36.     #[ORM\OneToMany(mappedBy'school'targetEntityNote::class)]
  37.     private Collection $notes;
  38.     #[ORM\OneToMany(mappedBy'school'targetEntityDocInfo::class)]
  39.     private Collection $docInfos;
  40.     #[ORM\OneToMany(mappedBy'school'targetEntityEvent::class)]
  41.     private Collection $events;
  42.     #[ORM\OneToMany(mappedBy'school'targetEntityHomeWork::class)]
  43.     private Collection $homeWorks;
  44.     #[ORM\OneToMany(mappedBy'school'targetEntityLate::class)]
  45.     private Collection $lates;
  46.     #[ORM\OneToMany(mappedBy'school'targetEntityHomeWorkYear::class)]
  47.     private Collection $homeWorkYears;
  48.     #[ORM\OneToMany(mappedBy'school'targetEntityPunish::class)]
  49.     private Collection $punishes;
  50.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishCategory::class)]
  51.     private Collection $punishCategories;
  52.     #[ORM\OneToMany(mappedBy'school'targetEntitySchoolSection::class)]
  53.     private Collection $schoolSections;
  54.     #[ORM\OneToMany(mappedBy'school'targetEntityTheClass::class)]
  55.     private Collection $theClasses;
  56.     #[ORM\OneToMany(mappedBy'school'targetEntitySubject::class)]
  57.     private Collection $subjects;
  58.     #[ORM\OneToMany(mappedBy'school'targetEntitySubjectGroup::class)]
  59.     private Collection $subjectGroups;
  60.     #[ORM\OneToMany(mappedBy'school'targetEntityDiscussion::class)]
  61.     private Collection $discussions;
  62.     #[ORM\OneToMany(mappedBy'school'targetEntityDiscussionClass::class)]
  63.     private Collection $discussionClasses;
  64.     #[ORM\OneToMany(mappedBy'school'targetEntityCategoryEvent::class)]
  65.     private Collection $categoryEvents;
  66.     
  67.     #[ORM\OneToMany(mappedBy'school'targetEntityNews::class)]
  68.     private Collection $news;
  69.     #[ORM\OneToMany(mappedBy'school'targetEntityAgenda::class)]
  70.     private Collection $agendas;
  71.     #[ORM\OneToMany(mappedBy'school'targetEntityExamAgenda::class)]
  72.     private Collection $examAgendas;
  73.     #[ORM\OneToMany(mappedBy'School'targetEntitySubSequence::class, orphanRemovaltrue)]
  74.     private Collection $subSequences;
  75.     #[ORM\OneToMany(mappedBy'school'targetEntitySubNote::class, orphanRemovaltrue)]
  76.     private Collection $subNotes;
  77.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalExam::class, orphanRemovaltrue)]
  78.     private Collection $globalExams;
  79.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalQuarter::class, orphanRemovaltrue)]
  80.     private Collection $globalQuarters;
  81.     #[ORM\OneToMany(mappedBy'school'targetEntityAppreciation::class, orphanRemovaltrue)]
  82.     private Collection $appreciations;
  83.     #[ORM\OneToMany(mappedBy'school'targetEntityScolarity::class)]
  84.     private Collection $scolarities;
  85.     #[ORM\OneToMany(mappedBy'school'targetEntityScolarityHistory::class)]
  86.     private Collection $scolarityHistories;
  87.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineWarning::class, orphanRemovaltrue)]
  88.     private Collection $disciplineWarnings;
  89.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineBlame::class, orphanRemovaltrue)]
  90.     private Collection $disciplineBlames;
  91.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineExclusion::class)]
  92.     private Collection $disciplineExclusions;
  93.     #[ORM\OneToMany(mappedBy'school'targetEntityParentNote::class)]
  94.     private Collection $parentNotes;
  95.     #[ORM\OneToMany(mappedBy'school'targetEntityJustifyAbsence::class)]
  96.     private Collection $justifyAbsences;
  97.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceRetainedConfig::class, orphanRemovaltrue)]
  98.     private Collection $absenceRetainedConfigs;
  99.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceWarningConfig::class)]
  100.     private Collection $absenceWarningConfigs;
  101.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceExclusionConfig::class)]
  102.     private Collection $absenceExclusionConfigs;
  103.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsenceBlameConfig::class)]
  104.     private Collection $absenceBlameConfigs;
  105.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineRetained::class)]
  106.     private Collection $disciplineRetaineds;
  107.     #[ORM\OneToMany(mappedBy'school'targetEntityDefinitiveExclusion::class)]
  108.     private Collection $definitiveExclusions;
  109.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplineConcile::class)]
  110.     private Collection $disciplineConciles;
  111.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedDisciplineConcileConfig::class)]
  112.     private Collection $retainedDisciplineConcileConfigs;
  113.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedBlameConfig::class)]
  114.     private Collection $retainedBlameConfigs;
  115.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedWarningConfig::class)]
  116.     private Collection $retainedWarningConfigs;
  117.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedDefinitiveExclusionConfig::class)]
  118.     private Collection $retainedDefinitiveExclusionConfigs;
  119.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameDefinitiveExclusionConfig::class)]
  120.     private Collection $blameDefinitiveExclusionConfigs;
  121.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameExclusionConfig::class)]
  122.     private Collection $blameExclusionConfigs;
  123.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameWarningConfig::class)]
  124.     private Collection $blameWarningConfigs;
  125.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameRetainedConfig::class)]
  126.     private Collection $blameRetainedConfigs;
  127.     #[ORM\OneToMany(mappedBy'school'targetEntityBlameDisciplineConcileConfig::class)]
  128.     private Collection $blameDisciplineConcileConfigs;
  129.     #[ORM\OneToMany(mappedBy'school'targetEntityRetainedExclusionConfig::class)]
  130.     private Collection $retainedExclusionConfigs;
  131.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningExclusionConfig::class)]
  132.     private Collection $warningExclusionConfigs;
  133.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningDefinitiveExclusionConfig::class)]
  134.     private Collection $warningDefinitiveExclusionConfigs;
  135.     #[ORM\Column(nullabletrue)]
  136.     private ?int $type null;
  137.     #[ORM\Column(length255nullabletrue)]
  138.     private ?string $englishName null;
  139.     #[ORM\Column(nullabletrue)]
  140.     private ?int $langage null;
  141.     #[ORM\OneToMany(mappedBy'school'targetEntityPrimaryParentNote::class)]
  142.     private Collection $primaryParentNotes;
  143.     #[ORM\OneToMany(mappedBy'school'targetEntityPrimaryNote::class)]
  144.     private Collection $primaryNotes;
  145.     #[ORM\OneToMany(mappedBy'school'targetEntityVerbalProcessCategory::class)]
  146.     private Collection $verbalProcessCategories;
  147.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalDisciplineConfig::class)]
  148.     private Collection $globalDisciplineConfigs;
  149.     #[ORM\OneToMany(mappedBy'school'targetEntityDisciplinePunish::class)]
  150.     private Collection $disciplinePunishes;
  151.     #[ORM\OneToMany(mappedBy'school'targetEntityGlobalDisciplineEnabledConfig::class)]
  152.     private Collection $globalDisciplineEnabledConfigs;
  153.     #[ORM\OneToMany(mappedBy'school'targetEntityBlamePunishConfig::class)]
  154.     private Collection $blamePunishConfigs;
  155.     #[ORM\OneToMany(mappedBy'school'targetEntityAbsencePunishConfig::class)]
  156.     private Collection $absencePunishConfigs;
  157.     #[ORM\OneToMany(mappedBy'school'targetEntityWarningPunishConfig::class)]
  158.     private Collection $warningPunishConfigs;
  159.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishRetainedConfig::class)]
  160.     private Collection $punishRetainedConfigs;
  161.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishWarningConfig::class)]
  162.     private Collection $punishWarningConfigs;
  163.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishBlameConfig::class)]
  164.     private Collection $punishBlameConfigs;
  165.     #[ORM\OneToMany(mappedBy'school'targetEntityPunishExclusionConfig::class)]
  166.     private Collection $punishExclusionConfigs;
  167.     #[ORM\Column(length255nullabletrue)]
  168.     private ?string $nameEn null;
  169.     #[ORM\Column(length255nullabletrue)]
  170.     private ?string $region null;
  171.     #[ORM\Column(length255nullabletrue)]
  172.     private ?string $department null;
  173.     #[ORM\Column(length255nullabletrue)]
  174.     private ?string $arrondissement null;
  175.     #[ORM\OneToMany(mappedBy'school'targetEntityUserIphoneToken::class)]
  176.     private Collection $userIphoneTokens;
  177.     #[ORM\OneToMany(mappedBy'school'targetEntityUserAndroidToken::class)]
  178.     private Collection $userAndroidTokens;
  179.     #[ORM\OneToMany(mappedBy'school'targetEntityNewsCategory::class)]
  180.     private Collection $newsCategories;
  181.     #[ORM\OneToMany(mappedBy'school'targetEntityBlame::class)]
  182.     private Collection $blames;
  183.     #[ORM\OneToMany(mappedBy'school'targetEntityWarning::class)]
  184.     private Collection $warnings;
  185.     #[ORM\OneToMany(mappedBy'school'targetEntityRetained::class)]
  186.     private Collection $retaineds;
  187.     #[ORM\Column(length255nullabletrue)]
  188.     private ?string $city null;
  189.     #[ORM\Column(length255nullabletrue)]
  190.     private ?string $phone1 null;
  191.     #[ORM\Column(length255nullabletrue)]
  192.     private ?string $phone2 null;
  193.     #[ORM\Column(length255nullabletrue)]
  194.     private ?string $box null;
  195.     #[ORM\OneToMany(mappedBy'school'targetEntityHonnorTableLimitMoy::class)]
  196.     private Collection $honnorTableLimitMoys;
  197.     #[ORM\OneToMany(mappedBy'school'targetEntitySchoolYearInfos::class)]
  198.     private Collection $schoolYearInfos;
  199.     #[ORM\OneToMany(mappedBy'school'targetEntityAdmissionLimit::class)]
  200.     private Collection $admissionLimits;
  201.     #[ORM\OneToMany(mappedBy'school'targetEntityAgendaDay::class)]
  202.     private Collection $agendaDays;
  203.     #[ORM\OneToOne(mappedBy'school'cascade: ['persist'])]
  204.     private ?AgendaTimeConvertion $agendaTimeConvertion null;
  205.     #[ORM\OneToMany(mappedBy'school'targetEntityCompetence::class)]
  206.     private Collection $competences;
  207.     #[ORM\OneToMany(mappedBy'school'targetEntityWeekSubjectGoal::class)]
  208.     private Collection $weekSubjectGoals;
  209.     #[ORM\OneToMany(mappedBy'school'targetEntityProfSchoolPlanner::class)]
  210.     private Collection $profSchoolPlanners;
  211.     #[ORM\OneToMany(mappedBy'school'targetEntityProfTime::class)]
  212.     private Collection $profTimes;
  213.     #[ORM\OneToMany(mappedBy'school'targetEntitySchoolPlannerType::class)]
  214.     private Collection $schoolPlannerTypes;
  215.     #[ORM\OneToMany(mappedBy'school'targetEntityAgendaElement::class)]
  216.     private Collection $agendaElements;
  217.     public function __construct()
  218.     {
  219.         $this->users = new ArrayCollection();
  220.         $this->userYears = new ArrayCollection();
  221.         $this->students = new ArrayCollection();
  222.         $this->studentYears = new ArrayCollection();
  223.         $this->absences = new ArrayCollection();
  224.         $this->notes = new ArrayCollection();
  225.         $this->docInfos = new ArrayCollection();
  226.         $this->events = new ArrayCollection();
  227.         $this->homeWorks = new ArrayCollection();
  228.         $this->lates = new ArrayCollection();
  229.         $this->homeWorkYears = new ArrayCollection();
  230.         $this->punishes = new ArrayCollection();
  231.         $this->punishCategories = new ArrayCollection();
  232.         $this->schoolSections = new ArrayCollection();
  233.         $this->theClasses = new ArrayCollection();
  234.         $this->subjects = new ArrayCollection();
  235.         $this->subjectGroups = new ArrayCollection();
  236.         $this->discussions = new ArrayCollection();
  237.         $this->discussionClasses = new ArrayCollection();
  238.         $this->categoryEvents = new ArrayCollection();
  239.         $this->news = new ArrayCollection();
  240.         $this->agendas = new ArrayCollection();
  241.         $this->examAgendas = new ArrayCollection();
  242.         $this->subSequences = new ArrayCollection();
  243.         $this->subNotes = new ArrayCollection();
  244.         $this->globalExams = new ArrayCollection();
  245.         $this->globalQuarters = new ArrayCollection();
  246.         $this->appreciations = new ArrayCollection();
  247.         $this->scolarities = new ArrayCollection();
  248.         $this->scolarityHistories = new ArrayCollection();
  249.         $this->disciplineWarnings = new ArrayCollection();
  250.         $this->disciplineBlames = new ArrayCollection();
  251.         $this->disciplineExclusions = new ArrayCollection();
  252.         $this->parentNotes = new ArrayCollection();
  253.         $this->justifyAbsences = new ArrayCollection();
  254.         $this->absenceRetainedConfigs = new ArrayCollection();
  255.         $this->absenceWarningConfigs = new ArrayCollection();
  256.         $this->absenceExclusionConfigs = new ArrayCollection();
  257.         $this->absenceBlameConfigs = new ArrayCollection();
  258.         $this->disciplineRetaineds = new ArrayCollection();
  259.         $this->definitiveExclusions = new ArrayCollection();
  260.         $this->disciplineConciles = new ArrayCollection();
  261.         $this->retainedDisciplineConcileConfigs = new ArrayCollection();
  262.         $this->retainedBlameConfigs = new ArrayCollection();
  263.         $this->retainedWarningConfigs = new ArrayCollection();
  264.         $this->retainedDefinitiveExclusionConfigs = new ArrayCollection();
  265.         $this->blameDefinitiveExclusionConfigs = new ArrayCollection();
  266.         $this->blameExclusionConfigs = new ArrayCollection();
  267.         $this->blameWarningConfigs = new ArrayCollection();
  268.         $this->blameRetainedConfigs = new ArrayCollection();
  269.         $this->blameDisciplineConcileConfigs = new ArrayCollection();
  270.         $this->retainedExclusionConfigs = new ArrayCollection();
  271.         $this->warningExclusionConfigs = new ArrayCollection();
  272.         $this->warningDefinitiveExclusionConfigs = new ArrayCollection();
  273.         $this->primaryParentNotes = new ArrayCollection();
  274.         $this->primaryNotes = new ArrayCollection();
  275.         $this->verbalProcessCategories = new ArrayCollection();
  276.         $this->globalDisciplineConfigs = new ArrayCollection();
  277.         $this->disciplinePunishes = new ArrayCollection();
  278.         $this->globalDisciplineEnabledConfigs = new ArrayCollection();
  279.         $this->blamePunishConfigs = new ArrayCollection();
  280.         $this->absencePunishConfigs = new ArrayCollection();
  281.         $this->warningPunishConfigs = new ArrayCollection();
  282.         $this->punishRetainedConfigs = new ArrayCollection();
  283.         $this->punishWarningConfigs = new ArrayCollection();
  284.         $this->punishBlameConfigs = new ArrayCollection();
  285.         $this->punishExclusionConfigs = new ArrayCollection();
  286.         $this->userIphoneTokens = new ArrayCollection();
  287.         $this->userAndroidTokens = new ArrayCollection();
  288.         $this->newsCategories = new ArrayCollection();
  289.         $this->blames = new ArrayCollection();
  290.         $this->warnings = new ArrayCollection();
  291.         $this->retaineds = new ArrayCollection();
  292.         $this->honnorTableLimitMoys = new ArrayCollection();
  293.         $this->schoolYearInfos = new ArrayCollection();
  294.         $this->admissionLimits = new ArrayCollection();
  295.         $this->agendaDays = new ArrayCollection();
  296.         $this->competences = new ArrayCollection();
  297.         $this->weekSubjectGoals = new ArrayCollection();
  298.         $this->profSchoolPlanners = new ArrayCollection();
  299.         $this->profTimes = new ArrayCollection();
  300.         $this->schoolPlannerTypes = new ArrayCollection();
  301.         $this->agendaElements = new ArrayCollection();
  302.     }
  303.     public function getId(): ?int
  304.     {
  305.         return $this->id;
  306.     }
  307.     public function getName(): ?string
  308.     {
  309.         return $this->name;
  310.     }
  311.     public function setName(string $name): static
  312.     {
  313.         $this->name $name;
  314.         return $this;
  315.     }
  316.     public function getPhone(): ?string
  317.     {
  318.         return $this->phone;
  319.     }
  320.     public function setPhone(string $phone): static
  321.     {
  322.         $this->phone $phone;
  323.         return $this;
  324.     }
  325.     /**
  326.      * @return Collection<int, User>
  327.      */
  328.     public function getUsers(): Collection
  329.     {
  330.         return $this->users;
  331.     }
  332.     public function addUser(User $user): static
  333.     {
  334.         if (!$this->users->contains($user)) {
  335.             $this->users->add($user);
  336.             $user->setSchool($this);
  337.         }
  338.         return $this;
  339.     }
  340.     public function removeUser(User $user): static
  341.     {
  342.         if ($this->users->removeElement($user)) {
  343.             // set the owning side to null (unless already changed)
  344.             if ($user->getSchool() === $this) {
  345.                 $user->setSchool(null);
  346.             }
  347.         }
  348.         return $this;
  349.     }
  350.     public function getEmail(): ?string
  351.     {
  352.         return $this->email;
  353.     }
  354.     public function setEmail(?string $email): static
  355.     {
  356.         $this->email $email;
  357.         return $this;
  358.     }
  359.     /**
  360.      * @return Collection<int, UserYear>
  361.      */
  362.     public function getUserYears(): Collection
  363.     {
  364.         return $this->userYears;
  365.     }
  366.     public function addUserYear(UserYear $userYear): static
  367.     {
  368.         if (!$this->userYears->contains($userYear)) {
  369.             $this->userYears->add($userYear);
  370.             $userYear->setSchool($this);
  371.         }
  372.         return $this;
  373.     }
  374.     public function removeUserYear(UserYear $userYear): static
  375.     {
  376.         if ($this->userYears->removeElement($userYear)) {
  377.             // set the owning side to null (unless already changed)
  378.             if ($userYear->getSchool() === $this) {
  379.                 $userYear->setSchool(null);
  380.             }
  381.         }
  382.         return $this;
  383.     }
  384.     /**
  385.      * @return Collection<int, Student>
  386.      */
  387.     public function getStudents(): Collection
  388.     {
  389.         return $this->students;
  390.     }
  391.     public function addStudent(Student $student): static
  392.     {
  393.         if (!$this->students->contains($student)) {
  394.             $this->students->add($student);
  395.             $student->setSchool($this);
  396.         }
  397.         return $this;
  398.     }
  399.     public function removeStudent(Student $student): static
  400.     {
  401.         if ($this->students->removeElement($student)) {
  402.             // set the owning side to null (unless already changed)
  403.             if ($student->getSchool() === $this) {
  404.                 $student->setSchool(null);
  405.             }
  406.         }
  407.         return $this;
  408.     }
  409.     /**
  410.      * @return Collection<int, StudentYear>
  411.      */
  412.     public function getStudentYears(): Collection
  413.     {
  414.         return $this->studentYears;
  415.     }
  416.     public function addStudentYear(StudentYear $studentYear): static
  417.     {
  418.         if (!$this->studentYears->contains($studentYear)) {
  419.             $this->studentYears->add($studentYear);
  420.             $studentYear->setSchool($this);
  421.         }
  422.         return $this;
  423.     }
  424.     public function removeStudentYear(StudentYear $studentYear): static
  425.     {
  426.         if ($this->studentYears->removeElement($studentYear)) {
  427.             // set the owning side to null (unless already changed)
  428.             if ($studentYear->getSchool() === $this) {
  429.                 $studentYear->setSchool(null);
  430.             }
  431.         }
  432.         return $this;
  433.     }
  434.     /**
  435.      * @return Collection<int, Absence>
  436.      */
  437.     public function getAbsences(): Collection
  438.     {
  439.         return $this->absences;
  440.     }
  441.     public function addAbsence(Absence $absence): static
  442.     {
  443.         if (!$this->absences->contains($absence)) {
  444.             $this->absences->add($absence);
  445.             $absence->setSchool($this);
  446.         }
  447.         return $this;
  448.     }
  449.     public function removeAbsence(Absence $absence): static
  450.     {
  451.         if ($this->absences->removeElement($absence)) {
  452.             // set the owning side to null (unless already changed)
  453.             if ($absence->getSchool() === $this) {
  454.                 $absence->setSchool(null);
  455.             }
  456.         }
  457.         return $this;
  458.     }
  459.     /**
  460.      * @return Collection<int, Note>
  461.      */
  462.     public function getNotes(): Collection
  463.     {
  464.         return $this->notes;
  465.     }
  466.     public function addNote(Note $note): static
  467.     {
  468.         if (!$this->notes->contains($note)) {
  469.             $this->notes->add($note);
  470.             $note->setSchool($this);
  471.         }
  472.         return $this;
  473.     }
  474.     public function removeNote(Note $note): static
  475.     {
  476.         if ($this->notes->removeElement($note)) {
  477.             // set the owning side to null (unless already changed)
  478.             if ($note->getSchool() === $this) {
  479.                 $note->setSchool(null);
  480.             }
  481.         }
  482.         return $this;
  483.     }
  484.     /**
  485.      * @return Collection<int, DocInfo>
  486.      */
  487.     public function getDocInfos(): Collection
  488.     {
  489.         return $this->docInfos;
  490.     }
  491.     public function addDocInfo(DocInfo $docInfo): static
  492.     {
  493.         if (!$this->docInfos->contains($docInfo)) {
  494.             $this->docInfos->add($docInfo);
  495.             $docInfo->setSchool($this);
  496.         }
  497.         return $this;
  498.     }
  499.     public function removeDocInfo(DocInfo $docInfo): static
  500.     {
  501.         if ($this->docInfos->removeElement($docInfo)) {
  502.             // set the owning side to null (unless already changed)
  503.             if ($docInfo->getSchool() === $this) {
  504.                 $docInfo->setSchool(null);
  505.             }
  506.         }
  507.         return $this;
  508.     }
  509.     /**
  510.      * @return Collection<int, Event>
  511.      */
  512.     public function getEvents(): Collection
  513.     {
  514.         return $this->events;
  515.     }
  516.     public function addEvent(Event $event): static
  517.     {
  518.         if (!$this->events->contains($event)) {
  519.             $this->events->add($event);
  520.             $event->setSchool($this);
  521.         }
  522.         return $this;
  523.     }
  524.     public function removeEvent(Event $event): static
  525.     {
  526.         if ($this->events->removeElement($event)) {
  527.             // set the owning side to null (unless already changed)
  528.             if ($event->getSchool() === $this) {
  529.                 $event->setSchool(null);
  530.             }
  531.         }
  532.         return $this;
  533.     }
  534.     /**
  535.      * @return Collection<int, HomeWork>
  536.      */
  537.     public function getHomeWorks(): Collection
  538.     {
  539.         return $this->homeWorks;
  540.     }
  541.     public function addHomeWork(HomeWork $homeWork): static
  542.     {
  543.         if (!$this->homeWorks->contains($homeWork)) {
  544.             $this->homeWorks->add($homeWork);
  545.             $homeWork->setSchool($this);
  546.         }
  547.         return $this;
  548.     }
  549.     public function removeHomeWork(HomeWork $homeWork): static
  550.     {
  551.         if ($this->homeWorks->removeElement($homeWork)) {
  552.             // set the owning side to null (unless already changed)
  553.             if ($homeWork->getSchool() === $this) {
  554.                 $homeWork->setSchool(null);
  555.             }
  556.         }
  557.         return $this;
  558.     }
  559.     /**
  560.      * @return Collection<int, Late>
  561.      */
  562.     public function getLates(): Collection
  563.     {
  564.         return $this->lates;
  565.     }
  566.     public function addLate(Late $late): static
  567.     {
  568.         if (!$this->lates->contains($late)) {
  569.             $this->lates->add($late);
  570.             $late->setSchool($this);
  571.         }
  572.         return $this;
  573.     }
  574.     public function removeLate(Late $late): static
  575.     {
  576.         if ($this->lates->removeElement($late)) {
  577.             // set the owning side to null (unless already changed)
  578.             if ($late->getSchool() === $this) {
  579.                 $late->setSchool(null);
  580.             }
  581.         }
  582.         return $this;
  583.     }
  584.     /**
  585.      * @return Collection<int, HomeWorkYear>
  586.      */
  587.     public function getHomeWorkYears(): Collection
  588.     {
  589.         return $this->homeWorkYears;
  590.     }
  591.     public function addHomeWorkYear(HomeWorkYear $homeWorkYear): static
  592.     {
  593.         if (!$this->homeWorkYears->contains($homeWorkYear)) {
  594.             $this->homeWorkYears->add($homeWorkYear);
  595.             $homeWorkYear->setSchool($this);
  596.         }
  597.         return $this;
  598.     }
  599.     public function removeHomeWorkYear(HomeWorkYear $homeWorkYear): static
  600.     {
  601.         if ($this->homeWorkYears->removeElement($homeWorkYear)) {
  602.             // set the owning side to null (unless already changed)
  603.             if ($homeWorkYear->getSchool() === $this) {
  604.                 $homeWorkYear->setSchool(null);
  605.             }
  606.         }
  607.         return $this;
  608.     }
  609.     /**
  610.      * @return Collection<int, Punish>
  611.      */
  612.     public function getPunishes(): Collection
  613.     {
  614.         return $this->punishes;
  615.     }
  616.     public function addPunish(Punish $punish): static
  617.     {
  618.         if (!$this->punishes->contains($punish)) {
  619.             $this->punishes->add($punish);
  620.             $punish->setSchool($this);
  621.         }
  622.         return $this;
  623.     }
  624.     public function removePunish(Punish $punish): static
  625.     {
  626.         if ($this->punishes->removeElement($punish)) {
  627.             // set the owning side to null (unless already changed)
  628.             if ($punish->getSchool() === $this) {
  629.                 $punish->setSchool(null);
  630.             }
  631.         }
  632.         return $this;
  633.     }
  634.     /**
  635.      * @return Collection<int, PunishCategory>
  636.      */
  637.     public function getPunishCategories(): Collection
  638.     {
  639.         return $this->punishCategories;
  640.     }
  641.     public function addPunishCategory(PunishCategory $punishCategory): static
  642.     {
  643.         if (!$this->punishCategories->contains($punishCategory)) {
  644.             $this->punishCategories->add($punishCategory);
  645.             $punishCategory->setSchool($this);
  646.         }
  647.         return $this;
  648.     }
  649.     public function removePunishCategory(PunishCategory $punishCategory): static
  650.     {
  651.         if ($this->punishCategories->removeElement($punishCategory)) {
  652.             // set the owning side to null (unless already changed)
  653.             if ($punishCategory->getSchool() === $this) {
  654.                 $punishCategory->setSchool(null);
  655.             }
  656.         }
  657.         return $this;
  658.     }
  659.     /**
  660.      * @return Collection<int, SchoolSection>
  661.      */
  662.     public function getSchoolSections(): Collection
  663.     {
  664.         return $this->schoolSections;
  665.     }
  666.     public function addSchoolSection(SchoolSection $schoolSection): static
  667.     {
  668.         if (!$this->schoolSections->contains($schoolSection)) {
  669.             $this->schoolSections->add($schoolSection);
  670.             $schoolSection->setSchool($this);
  671.         }
  672.         return $this;
  673.     }
  674.     public function removeSchoolSection(SchoolSection $schoolSection): static
  675.     {
  676.         if ($this->schoolSections->removeElement($schoolSection)) {
  677.             // set the owning side to null (unless already changed)
  678.             if ($schoolSection->getSchool() === $this) {
  679.                 $schoolSection->setSchool(null);
  680.             }
  681.         }
  682.         return $this;
  683.     }
  684.     /**
  685.      * @return Collection<int, TheClass>
  686.      */
  687.     public function getTheClasses(): Collection
  688.     {
  689.         return $this->theClasses;
  690.     }
  691.     public function addTheClass(TheClass $theClass): static
  692.     {
  693.         if (!$this->theClasses->contains($theClass)) {
  694.             $this->theClasses->add($theClass);
  695.             $theClass->setSchool($this);
  696.         }
  697.         return $this;
  698.     }
  699.     public function removeTheClass(TheClass $theClass): static
  700.     {
  701.         if ($this->theClasses->removeElement($theClass)) {
  702.             // set the owning side to null (unless already changed)
  703.             if ($theClass->getSchool() === $this) {
  704.                 $theClass->setSchool(null);
  705.             }
  706.         }
  707.         return $this;
  708.     }
  709.     /**
  710.      * @return Collection<int, Subject>
  711.      */
  712.     public function getSubjects(): Collection
  713.     {
  714.         return $this->subjects;
  715.     }
  716.     public function addSubject(Subject $subject): static
  717.     {
  718.         if (!$this->subjects->contains($subject)) {
  719.             $this->subjects->add($subject);
  720.             $subject->setSchool($this);
  721.         }
  722.         return $this;
  723.     }
  724.     public function removeSubject(Subject $subject): static
  725.     {
  726.         if ($this->subjects->removeElement($subject)) {
  727.             // set the owning side to null (unless already changed)
  728.             if ($subject->getSchool() === $this) {
  729.                 $subject->setSchool(null);
  730.             }
  731.         }
  732.         return $this;
  733.     }
  734.     /**
  735.      * @return Collection<int, SubjectGroup>
  736.      */
  737.     public function getSubjectGroups(): Collection
  738.     {
  739.         return $this->subjectGroups;
  740.     }
  741.     public function addSubjectGroup(SubjectGroup $subjectGroup): static
  742.     {
  743.         if (!$this->subjectGroups->contains($subjectGroup)) {
  744.             $this->subjectGroups->add($subjectGroup);
  745.             $subjectGroup->setSchool($this);
  746.         }
  747.         return $this;
  748.     }
  749.     public function removeSubjectGroup(SubjectGroup $subjectGroup): static
  750.     {
  751.         if ($this->subjectGroups->removeElement($subjectGroup)) {
  752.             // set the owning side to null (unless already changed)
  753.             if ($subjectGroup->getSchool() === $this) {
  754.                 $subjectGroup->setSchool(null);
  755.             }
  756.         }
  757.         return $this;
  758.     }
  759.     /**
  760.      * @return Collection<int, Discussion>
  761.      */
  762.     public function getDiscussions(): Collection
  763.     {
  764.         return $this->discussions;
  765.     }
  766.     public function addDiscussion(Discussion $discussion): static
  767.     {
  768.         if (!$this->discussions->contains($discussion)) {
  769.             $this->discussions->add($discussion);
  770.             $discussion->setSchool($this);
  771.         }
  772.         return $this;
  773.     }
  774.     public function removeDiscussion(Discussion $discussion): static
  775.     {
  776.         if ($this->discussions->removeElement($discussion)) {
  777.             // set the owning side to null (unless already changed)
  778.             if ($discussion->getSchool() === $this) {
  779.                 $discussion->setSchool(null);
  780.             }
  781.         }
  782.         return $this;
  783.     }
  784.     /**
  785.      * @return Collection<int, DiscussionClass>
  786.      */
  787.     public function getDiscussionClasses(): Collection
  788.     {
  789.         return $this->discussionClasses;
  790.     }
  791.     public function addDiscussionClass(DiscussionClass $discussionClass): static
  792.     {
  793.         if (!$this->discussionClasses->contains($discussionClass)) {
  794.             $this->discussionClasses->add($discussionClass);
  795.             $discussionClass->setSchool($this);
  796.         }
  797.         return $this;
  798.     }
  799.     public function removeDiscussionClass(DiscussionClass $discussionClass): static
  800.     {
  801.         if ($this->discussionClasses->removeElement($discussionClass)) {
  802.             // set the owning side to null (unless already changed)
  803.             if ($discussionClass->getSchool() === $this) {
  804.                 $discussionClass->setSchool(null);
  805.             }
  806.         }
  807.         return $this;
  808.     }
  809.     /**
  810.      * @return Collection<int, CategoryEvent>
  811.      */
  812.     public function getCategoryEvents(): Collection
  813.     {
  814.         return $this->categoryEvents;
  815.     }
  816.     public function addCategoryEvent(CategoryEvent $categoryEvent): static
  817.     {
  818.         if (!$this->categoryEvents->contains($categoryEvent)) {
  819.             $this->categoryEvents->add($categoryEvent);
  820.             $categoryEvent->setSchool($this);
  821.         }
  822.         
  823.         return $this;
  824.     }
  825.     /*
  826.      * @return Collection<int, News>
  827.     */
  828.     public function getNews(): Collection
  829.     {
  830.         return $this->news;
  831.     }
  832.     public function addNews(News $news): static
  833.     {
  834.         if (!$this->news->contains($news)) {
  835.             $this->news->add($news);
  836.             $news->setSchool($this);
  837.         }
  838.         return $this;
  839.     }
  840.     public function removeCategoryEvent(CategoryEvent $categoryEvent): static
  841.     {
  842.         if ($this->categoryEvents->removeElement($categoryEvent)) {
  843.             // set the owning side to null (unless already changed)
  844.             if ($categoryEvent->getSchool() === $this) {
  845.                 $categoryEvent->setSchool(null);
  846.             }
  847.         }
  848.         return $this;
  849.     }
  850.     public function removeNews(News $news): static
  851.     {
  852.         if ($this->news->removeElement($news)) {
  853.             // set the owning side to null (unless already changed)
  854.             if ($news->getSchool() === $this) {
  855.                 $news->setSchool(null);
  856.             }
  857.         }
  858.         return $this;
  859.     }
  860.     /**
  861.      * @return Collection<int, Agenda>
  862.      */
  863.     public function getAgendas(): Collection
  864.     {
  865.         return $this->agendas;
  866.     }
  867.     public function addAgenda(Agenda $agenda): static
  868.     {
  869.         if (!$this->agendas->contains($agenda)) {
  870.             $this->agendas->add($agenda);
  871.             $agenda->setSchool($this);
  872.         }
  873.         return $this;
  874.     }
  875.     public function removeAgenda(Agenda $agenda): static
  876.     {
  877.         if ($this->agendas->removeElement($agenda)) {
  878.             // set the owning side to null (unless already changed)
  879.             if ($agenda->getSchool() === $this) {
  880.                 $agenda->setSchool(null);
  881.             }
  882.         }
  883.         return $this;
  884.     }
  885.     /**
  886.      * @return Collection<int, ExamAgenda>
  887.      */
  888.     public function getExamAgendas(): Collection
  889.     {
  890.         return $this->examAgendas;
  891.     }
  892.     public function addExamAgenda(ExamAgenda $examAgenda): static
  893.     {
  894.         if (!$this->examAgendas->contains($examAgenda)) {
  895.             $this->examAgendas->add($examAgenda);
  896.             $examAgenda->setSchool($this);
  897.         }
  898.         return $this;
  899.     }
  900.     public function removeExamAgenda(ExamAgenda $examAgenda): static
  901.     {
  902.         if ($this->examAgendas->removeElement($examAgenda)) {
  903.             // set the owning side to null (unless already changed)
  904.             if ($examAgenda->getSchool() === $this) {
  905.                 $examAgenda->setSchool(null);
  906.             }
  907.         }
  908.         return $this;
  909.     }
  910.     /**
  911.      * @return Collection<int, SubSequence>
  912.      */
  913.     public function getSubSequences(): Collection
  914.     {
  915.         return $this->subSequences;
  916.     }
  917.     public function addSubSequence(SubSequence $subSequence): static
  918.     {
  919.         if (!$this->subSequences->contains($subSequence)) {
  920.             $this->subSequences->add($subSequence);
  921.             $subSequence->setSchool($this);
  922.         }
  923.         return $this;
  924.     }
  925.     public function removeSubSequence(SubSequence $subSequence): static
  926.     {
  927.         if ($this->subSequences->removeElement($subSequence)) {
  928.             // set the owning side to null (unless already changed)
  929.             if ($subSequence->getSchool() === $this) {
  930.                 $subSequence->setSchool(null);
  931.             }
  932.         }
  933.         return $this;
  934.     }
  935.     /**
  936.      * @return Collection<int, SubNote>
  937.      */
  938.     public function getSubNotes(): Collection
  939.     {
  940.         return $this->subNotes;
  941.     }
  942.     public function addSubNote(SubNote $subNote): static
  943.     {
  944.         if (!$this->subNotes->contains($subNote)) {
  945.             $this->subNotes->add($subNote);
  946.             $subNote->setSchool($this);
  947.         }
  948.         return $this;
  949.     }
  950.     public function removeSubNote(SubNote $subNote): static
  951.     {
  952.         if ($this->subNotes->removeElement($subNote)) {
  953.             // set the owning side to null (unless already changed)
  954.             if ($subNote->getSchool() === $this) {
  955.                 $subNote->setSchool(null);
  956.             }
  957.         }
  958.         return $this;
  959.     }
  960.     /**
  961.      * @return Collection<int, GlobalExam>
  962.      */
  963.     public function getGlobalExams(): Collection
  964.     {
  965.         return $this->globalExams;
  966.     }
  967.     public function addGlobalExam(GlobalExam $globalExam): static
  968.     {
  969.         if (!$this->globalExams->contains($globalExam)) {
  970.             $this->globalExams->add($globalExam);
  971.             $globalExam->setSchool($this);
  972.         }
  973.         return $this;
  974.     }
  975.     public function removeGlobalExam(GlobalExam $globalExam): static
  976.     {
  977.         if ($this->globalExams->removeElement($globalExam)) {
  978.             // set the owning side to null (unless already changed)
  979.             if ($globalExam->getSchool() === $this) {
  980.                 $globalExam->setSchool(null);
  981.             }
  982.         }
  983.         return $this;
  984.     }
  985.     /**
  986.      * @return Collection<int, GlobalQuarter>
  987.      */
  988.     public function getGlobalQuarters(): Collection
  989.     {
  990.         return $this->globalQuarters;
  991.     }
  992.     public function addGlobalQuarter(GlobalQuarter $globalQuarter): static
  993.     {
  994.         if (!$this->globalQuarters->contains($globalQuarter)) {
  995.             $this->globalQuarters->add($globalQuarter);
  996.             $globalQuarter->setSchool($this);
  997.         }
  998.         return $this;
  999.     }
  1000.     public function removeGlobalQuarter(GlobalQuarter $globalQuarter): static
  1001.     {
  1002.         if ($this->globalQuarters->removeElement($globalQuarter)) {
  1003.             // set the owning side to null (unless already changed)
  1004.             if ($globalQuarter->getSchool() === $this) {
  1005.                 $globalQuarter->setSchool(null);
  1006.             }
  1007.         }
  1008.         return $this;
  1009.     }
  1010.     /**
  1011.      * @return Collection<int, Appreciation>
  1012.      */
  1013.     public function getAppreciations(): Collection
  1014.     {
  1015.         return $this->appreciations;
  1016.     }
  1017.     public function addAppreciation(Appreciation $appreciation): static
  1018.     {
  1019.         if (!$this->appreciations->contains($appreciation)) {
  1020.             $this->appreciations->add($appreciation);
  1021.             $appreciation->setSchool($this);
  1022.         }
  1023.         return $this;
  1024.     }
  1025.     public function removeAppreciation(Appreciation $appreciation): static
  1026.     {
  1027.         if ($this->appreciations->removeElement($appreciation)) {
  1028.             // set the owning side to null (unless already changed)
  1029.             if ($appreciation->getSchool() === $this) {
  1030.                 $appreciation->setSchool(null);
  1031.             }
  1032.         }
  1033.         return $this;
  1034.     }
  1035.     /**
  1036.      * @return Collection<int, Scolarity>
  1037.      */
  1038.     public function getScolarities(): Collection
  1039.     {
  1040.         return $this->scolarities;
  1041.     }
  1042.     public function addScolarity(Scolarity $scolarity): static
  1043.     {
  1044.         if (!$this->scolarities->contains($scolarity)) {
  1045.             $this->scolarities->add($scolarity);
  1046.             $scolarity->setSchool($this);
  1047.         }
  1048.         return $this;
  1049.     }
  1050.     public function removeScolarity(Scolarity $scolarity): static
  1051.     {
  1052.         if ($this->scolarities->removeElement($scolarity)) {
  1053.             // set the owning side to null (unless already changed)
  1054.             if ($scolarity->getSchool() === $this) {
  1055.                 $scolarity->setSchool(null);
  1056.             }
  1057.         }
  1058.         return $this;
  1059.     }
  1060.     /**
  1061.      * @return Collection<int, ScolarityHistory>
  1062.      */
  1063.     public function getScolarityHistories(): Collection
  1064.     {
  1065.         return $this->scolarityHistories;
  1066.     }
  1067.     public function addScolarityHistory(ScolarityHistory $scolarityHistory): static
  1068.     {
  1069.         if (!$this->scolarityHistories->contains($scolarityHistory)) {
  1070.             $this->scolarityHistories->add($scolarityHistory);
  1071.             $scolarityHistory->setSchool($this);
  1072.         }
  1073.         return $this;
  1074.     }
  1075.     public function removeScolarityHistory(ScolarityHistory $scolarityHistory): static
  1076.     {
  1077.         if ($this->scolarityHistories->removeElement($scolarityHistory)) {
  1078.             // set the owning side to null (unless already changed)
  1079.             if ($scolarityHistory->getSchool() === $this) {
  1080.                 $scolarityHistory->setSchool(null);
  1081.             }
  1082.         }
  1083.         return $this;
  1084.     }
  1085.     /**
  1086.      * @return Collection<int, DisciplineWarning>
  1087.      */
  1088.     public function getDisciplineWarnings(): Collection
  1089.     {
  1090.         return $this->disciplineWarnings;
  1091.     }
  1092.     public function addDisciplineWarning(DisciplineWarning $disciplineWarning): static
  1093.     {
  1094.         if (!$this->disciplineWarnings->contains($disciplineWarning)) {
  1095.             $this->disciplineWarnings->add($disciplineWarning);
  1096.             $disciplineWarning->setSchool($this);
  1097.         }
  1098.         return $this;
  1099.     }
  1100.     public function removeDisciplineWarning(DisciplineWarning $disciplineWarning): static
  1101.     {
  1102.         if ($this->disciplineWarnings->removeElement($disciplineWarning)) {
  1103.             // set the owning side to null (unless already changed)
  1104.             if ($disciplineWarning->getSchool() === $this) {
  1105.                 $disciplineWarning->setSchool(null);
  1106.             }
  1107.         }
  1108.         return $this;
  1109.     }
  1110.     /**
  1111.      * @return Collection<int, DisciplineBlame>
  1112.      */
  1113.     public function getDisciplineBlames(): Collection
  1114.     {
  1115.         return $this->disciplineBlames;
  1116.     }
  1117.     public function addDisciplineBlame(DisciplineBlame $disciplineBlame): static
  1118.     {
  1119.         if (!$this->disciplineBlames->contains($disciplineBlame)) {
  1120.             $this->disciplineBlames->add($disciplineBlame);
  1121.             $disciplineBlame->setSchool($this);
  1122.         }
  1123.         return $this;
  1124.     }
  1125.     public function removeDisciplineBlame(DisciplineBlame $disciplineBlame): static
  1126.     {
  1127.         if ($this->disciplineBlames->removeElement($disciplineBlame)) {
  1128.             // set the owning side to null (unless already changed)
  1129.             if ($disciplineBlame->getSchool() === $this) {
  1130.                 $disciplineBlame->setSchool(null);
  1131.             }
  1132.         }
  1133.         return $this;
  1134.     }
  1135.     /**
  1136.      * @return Collection<int, DisciplineExclusion>
  1137.      */
  1138.     public function getDisciplineExclusions(): Collection
  1139.     {
  1140.         return $this->disciplineExclusions;
  1141.     }
  1142.     public function addDisciplineExclusion(DisciplineExclusion $disciplineExclusion): static
  1143.     {
  1144.         if (!$this->disciplineExclusions->contains($disciplineExclusion)) {
  1145.             $this->disciplineExclusions->add($disciplineExclusion);
  1146.             $disciplineExclusion->setSchool($this);
  1147.         }
  1148.         return $this;
  1149.     }
  1150.     public function removeDisciplineExclusion(DisciplineExclusion $disciplineExclusion): static
  1151.     {
  1152.         if ($this->disciplineExclusions->removeElement($disciplineExclusion)) {
  1153.             // set the owning side to null (unless already changed)
  1154.             if ($disciplineExclusion->getSchool() === $this) {
  1155.                 $disciplineExclusion->setSchool(null);
  1156.             }
  1157.         }
  1158.         return $this;
  1159.     }
  1160.     /**
  1161.      * @return Collection<int, ParentNote>
  1162.      */
  1163.     public function getParentNotes(): Collection
  1164.     {
  1165.         return $this->parentNotes;
  1166.     }
  1167.     public function addParentNote(ParentNote $parentNote): static
  1168.     {
  1169.         if (!$this->parentNotes->contains($parentNote)) {
  1170.             $this->parentNotes->add($parentNote);
  1171.             $parentNote->setSchool($this);
  1172.         }
  1173.         return $this;
  1174.     }
  1175.     public function removeParentNote(ParentNote $parentNote): static
  1176.     {
  1177.         if ($this->parentNotes->removeElement($parentNote)) {
  1178.             // set the owning side to null (unless already changed)
  1179.             if ($parentNote->getSchool() === $this) {
  1180.                 $parentNote->setSchool(null);
  1181.             }
  1182.         }
  1183.         return $this;
  1184.     }
  1185.     /**
  1186.      * @return Collection<int, JustifyAbsence>
  1187.      */
  1188.     public function getJustifyAbsences(): Collection
  1189.     {
  1190.         return $this->justifyAbsences;
  1191.     }
  1192.     public function addJustifyAbsence(JustifyAbsence $justifyAbsence): static
  1193.     {
  1194.         if (!$this->justifyAbsences->contains($justifyAbsence)) {
  1195.             $this->justifyAbsences->add($justifyAbsence);
  1196.             $justifyAbsence->setSchool($this);
  1197.         }
  1198.         return $this;
  1199.     }
  1200.     public function removeJustifyAbsence(JustifyAbsence $justifyAbsence): static
  1201.     {
  1202.         if ($this->justifyAbsences->removeElement($justifyAbsence)) {
  1203.             // set the owning side to null (unless already changed)
  1204.             if ($justifyAbsence->getSchool() === $this) {
  1205.                 $justifyAbsence->setSchool(null);
  1206.             }
  1207.         }
  1208.         return $this;
  1209.     }
  1210.     /**
  1211.      * @return Collection<int, AbsenceRetainedConfig>
  1212.      */
  1213.     public function getAbsenceRetainedConfigs(): Collection
  1214.     {
  1215.         return $this->absenceRetainedConfigs;
  1216.     }
  1217.     public function addAbsenceRetainedConfig(AbsenceRetainedConfig $absenceRetainedConfig): static
  1218.     {
  1219.         if (!$this->absenceRetainedConfigs->contains($absenceRetainedConfig)) {
  1220.             $this->absenceRetainedConfigs->add($absenceRetainedConfig);
  1221.             $absenceRetainedConfig->setSchool($this);
  1222.         }
  1223.         return $this;
  1224.     }
  1225.     public function removeAbsenceRetainedConfig(AbsenceRetainedConfig $absenceRetainedConfig): static
  1226.     {
  1227.         if ($this->absenceRetainedConfigs->removeElement($absenceRetainedConfig)) {
  1228.             // set the owning side to null (unless already changed)
  1229.             if ($absenceRetainedConfig->getSchool() === $this) {
  1230.                 $absenceRetainedConfig->setSchool(null);
  1231.             }
  1232.         }
  1233.         return $this;
  1234.     }
  1235.     /**
  1236.      * @return Collection<int, AbsenceWarningConfig>
  1237.      */
  1238.     public function getAbsenceWarningConfigs(): Collection
  1239.     {
  1240.         return $this->absenceWarningConfigs;
  1241.     }
  1242.     public function addAbsenceWarningConfig(AbsenceWarningConfig $absenceWarningConfig): static
  1243.     {
  1244.         if (!$this->absenceWarningConfigs->contains($absenceWarningConfig)) {
  1245.             $this->absenceWarningConfigs->add($absenceWarningConfig);
  1246.             $absenceWarningConfig->setSchool($this);
  1247.         }
  1248.         return $this;
  1249.     }
  1250.     public function removeAbsenceWarningConfig(AbsenceWarningConfig $absenceWarningConfig): static
  1251.     {
  1252.         if ($this->absenceWarningConfigs->removeElement($absenceWarningConfig)) {
  1253.             // set the owning side to null (unless already changed)
  1254.             if ($absenceWarningConfig->getSchool() === $this) {
  1255.                 $absenceWarningConfig->setSchool(null);
  1256.             }
  1257.         }
  1258.         return $this;
  1259.     }
  1260.     /**
  1261.      * @return Collection<int, AbsenceExclusionConfig>
  1262.      */
  1263.     public function getAbsenceExclusionConfigs(): Collection
  1264.     {
  1265.         return $this->absenceExclusionConfigs;
  1266.     }
  1267.     public function addAbsenceExclusionConfig(AbsenceExclusionConfig $absenceExclusionConfig): static
  1268.     {
  1269.         if (!$this->absenceExclusionConfigs->contains($absenceExclusionConfig)) {
  1270.             $this->absenceExclusionConfigs->add($absenceExclusionConfig);
  1271.             $absenceExclusionConfig->setSchool($this);
  1272.         }
  1273.         return $this;
  1274.     }
  1275.     public function removeAbsenceExclusionConfig(AbsenceExclusionConfig $absenceExclusionConfig): static
  1276.     {
  1277.         if ($this->absenceExclusionConfigs->removeElement($absenceExclusionConfig)) {
  1278.             // set the owning side to null (unless already changed)
  1279.             if ($absenceExclusionConfig->getSchool() === $this) {
  1280.                 $absenceExclusionConfig->setSchool(null);
  1281.             }
  1282.         }
  1283.         return $this;
  1284.     }
  1285.     /**
  1286.      * @return Collection<int, AbsenceBlameConfig>
  1287.      */
  1288.     public function getAbsenceBlameConfigs(): Collection
  1289.     {
  1290.         return $this->absenceBlameConfigs;
  1291.     }
  1292.     public function addAbsenceBlameConfig(AbsenceBlameConfig $absenceBlameConfig): static
  1293.     {
  1294.         if (!$this->absenceBlameConfigs->contains($absenceBlameConfig)) {
  1295.             $this->absenceBlameConfigs->add($absenceBlameConfig);
  1296.             $absenceBlameConfig->setSchool($this);
  1297.         }
  1298.         return $this;
  1299.     }
  1300.     public function removeAbsenceBlameConfig(AbsenceBlameConfig $absenceBlameConfig): static
  1301.     {
  1302.         if ($this->absenceBlameConfigs->removeElement($absenceBlameConfig)) {
  1303.             // set the owning side to null (unless already changed)
  1304.             if ($absenceBlameConfig->getSchool() === $this) {
  1305.                 $absenceBlameConfig->setSchool(null);
  1306.             }
  1307.         }
  1308.         return $this;
  1309.     }
  1310.     /**
  1311.      * @return Collection<int, DisciplineRetained>
  1312.      */
  1313.     public function getDisciplineRetaineds(): Collection
  1314.     {
  1315.         return $this->disciplineRetaineds;
  1316.     }
  1317.     public function addDisciplineRetained(DisciplineRetained $disciplineRetained): static
  1318.     {
  1319.         if (!$this->disciplineRetaineds->contains($disciplineRetained)) {
  1320.             $this->disciplineRetaineds->add($disciplineRetained);
  1321.             $disciplineRetained->setSchool($this);
  1322.         }
  1323.         return $this;
  1324.     }
  1325.     public function removeDisciplineRetained(DisciplineRetained $disciplineRetained): static
  1326.     {
  1327.         if ($this->disciplineRetaineds->removeElement($disciplineRetained)) {
  1328.             // set the owning side to null (unless already changed)
  1329.             if ($disciplineRetained->getSchool() === $this) {
  1330.                 $disciplineRetained->setSchool(null);
  1331.             }
  1332.         }
  1333.         return $this;
  1334.     }
  1335.     /**
  1336.      * @return Collection<int, DefinitiveExclusion>
  1337.      */
  1338.     public function getDefinitiveExclusions(): Collection
  1339.     {
  1340.         return $this->definitiveExclusions;
  1341.     }
  1342.     public function addDefinitiveExclusion(DefinitiveExclusion $definitiveExclusion): static
  1343.     {
  1344.         if (!$this->definitiveExclusions->contains($definitiveExclusion)) {
  1345.             $this->definitiveExclusions->add($definitiveExclusion);
  1346.             $definitiveExclusion->setSchool($this);
  1347.         }
  1348.         return $this;
  1349.     }
  1350.     public function removeDefinitiveExclusion(DefinitiveExclusion $definitiveExclusion): static
  1351.     {
  1352.         if ($this->definitiveExclusions->removeElement($definitiveExclusion)) {
  1353.             // set the owning side to null (unless already changed)
  1354.             if ($definitiveExclusion->getSchool() === $this) {
  1355.                 $definitiveExclusion->setSchool(null);
  1356.             }
  1357.         }
  1358.         return $this;
  1359.     }
  1360.     /**
  1361.      * @return Collection<int, DisciplineConcile>
  1362.      */
  1363.     public function getDisciplineConciles(): Collection
  1364.     {
  1365.         return $this->disciplineConciles;
  1366.     }
  1367.     public function addDisciplineConcile(DisciplineConcile $disciplineConcile): static
  1368.     {
  1369.         if (!$this->disciplineConciles->contains($disciplineConcile)) {
  1370.             $this->disciplineConciles->add($disciplineConcile);
  1371.             $disciplineConcile->setSchool($this);
  1372.         }
  1373.         return $this;
  1374.     }
  1375.     public function removeDisciplineConcile(DisciplineConcile $disciplineConcile): static
  1376.     {
  1377.         if ($this->disciplineConciles->removeElement($disciplineConcile)) {
  1378.             // set the owning side to null (unless already changed)
  1379.             if ($disciplineConcile->getSchool() === $this) {
  1380.                 $disciplineConcile->setSchool(null);
  1381.             }
  1382.         }
  1383.         return $this;
  1384.     }
  1385.     /**
  1386.      * @return Collection<int, RetainedDisciplineConcileConfig>
  1387.      */
  1388.     public function getRetainedDisciplineConcileConfigs(): Collection
  1389.     {
  1390.         return $this->retainedDisciplineConcileConfigs;
  1391.     }
  1392.     public function addRetainedDisciplineConcileConfig(RetainedDisciplineConcileConfig $retainedDisciplineConcileConfig): static
  1393.     {
  1394.         if (!$this->retainedDisciplineConcileConfigs->contains($retainedDisciplineConcileConfig)) {
  1395.             $this->retainedDisciplineConcileConfigs->add($retainedDisciplineConcileConfig);
  1396.             $retainedDisciplineConcileConfig->setSchool($this);
  1397.         }
  1398.         return $this;
  1399.     }
  1400.     public function removeRetainedDisciplineConcileConfig(RetainedDisciplineConcileConfig $retainedDisciplineConcileConfig): static
  1401.     {
  1402.         if ($this->retainedDisciplineConcileConfigs->removeElement($retainedDisciplineConcileConfig)) {
  1403.             // set the owning side to null (unless already changed)
  1404.             if ($retainedDisciplineConcileConfig->getSchool() === $this) {
  1405.                 $retainedDisciplineConcileConfig->setSchool(null);
  1406.             }
  1407.         }
  1408.         return $this;
  1409.     }
  1410.     /**
  1411.      * @return Collection<int, RetainedBlameConfig>
  1412.      */
  1413.     public function getRetainedBlameConfigs(): Collection
  1414.     {
  1415.         return $this->retainedBlameConfigs;
  1416.     }
  1417.     public function addRetainedBlameConfig(RetainedBlameConfig $retainedBlameConfig): static
  1418.     {
  1419.         if (!$this->retainedBlameConfigs->contains($retainedBlameConfig)) {
  1420.             $this->retainedBlameConfigs->add($retainedBlameConfig);
  1421.             $retainedBlameConfig->setSchool($this);
  1422.         }
  1423.         return $this;
  1424.     }
  1425.     public function removeRetainedBlameConfig(RetainedBlameConfig $retainedBlameConfig): static
  1426.     {
  1427.         if ($this->retainedBlameConfigs->removeElement($retainedBlameConfig)) {
  1428.             // set the owning side to null (unless already changed)
  1429.             if ($retainedBlameConfig->getSchool() === $this) {
  1430.                 $retainedBlameConfig->setSchool(null);
  1431.             }
  1432.         }
  1433.         return $this;
  1434.     }
  1435.     /**
  1436.      * @return Collection<int, RetainedWarningConfig>
  1437.      */
  1438.     public function getRetainedWarningConfigs(): Collection
  1439.     {
  1440.         return $this->retainedWarningConfigs;
  1441.     }
  1442.     public function addRetainedWarningConfig(RetainedWarningConfig $retainedWarningConfig): static
  1443.     {
  1444.         if (!$this->retainedWarningConfigs->contains($retainedWarningConfig)) {
  1445.             $this->retainedWarningConfigs->add($retainedWarningConfig);
  1446.             $retainedWarningConfig->setSchool($this);
  1447.         }
  1448.         return $this;
  1449.     }
  1450.     public function removeRetainedWarningConfig(RetainedWarningConfig $retainedWarningConfig): static
  1451.     {
  1452.         if ($this->retainedWarningConfigs->removeElement($retainedWarningConfig)) {
  1453.             // set the owning side to null (unless already changed)
  1454.             if ($retainedWarningConfig->getSchool() === $this) {
  1455.                 $retainedWarningConfig->setSchool(null);
  1456.             }
  1457.         }
  1458.         return $this;
  1459.     }
  1460.     /**
  1461.      * @return Collection<int, RetainedDefinitiveExclusionConfig>
  1462.      */
  1463.     public function getRetainedDefinitiveExclusionConfigs(): Collection
  1464.     {
  1465.         return $this->retainedDefinitiveExclusionConfigs;
  1466.     }
  1467.     public function addRetainedDefinitiveExclusionConfig(RetainedDefinitiveExclusionConfig $retainedDefinitiveExclusionConfig): static
  1468.     {
  1469.         if (!$this->retainedDefinitiveExclusionConfigs->contains($retainedDefinitiveExclusionConfig)) {
  1470.             $this->retainedDefinitiveExclusionConfigs->add($retainedDefinitiveExclusionConfig);
  1471.             $retainedDefinitiveExclusionConfig->setSchool($this);
  1472.         }
  1473.         return $this;
  1474.     }
  1475.     public function removeRetainedDefinitiveExclusionConfig(RetainedDefinitiveExclusionConfig $retainedDefinitiveExclusionConfig): static
  1476.     {
  1477.         if ($this->retainedDefinitiveExclusionConfigs->removeElement($retainedDefinitiveExclusionConfig)) {
  1478.             // set the owning side to null (unless already changed)
  1479.             if ($retainedDefinitiveExclusionConfig->getSchool() === $this) {
  1480.                 $retainedDefinitiveExclusionConfig->setSchool(null);
  1481.             }
  1482.         }
  1483.         return $this;
  1484.     }
  1485.     /**
  1486.      * @return Collection<int, BlameDefinitiveExclusionConfig>
  1487.      */
  1488.     public function getBlameDefinitiveExclusionConfigs(): Collection
  1489.     {
  1490.         return $this->blameDefinitiveExclusionConfigs;
  1491.     }
  1492.     public function addBlameDefinitiveExclusionConfig(BlameDefinitiveExclusionConfig $blameDefinitiveExclusionConfig): static
  1493.     {
  1494.         if (!$this->blameDefinitiveExclusionConfigs->contains($blameDefinitiveExclusionConfig)) {
  1495.             $this->blameDefinitiveExclusionConfigs->add($blameDefinitiveExclusionConfig);
  1496.             $blameDefinitiveExclusionConfig->setSchool($this);
  1497.         }
  1498.         return $this;
  1499.     }
  1500.     public function removeBlameDefinitiveExclusionConfig(BlameDefinitiveExclusionConfig $blameDefinitiveExclusionConfig): static
  1501.     {
  1502.         if ($this->blameDefinitiveExclusionConfigs->removeElement($blameDefinitiveExclusionConfig)) {
  1503.             // set the owning side to null (unless already changed)
  1504.             if ($blameDefinitiveExclusionConfig->getSchool() === $this) {
  1505.                 $blameDefinitiveExclusionConfig->setSchool(null);
  1506.             }
  1507.         }
  1508.         return $this;
  1509.     }
  1510.     /**
  1511.      * @return Collection<int, BlameExclusionConfig>
  1512.      */
  1513.     public function getBlameExclusionConfigs(): Collection
  1514.     {
  1515.         return $this->blameExclusionConfigs;
  1516.     }
  1517.     public function addBlameExclusionConfig(BlameExclusionConfig $blameExclusionConfig): static
  1518.     {
  1519.         if (!$this->blameExclusionConfigs->contains($blameExclusionConfig)) {
  1520.             $this->blameExclusionConfigs->add($blameExclusionConfig);
  1521.             $blameExclusionConfig->setSchool($this);
  1522.         }
  1523.         return $this;
  1524.     }
  1525.     public function removeBlameExclusionConfig(BlameExclusionConfig $blameExclusionConfig): static
  1526.     {
  1527.         if ($this->blameExclusionConfigs->removeElement($blameExclusionConfig)) {
  1528.             // set the owning side to null (unless already changed)
  1529.             if ($blameExclusionConfig->getSchool() === $this) {
  1530.                 $blameExclusionConfig->setSchool(null);
  1531.             }
  1532.         }
  1533.         return $this;
  1534.     }
  1535.     /**
  1536.      * @return Collection<int, BlameWarningConfig>
  1537.      */
  1538.     public function getBlameWarningConfigs(): Collection
  1539.     {
  1540.         return $this->blameWarningConfigs;
  1541.     }
  1542.     public function addBlameWarningConfig(BlameWarningConfig $blameWarningConfig): static
  1543.     {
  1544.         if (!$this->blameWarningConfigs->contains($blameWarningConfig)) {
  1545.             $this->blameWarningConfigs->add($blameWarningConfig);
  1546.             $blameWarningConfig->setSchool($this);
  1547.         }
  1548.         return $this;
  1549.     }
  1550.     public function removeBlameWarningConfig(BlameWarningConfig $blameWarningConfig): static
  1551.     {
  1552.         if ($this->blameWarningConfigs->removeElement($blameWarningConfig)) {
  1553.             // set the owning side to null (unless already changed)
  1554.             if ($blameWarningConfig->getSchool() === $this) {
  1555.                 $blameWarningConfig->setSchool(null);
  1556.             }
  1557.         }
  1558.         return $this;
  1559.     }
  1560.     /**
  1561.      * @return Collection<int, BlameRetainedConfig>
  1562.      */
  1563.     public function getBlameRetainedConfigs(): Collection
  1564.     {
  1565.         return $this->blameRetainedConfigs;
  1566.     }
  1567.     public function addBlameRetainedConfig(BlameRetainedConfig $blameRetainedConfig): static
  1568.     {
  1569.         if (!$this->blameRetainedConfigs->contains($blameRetainedConfig)) {
  1570.             $this->blameRetainedConfigs->add($blameRetainedConfig);
  1571.             $blameRetainedConfig->setSchool($this);
  1572.         }
  1573.         return $this;
  1574.     }
  1575.     public function removeBlameRetainedConfig(BlameRetainedConfig $blameRetainedConfig): static
  1576.     {
  1577.         if ($this->blameRetainedConfigs->removeElement($blameRetainedConfig)) {
  1578.             // set the owning side to null (unless already changed)
  1579.             if ($blameRetainedConfig->getSchool() === $this) {
  1580.                 $blameRetainedConfig->setSchool(null);
  1581.             }
  1582.         }
  1583.         return $this;
  1584.     }
  1585.     /**
  1586.      * @return Collection<int, BlameDisciplineConcileConfig>
  1587.      */
  1588.     public function getBlameDisciplineConcileConfigs(): Collection
  1589.     {
  1590.         return $this->blameDisciplineConcileConfigs;
  1591.     }
  1592.     public function addBlameDisciplineConcileConfig(BlameDisciplineConcileConfig $blameDisciplineConcileConfig): static
  1593.     {
  1594.         if (!$this->blameDisciplineConcileConfigs->contains($blameDisciplineConcileConfig)) {
  1595.             $this->blameDisciplineConcileConfigs->add($blameDisciplineConcileConfig);
  1596.             $blameDisciplineConcileConfig->setSchool($this);
  1597.         }
  1598.         return $this;
  1599.     }
  1600.     public function removeBlameDisciplineConcileConfig(BlameDisciplineConcileConfig $blameDisciplineConcileConfig): static
  1601.     {
  1602.         if ($this->blameDisciplineConcileConfigs->removeElement($blameDisciplineConcileConfig)) {
  1603.             // set the owning side to null (unless already changed)
  1604.             if ($blameDisciplineConcileConfig->getSchool() === $this) {
  1605.                 $blameDisciplineConcileConfig->setSchool(null);
  1606.             }
  1607.         }
  1608.         return $this;
  1609.     }
  1610.     /**
  1611.      * @return Collection<int, RetainedExclusionConfig>
  1612.      */
  1613.     public function getRetainedExclusionConfigs(): Collection
  1614.     {
  1615.         return $this->retainedExclusionConfigs;
  1616.     }
  1617.     public function addRetainedExclusionConfig(RetainedExclusionConfig $retainedExclusionConfig): static
  1618.     {
  1619.         if (!$this->retainedExclusionConfigs->contains($retainedExclusionConfig)) {
  1620.             $this->retainedExclusionConfigs->add($retainedExclusionConfig);
  1621.             $retainedExclusionConfig->setSchool($this);
  1622.         }
  1623.         return $this;
  1624.     }
  1625.     public function removeRetainedExclusionConfig(RetainedExclusionConfig $retainedExclusionConfig): static
  1626.     {
  1627.         if ($this->retainedExclusionConfigs->removeElement($retainedExclusionConfig)) {
  1628.             // set the owning side to null (unless already changed)
  1629.             if ($retainedExclusionConfig->getSchool() === $this) {
  1630.                 $retainedExclusionConfig->setSchool(null);
  1631.             }
  1632.         }
  1633.         return $this;
  1634.     }
  1635.     /**
  1636.      * @return Collection<int, WarningExclusionConfig>
  1637.      */
  1638.     public function getWarningExclusionConfigs(): Collection
  1639.     {
  1640.         return $this->warningExclusionConfigs;
  1641.     }
  1642.     public function addWarningExclusionConfig(WarningExclusionConfig $warningExclusionConfig): static
  1643.     {
  1644.         if (!$this->warningExclusionConfigs->contains($warningExclusionConfig)) {
  1645.             $this->warningExclusionConfigs->add($warningExclusionConfig);
  1646.             $warningExclusionConfig->setSchool($this);
  1647.         }
  1648.         return $this;
  1649.     }
  1650.     public function removeWarningExclusionConfig(WarningExclusionConfig $warningExclusionConfig): static
  1651.     {
  1652.         if ($this->warningExclusionConfigs->removeElement($warningExclusionConfig)) {
  1653.             // set the owning side to null (unless already changed)
  1654.             if ($warningExclusionConfig->getSchool() === $this) {
  1655.                 $warningExclusionConfig->setSchool(null);
  1656.             }
  1657.         }
  1658.         return $this;
  1659.     }
  1660.     /**
  1661.      * @return Collection<int, WarningDefinitiveExclusionConfig>
  1662.      */
  1663.     public function getWarningDefinitiveExclusionConfigs(): Collection
  1664.     {
  1665.         return $this->warningDefinitiveExclusionConfigs;
  1666.     }
  1667.     public function addWarningDefinitiveExclusionConfig(WarningDefinitiveExclusionConfig $warningDefinitiveExclusionConfig): static
  1668.     {
  1669.         if (!$this->warningDefinitiveExclusionConfigs->contains($warningDefinitiveExclusionConfig)) {
  1670.             $this->warningDefinitiveExclusionConfigs->add($warningDefinitiveExclusionConfig);
  1671.             $warningDefinitiveExclusionConfig->setSchool($this);
  1672.         }
  1673.         return $this;
  1674.     }
  1675.     public function removeWarningDefinitiveExclusionConfig(WarningDefinitiveExclusionConfig $warningDefinitiveExclusionConfig): static
  1676.     {
  1677.         if ($this->warningDefinitiveExclusionConfigs->removeElement($warningDefinitiveExclusionConfig)) {
  1678.             // set the owning side to null (unless already changed)
  1679.             if ($warningDefinitiveExclusionConfig->getSchool() === $this) {
  1680.                 $warningDefinitiveExclusionConfig->setSchool(null);
  1681.             }
  1682.         }
  1683.         return $this;
  1684.     }
  1685.     public function getType(): ?int
  1686.     {
  1687.         return $this->type;
  1688.     }
  1689.     public function setType(?int $type): static
  1690.     {
  1691.         $this->type $type;
  1692.         return $this;
  1693.     }
  1694.     public function getEnglishName(): ?string
  1695.     {
  1696.         return $this->englishName;
  1697.     }
  1698.     public function setEnglishName(?string $englishName): static
  1699.     {
  1700.         $this->englishName $englishName;
  1701.         return $this;
  1702.     }
  1703.     public function getLangage(): ?int
  1704.     {
  1705.         return $this->langage;
  1706.     }
  1707.     public function setLangage(?int $langage): static
  1708.     {
  1709.         $this->langage $langage;
  1710.         return $this;
  1711.     }
  1712.     /**
  1713.      * @return Collection<int, PrimaryParentNote>
  1714.      */
  1715.     public function getPrimaryParentNotes(): Collection
  1716.     {
  1717.         return $this->primaryParentNotes;
  1718.     }
  1719.     public function addPrimaryParentNote(PrimaryParentNote $primaryParentNote): static
  1720.     {
  1721.         if (!$this->primaryParentNotes->contains($primaryParentNote)) {
  1722.             $this->primaryParentNotes->add($primaryParentNote);
  1723.             $primaryParentNote->setSchool($this);
  1724.         }
  1725.         return $this;
  1726.     }
  1727.     public function removePrimaryParentNote(PrimaryParentNote $primaryParentNote): static
  1728.     {
  1729.         if ($this->primaryParentNotes->removeElement($primaryParentNote)) {
  1730.             // set the owning side to null (unless already changed)
  1731.             if ($primaryParentNote->getSchool() === $this) {
  1732.                 $primaryParentNote->setSchool(null);
  1733.             }
  1734.         }
  1735.         return $this;
  1736.     }
  1737.     /**
  1738.      * @return Collection<int, PrimaryNote>
  1739.      */
  1740.     public function getPrimaryNotes(): Collection
  1741.     {
  1742.         return $this->primaryNotes;
  1743.     }
  1744.     public function addPrimaryNote(PrimaryNote $primaryNote): static
  1745.     {
  1746.         if (!$this->primaryNotes->contains($primaryNote)) {
  1747.             $this->primaryNotes->add($primaryNote);
  1748.             $primaryNote->setSchool($this);
  1749.         }
  1750.         return $this;
  1751.     }
  1752.     public function removePrimaryNote(PrimaryNote $primaryNote): static
  1753.     {
  1754.         if ($this->primaryNotes->removeElement($primaryNote)) {
  1755.             // set the owning side to null (unless already changed)
  1756.             if ($primaryNote->getSchool() === $this) {
  1757.                 $primaryNote->setSchool(null);
  1758.             }
  1759.         }
  1760.         return $this;
  1761.     }
  1762.     /**
  1763.      * @return Collection<int, VerbalProcessCategory>
  1764.      */
  1765.     public function getVerbalProcessCategories(): Collection
  1766.     {
  1767.         return $this->verbalProcessCategories;
  1768.     }
  1769.     public function addVerbalProcessCategory(VerbalProcessCategory $verbalProcessCategory): static
  1770.     {
  1771.         if (!$this->verbalProcessCategories->contains($verbalProcessCategory)) {
  1772.             $this->verbalProcessCategories->add($verbalProcessCategory);
  1773.             $verbalProcessCategory->setSchool($this);
  1774.         }
  1775.         return $this;
  1776.     }
  1777.     public function removeVerbalProcessCategory(VerbalProcessCategory $verbalProcessCategory): static
  1778.     {
  1779.         if ($this->verbalProcessCategories->removeElement($verbalProcessCategory)) {
  1780.             // set the owning side to null (unless already changed)
  1781.             if ($verbalProcessCategory->getSchool() === $this) {
  1782.                 $verbalProcessCategory->setSchool(null);
  1783.             }
  1784.         }
  1785.         return $this;
  1786.     }
  1787.     /**
  1788.      * @return Collection<int, GlobalDisciplineConfig>
  1789.      */
  1790.     public function getGlobalDisciplineConfigs(): Collection
  1791.     {
  1792.         return $this->globalDisciplineConfigs;
  1793.     }
  1794.     public function addGlobalDisciplineConfig(GlobalDisciplineConfig $globalDisciplineConfig): static
  1795.     {
  1796.         if (!$this->globalDisciplineConfigs->contains($globalDisciplineConfig)) {
  1797.             $this->globalDisciplineConfigs->add($globalDisciplineConfig);
  1798.             $globalDisciplineConfig->setSchool($this);
  1799.         }
  1800.         return $this;
  1801.     }
  1802.     public function removeGlobalDisciplineConfig(GlobalDisciplineConfig $globalDisciplineConfig): static
  1803.     {
  1804.         if ($this->globalDisciplineConfigs->removeElement($globalDisciplineConfig)) {
  1805.             // set the owning side to null (unless already changed)
  1806.             if ($globalDisciplineConfig->getSchool() === $this) {
  1807.                 $globalDisciplineConfig->setSchool(null);
  1808.             }
  1809.         }
  1810.         return $this;
  1811.     }
  1812.     /**
  1813.      * @return Collection<int, DisciplinePunish>
  1814.      */
  1815.     public function getDisciplinePunishes(): Collection
  1816.     {
  1817.         return $this->disciplinePunishes;
  1818.     }
  1819.     public function addDisciplinePunish(DisciplinePunish $disciplinePunish): static
  1820.     {
  1821.         if (!$this->disciplinePunishes->contains($disciplinePunish)) {
  1822.             $this->disciplinePunishes->add($disciplinePunish);
  1823.             $disciplinePunish->setSchool($this);
  1824.         }
  1825.         return $this;
  1826.     }
  1827.     public function removeDisciplinePunish(DisciplinePunish $disciplinePunish): static
  1828.     {
  1829.         if ($this->disciplinePunishes->removeElement($disciplinePunish)) {
  1830.             // set the owning side to null (unless already changed)
  1831.             if ($disciplinePunish->getSchool() === $this) {
  1832.                 $disciplinePunish->setSchool(null);
  1833.             }
  1834.         }
  1835.         return $this;
  1836.     }
  1837.     /**
  1838.      * @return Collection<int, GlobalDisciplineEnabledConfig>
  1839.      */
  1840.     public function getGlobalDisciplineEnabledConfigs(): Collection
  1841.     {
  1842.         return $this->globalDisciplineEnabledConfigs;
  1843.     }
  1844.     public function addGlobalDisciplineEnabledConfig(GlobalDisciplineEnabledConfig $globalDisciplineEnabledConfig): static
  1845.     {
  1846.         if (!$this->globalDisciplineEnabledConfigs->contains($globalDisciplineEnabledConfig)) {
  1847.             $this->globalDisciplineEnabledConfigs->add($globalDisciplineEnabledConfig);
  1848.             $globalDisciplineEnabledConfig->setSchool($this);
  1849.         }
  1850.         return $this;
  1851.     }
  1852.     public function removeGlobalDisciplineEnabledConfig(GlobalDisciplineEnabledConfig $globalDisciplineEnabledConfig): static
  1853.     {
  1854.         if ($this->globalDisciplineEnabledConfigs->removeElement($globalDisciplineEnabledConfig)) {
  1855.             // set the owning side to null (unless already changed)
  1856.             if ($globalDisciplineEnabledConfig->getSchool() === $this) {
  1857.                 $globalDisciplineEnabledConfig->setSchool(null);
  1858.             }
  1859.         }
  1860.         return $this;
  1861.     }
  1862.     /**
  1863.      * @return Collection<int, BlamePunishConfig>
  1864.      */
  1865.     public function getBlamePunishConfigs(): Collection
  1866.     {
  1867.         return $this->blamePunishConfigs;
  1868.     }
  1869.     public function addBlamePunishConfig(BlamePunishConfig $blamePunishConfig): static
  1870.     {
  1871.         if (!$this->blamePunishConfigs->contains($blamePunishConfig)) {
  1872.             $this->blamePunishConfigs->add($blamePunishConfig);
  1873.             $blamePunishConfig->setSchool($this);
  1874.         }
  1875.         return $this;
  1876.     }
  1877.     public function removeBlamePunishConfig(BlamePunishConfig $blamePunishConfig): static
  1878.     {
  1879.         if ($this->blamePunishConfigs->removeElement($blamePunishConfig)) {
  1880.             // set the owning side to null (unless already changed)
  1881.             if ($blamePunishConfig->getSchool() === $this) {
  1882.                 $blamePunishConfig->setSchool(null);
  1883.             }
  1884.         }
  1885.         return $this;
  1886.     }
  1887.     /**
  1888.      * @return Collection<int, AbsencePunishConfig>
  1889.      */
  1890.     public function getAbsencePunishConfigs(): Collection
  1891.     {
  1892.         return $this->absencePunishConfigs;
  1893.     }
  1894.     public function addAbsencePunishConfig(AbsencePunishConfig $absencePunishConfig): static
  1895.     {
  1896.         if (!$this->absencePunishConfigs->contains($absencePunishConfig)) {
  1897.             $this->absencePunishConfigs->add($absencePunishConfig);
  1898.             $absencePunishConfig->setSchool($this);
  1899.         }
  1900.         return $this;
  1901.     }
  1902.     public function removeAbsencePunishConfig(AbsencePunishConfig $absencePunishConfig): static
  1903.     {
  1904.         if ($this->absencePunishConfigs->removeElement($absencePunishConfig)) {
  1905.             // set the owning side to null (unless already changed)
  1906.             if ($absencePunishConfig->getSchool() === $this) {
  1907.                 $absencePunishConfig->setSchool(null);
  1908.             }
  1909.         }
  1910.         return $this;
  1911.     }
  1912.     /**
  1913.      * @return Collection<int, WarningPunishConfig>
  1914.      */
  1915.     public function getWarningPunishConfigs(): Collection
  1916.     {
  1917.         return $this->warningPunishConfigs;
  1918.     }
  1919.     public function addWarningPunishConfig(WarningPunishConfig $warningPunishConfig): static
  1920.     {
  1921.         if (!$this->warningPunishConfigs->contains($warningPunishConfig)) {
  1922.             $this->warningPunishConfigs->add($warningPunishConfig);
  1923.             $warningPunishConfig->setSchool($this);
  1924.         }
  1925.         return $this;
  1926.     }
  1927.     public function removeWarningPunishConfig(WarningPunishConfig $warningPunishConfig): static
  1928.     {
  1929.         if ($this->warningPunishConfigs->removeElement($warningPunishConfig)) {
  1930.             // set the owning side to null (unless already changed)
  1931.             if ($warningPunishConfig->getSchool() === $this) {
  1932.                 $warningPunishConfig->setSchool(null);
  1933.             }
  1934.         }
  1935.         return $this;
  1936.     }
  1937.     /**
  1938.      * @return Collection<int, PunishRetainedConfig>
  1939.      */
  1940.     public function getPunishRetainedConfigs(): Collection
  1941.     {
  1942.         return $this->punishRetainedConfigs;
  1943.     }
  1944.     public function addPunishRetainedConfig(PunishRetainedConfig $punishRetainedConfig): static
  1945.     {
  1946.         if (!$this->punishRetainedConfigs->contains($punishRetainedConfig)) {
  1947.             $this->punishRetainedConfigs->add($punishRetainedConfig);
  1948.             $punishRetainedConfig->setSchool($this);
  1949.         }
  1950.         return $this;
  1951.     }
  1952.     public function removePunishRetainedConfig(PunishRetainedConfig $punishRetainedConfig): static
  1953.     {
  1954.         if ($this->punishRetainedConfigs->removeElement($punishRetainedConfig)) {
  1955.             // set the owning side to null (unless already changed)
  1956.             if ($punishRetainedConfig->getSchool() === $this) {
  1957.                 $punishRetainedConfig->setSchool(null);
  1958.             }
  1959.         }
  1960.         return $this;
  1961.     }
  1962.     /**
  1963.      * @return Collection<int, PunishWarningConfig>
  1964.      */
  1965.     public function getPunishWarningConfigs(): Collection
  1966.     {
  1967.         return $this->punishWarningConfigs;
  1968.     }
  1969.     public function addPunishWarningConfig(PunishWarningConfig $punishWarningConfig): static
  1970.     {
  1971.         if (!$this->punishWarningConfigs->contains($punishWarningConfig)) {
  1972.             $this->punishWarningConfigs->add($punishWarningConfig);
  1973.             $punishWarningConfig->setSchool($this);
  1974.         }
  1975.         return $this;
  1976.     }
  1977.     public function removePunishWarningConfig(PunishWarningConfig $punishWarningConfig): static
  1978.     {
  1979.         if ($this->punishWarningConfigs->removeElement($punishWarningConfig)) {
  1980.             // set the owning side to null (unless already changed)
  1981.             if ($punishWarningConfig->getSchool() === $this) {
  1982.                 $punishWarningConfig->setSchool(null);
  1983.             }
  1984.         }
  1985.         return $this;
  1986.     }
  1987.     /**
  1988.      * @return Collection<int, PunishBlameConfig>
  1989.      */
  1990.     public function getPunishBlameConfigs(): Collection
  1991.     {
  1992.         return $this->punishBlameConfigs;
  1993.     }
  1994.     public function addPunishBlameConfig(PunishBlameConfig $punishBlameConfig): static
  1995.     {
  1996.         if (!$this->punishBlameConfigs->contains($punishBlameConfig)) {
  1997.             $this->punishBlameConfigs->add($punishBlameConfig);
  1998.             $punishBlameConfig->setSchool($this);
  1999.         }
  2000.         return $this;
  2001.     }
  2002.     public function removePunishBlameConfig(PunishBlameConfig $punishBlameConfig): static
  2003.     {
  2004.         if ($this->punishBlameConfigs->removeElement($punishBlameConfig)) {
  2005.             // set the owning side to null (unless already changed)
  2006.             if ($punishBlameConfig->getSchool() === $this) {
  2007.                 $punishBlameConfig->setSchool(null);
  2008.             }
  2009.         }
  2010.         return $this;
  2011.     }
  2012.     /**
  2013.      * @return Collection<int, PunishExclusionConfig>
  2014.      */
  2015.     public function getPunishExclusionConfigs(): Collection
  2016.     {
  2017.         return $this->punishExclusionConfigs;
  2018.     }
  2019.     public function addPunishExclusionConfig(PunishExclusionConfig $punishExclusionConfig): static
  2020.     {
  2021.         if (!$this->punishExclusionConfigs->contains($punishExclusionConfig)) {
  2022.             $this->punishExclusionConfigs->add($punishExclusionConfig);
  2023.             $punishExclusionConfig->setSchool($this);
  2024.         }
  2025.         return $this;
  2026.     }
  2027.     public function removePunishExclusionConfig(PunishExclusionConfig $punishExclusionConfig): static
  2028.     {
  2029.         if ($this->punishExclusionConfigs->removeElement($punishExclusionConfig)) {
  2030.             // set the owning side to null (unless already changed)
  2031.             if ($punishExclusionConfig->getSchool() === $this) {
  2032.                 $punishExclusionConfig->setSchool(null);
  2033.             }
  2034.         }
  2035.         return $this;
  2036.     }
  2037.     public function getNameEn(): ?string
  2038.     {
  2039.         return $this->nameEn;
  2040.     }
  2041.     public function setNameEn(?string $nameEn): static
  2042.     {
  2043.         $this->nameEn $nameEn;
  2044.         return $this;
  2045.     }
  2046.     public function getRegion(): ?string
  2047.     {
  2048.         return $this->region;
  2049.     }
  2050.     public function setRegion(?string $region): static
  2051.     {
  2052.         $this->region $region;
  2053.         return $this;
  2054.     }
  2055.     public function getDepartment(): ?string
  2056.     {
  2057.         return $this->department;
  2058.     }
  2059.     public function setDepartment(?string $department): static
  2060.     {
  2061.         $this->department $department;
  2062.         return $this;
  2063.     }
  2064.     public function getArrondissement(): ?string
  2065.     {
  2066.         return $this->arrondissement;
  2067.     }
  2068.     public function setArrondissement(?string $arrondissement): static
  2069.     {
  2070.         $this->arrondissement $arrondissement;
  2071.         return $this;
  2072.     }
  2073.     /**
  2074.      * @return Collection<int, UserIphoneToken>
  2075.      */
  2076.     public function getUserIphoneTokens(): Collection
  2077.     {
  2078.         return $this->userIphoneTokens;
  2079.     }
  2080.     public function addUserIphoneToken(UserIphoneToken $userIphoneToken): static
  2081.     {
  2082.         if (!$this->userIphoneTokens->contains($userIphoneToken)) {
  2083.             $this->userIphoneTokens->add($userIphoneToken);
  2084.             $userIphoneToken->setSchool($this);
  2085.         }
  2086.         return $this;
  2087.     }
  2088.     public function removeUserIphoneToken(UserIphoneToken $userIphoneToken): static
  2089.     {
  2090.         if ($this->userIphoneTokens->removeElement($userIphoneToken)) {
  2091.             // set the owning side to null (unless already changed)
  2092.             if ($userIphoneToken->getSchool() === $this) {
  2093.                 $userIphoneToken->setSchool(null);
  2094.             }
  2095.         }
  2096.         return $this;
  2097.     }
  2098.     /**
  2099.      * @return Collection<int, UserAndroidToken>
  2100.      */
  2101.     public function getUserAndroidTokens(): Collection
  2102.     {
  2103.         return $this->userAndroidTokens;
  2104.     }
  2105.     public function addUserAndroidToken(UserAndroidToken $userAndroidToken): static
  2106.     {
  2107.         if (!$this->userAndroidTokens->contains($userAndroidToken)) {
  2108.             $this->userAndroidTokens->add($userAndroidToken);
  2109.             $userAndroidToken->setSchool($this);
  2110.         }
  2111.         return $this;
  2112.     }
  2113.     public function removeUserAndroidToken(UserAndroidToken $userAndroidToken): static
  2114.     {
  2115.         if ($this->userAndroidTokens->removeElement($userAndroidToken)) {
  2116.             // set the owning side to null (unless already changed)
  2117.             if ($userAndroidToken->getSchool() === $this) {
  2118.                 $userAndroidToken->setSchool(null);
  2119.             }
  2120.         }
  2121.         return $this;
  2122.     }
  2123.     /**
  2124.      * @return Collection<int, NewsCategory>
  2125.      */
  2126.     public function getNewsCategories(): Collection
  2127.     {
  2128.         return $this->newsCategories;
  2129.     }
  2130.     public function addNewsCategory(NewsCategory $newsCategory): static
  2131.     {
  2132.         if (!$this->newsCategories->contains($newsCategory)) {
  2133.             $this->newsCategories->add($newsCategory);
  2134.             $newsCategory->setSchool($this);
  2135.         }
  2136.         return $this;
  2137.     }
  2138.     public function removeNewsCategory(NewsCategory $newsCategory): static
  2139.     {
  2140.         if ($this->newsCategories->removeElement($newsCategory)) {
  2141.             // set the owning side to null (unless already changed)
  2142.             if ($newsCategory->getSchool() === $this) {
  2143.                 $newsCategory->setSchool(null);
  2144.             }
  2145.         }
  2146.         return $this;
  2147.     }
  2148.     /**
  2149.      * @return Collection<int, Blame>
  2150.      */
  2151.     public function getBlames(): Collection
  2152.     {
  2153.         return $this->blames;
  2154.     }
  2155.     public function addBlame(Blame $blame): static
  2156.     {
  2157.         if (!$this->blames->contains($blame)) {
  2158.             $this->blames->add($blame);
  2159.             $blame->setSchool($this);
  2160.         }
  2161.         return $this;
  2162.     }
  2163.     public function removeBlame(Blame $blame): static
  2164.     {
  2165.         if ($this->blames->removeElement($blame)) {
  2166.             // set the owning side to null (unless already changed)
  2167.             if ($blame->getSchool() === $this) {
  2168.                 $blame->setSchool(null);
  2169.             }
  2170.         }
  2171.         return $this;
  2172.     }
  2173.     /**
  2174.      * @return Collection<int, Warning>
  2175.      */
  2176.     public function getWarnings(): Collection
  2177.     {
  2178.         return $this->warnings;
  2179.     }
  2180.     public function addWarning(Warning $warning): static
  2181.     {
  2182.         if (!$this->warnings->contains($warning)) {
  2183.             $this->warnings->add($warning);
  2184.             $warning->setSchool($this);
  2185.         }
  2186.         return $this;
  2187.     }
  2188.     public function removeWarning(Warning $warning): static
  2189.     {
  2190.         if ($this->warnings->removeElement($warning)) {
  2191.             // set the owning side to null (unless already changed)
  2192.             if ($warning->getSchool() === $this) {
  2193.                 $warning->setSchool(null);
  2194.             }
  2195.         }
  2196.         return $this;
  2197.     }
  2198.     /**
  2199.      * @return Collection<int, Retained>
  2200.      */
  2201.     public function getRetaineds(): Collection
  2202.     {
  2203.         return $this->retaineds;
  2204.     }
  2205.     public function addRetained(Retained $retained): static
  2206.     {
  2207.         if (!$this->retaineds->contains($retained)) {
  2208.             $this->retaineds->add($retained);
  2209.             $retained->setSchool($this);
  2210.         }
  2211.         return $this;
  2212.     }
  2213.     public function removeRetained(Retained $retained): static
  2214.     {
  2215.         if ($this->retaineds->removeElement($retained)) {
  2216.             // set the owning side to null (unless already changed)
  2217.             if ($retained->getSchool() === $this) {
  2218.                 $retained->setSchool(null);
  2219.             }
  2220.         }
  2221.         return $this;
  2222.     }
  2223.     public function getCity(): ?string
  2224.     {
  2225.         return $this->city;
  2226.     }
  2227.     public function setCity(?string $city): static
  2228.     {
  2229.         $this->city $city;
  2230.         return $this;
  2231.     }
  2232.     public function getPhone1(): ?string
  2233.     {
  2234.         return $this->phone1;
  2235.     }
  2236.     public function setPhone1(?string $phone1): static
  2237.     {
  2238.         $this->phone1 $phone1;
  2239.         return $this;
  2240.     }
  2241.     public function getPhone2(): ?string
  2242.     {
  2243.         return $this->phone2;
  2244.     }
  2245.     public function setPhone2(?string $phone2): static
  2246.     {
  2247.         $this->phone2 $phone2;
  2248.         return $this;
  2249.     }
  2250.     public function getBox(): ?string
  2251.     {
  2252.         return $this->box;
  2253.     }
  2254.     public function setBox(?string $box): static
  2255.     {
  2256.         $this->box $box;
  2257.         return $this;
  2258.     }
  2259.     /**
  2260.      * @return Collection<int, HonnorTableLimitMoy>
  2261.      */
  2262.     public function getHonnorTableLimitMoys(): Collection
  2263.     {
  2264.         return $this->honnorTableLimitMoys;
  2265.     }
  2266.     public function addHonnorTableLimitMoy(HonnorTableLimitMoy $honnorTableLimitMoy): static
  2267.     {
  2268.         if (!$this->honnorTableLimitMoys->contains($honnorTableLimitMoy)) {
  2269.             $this->honnorTableLimitMoys->add($honnorTableLimitMoy);
  2270.             $honnorTableLimitMoy->setSchool($this);
  2271.         }
  2272.         return $this;
  2273.     }
  2274.     public function removeHonnorTableLimitMoy(HonnorTableLimitMoy $honnorTableLimitMoy): static
  2275.     {
  2276.         if ($this->honnorTableLimitMoys->removeElement($honnorTableLimitMoy)) {
  2277.             // set the owning side to null (unless already changed)
  2278.             if ($honnorTableLimitMoy->getSchool() === $this) {
  2279.                 $honnorTableLimitMoy->setSchool(null);
  2280.             }
  2281.         }
  2282.         return $this;
  2283.     }
  2284.     /**
  2285.      * @return Collection<int, SchoolYearInfos>
  2286.      */
  2287.     public function getSchoolYearInfos(): Collection
  2288.     {
  2289.         return $this->schoolYearInfos;
  2290.     }
  2291.     public function addSchoolYearInfo(SchoolYearInfos $schoolYearInfo): static
  2292.     {
  2293.         if (!$this->schoolYearInfos->contains($schoolYearInfo)) {
  2294.             $this->schoolYearInfos->add($schoolYearInfo);
  2295.             $schoolYearInfo->setSchool($this);
  2296.         }
  2297.         return $this;
  2298.     }
  2299.     public function removeSchoolYearInfo(SchoolYearInfos $schoolYearInfo): static
  2300.     {
  2301.         if ($this->schoolYearInfos->removeElement($schoolYearInfo)) {
  2302.             // set the owning side to null (unless already changed)
  2303.             if ($schoolYearInfo->getSchool() === $this) {
  2304.                 $schoolYearInfo->setSchool(null);
  2305.             }
  2306.         }
  2307.         return $this;
  2308.     }
  2309.     /**
  2310.      * @return Collection<int, AdmissionLimit>
  2311.      */
  2312.     public function getAdmissionLimits(): Collection
  2313.     {
  2314.         return $this->admissionLimits;
  2315.     }
  2316.     public function addAdmissionLimit(AdmissionLimit $admissionLimit): static
  2317.     {
  2318.         if (!$this->admissionLimits->contains($admissionLimit)) {
  2319.             $this->admissionLimits->add($admissionLimit);
  2320.             $admissionLimit->setSchool($this);
  2321.         }
  2322.         return $this;
  2323.     }
  2324.     public function removeAdmissionLimit(AdmissionLimit $admissionLimit): static
  2325.     {
  2326.         if ($this->admissionLimits->removeElement($admissionLimit)) {
  2327.             // set the owning side to null (unless already changed)
  2328.             if ($admissionLimit->getSchool() === $this) {
  2329.                 $admissionLimit->setSchool(null);
  2330.             }
  2331.         }
  2332.         return $this;
  2333.     }
  2334.     /**
  2335.      * @return Collection<int, AgendaDay>
  2336.      */
  2337.     public function getAgendaDays(): Collection
  2338.     {
  2339.         return $this->agendaDays;
  2340.     }
  2341.     public function addAgendaDay(AgendaDay $agendaDay): static
  2342.     {
  2343.         if (!$this->agendaDays->contains($agendaDay)) {
  2344.             $this->agendaDays->add($agendaDay);
  2345.             $agendaDay->setSchool($this);
  2346.         }
  2347.         return $this;
  2348.     }
  2349.     public function removeAgendaDay(AgendaDay $agendaDay): static
  2350.     {
  2351.         if ($this->agendaDays->removeElement($agendaDay)) {
  2352.             // set the owning side to null (unless already changed)
  2353.             if ($agendaDay->getSchool() === $this) {
  2354.                 $agendaDay->setSchool(null);
  2355.             }
  2356.         }
  2357.         return $this;
  2358.     }
  2359.     public function getAgendaTimeConvertion(): ?AgendaTimeConvertion
  2360.     {
  2361.         return $this->agendaTimeConvertion;
  2362.     }
  2363.     public function setAgendaTimeConvertion(AgendaTimeConvertion $agendaTimeConvertion): static
  2364.     {
  2365.         // set the owning side of the relation if necessary
  2366.         if ($agendaTimeConvertion->getSchool() !== $this) {
  2367.             $agendaTimeConvertion->setSchool($this);
  2368.         }
  2369.         $this->agendaTimeConvertion $agendaTimeConvertion;
  2370.         return $this;
  2371.     }
  2372.     /**
  2373.      * @return Collection<int, Competence>
  2374.      */
  2375.     public function getCompetences(): Collection
  2376.     {
  2377.         return $this->competences;
  2378.     }
  2379.     public function addCompetence(Competence $competence): static
  2380.     {
  2381.         if (!$this->competences->contains($competence)) {
  2382.             $this->competences->add($competence);
  2383.             $competence->setSchool($this);
  2384.         }
  2385.         return $this;
  2386.     }
  2387.     public function removeCompetence(Competence $competence): static
  2388.     {
  2389.         if ($this->competences->removeElement($competence)) {
  2390.             // set the owning side to null (unless already changed)
  2391.             if ($competence->getSchool() === $this) {
  2392.                 $competence->setSchool(null);
  2393.             }
  2394.         }
  2395.         return $this;
  2396.     }
  2397.     /**
  2398.      * @return Collection<int, WeekSubjectGoal>
  2399.      */
  2400.     public function getWeekSubjectGoals(): Collection
  2401.     {
  2402.         return $this->weekSubjectGoals;
  2403.     }
  2404.     public function addWeekSubjectGoal(WeekSubjectGoal $weekSubjectGoal): static
  2405.     {
  2406.         if (!$this->weekSubjectGoals->contains($weekSubjectGoal)) {
  2407.             $this->weekSubjectGoals->add($weekSubjectGoal);
  2408.             $weekSubjectGoal->setSchool($this);
  2409.         }
  2410.         return $this;
  2411.     }
  2412.     public function removeWeekSubjectGoal(WeekSubjectGoal $weekSubjectGoal): static
  2413.     {
  2414.         if ($this->weekSubjectGoals->removeElement($weekSubjectGoal)) {
  2415.             // set the owning side to null (unless already changed)
  2416.             if ($weekSubjectGoal->getSchool() === $this) {
  2417.                 $weekSubjectGoal->setSchool(null);
  2418.             }
  2419.         }
  2420.         return $this;
  2421.     }
  2422.     /**
  2423.      * @return Collection<int, ProfSchoolPlanner>
  2424.      */
  2425.     public function getProfSchoolPlanners(): Collection
  2426.     {
  2427.         return $this->profSchoolPlanners;
  2428.     }
  2429.     public function addProfSchoolPlanner(ProfSchoolPlanner $profSchoolPlanner): static
  2430.     {
  2431.         if (!$this->profSchoolPlanners->contains($profSchoolPlanner)) {
  2432.             $this->profSchoolPlanners->add($profSchoolPlanner);
  2433.             $profSchoolPlanner->setSchool($this);
  2434.         }
  2435.         return $this;
  2436.     }
  2437.     public function removeProfSchoolPlanner(ProfSchoolPlanner $profSchoolPlanner): static
  2438.     {
  2439.         if ($this->profSchoolPlanners->removeElement($profSchoolPlanner)) {
  2440.             // set the owning side to null (unless already changed)
  2441.             if ($profSchoolPlanner->getSchool() === $this) {
  2442.                 $profSchoolPlanner->setSchool(null);
  2443.             }
  2444.         }
  2445.         return $this;
  2446.     }
  2447.     /**
  2448.      * @return Collection<int, ProfTime>
  2449.      */
  2450.     public function getProfTimes(): Collection
  2451.     {
  2452.         return $this->profTimes;
  2453.     }
  2454.     public function addProfTime(ProfTime $profTime): static
  2455.     {
  2456.         if (!$this->profTimes->contains($profTime)) {
  2457.             $this->profTimes->add($profTime);
  2458.             $profTime->setSchool($this);
  2459.         }
  2460.         return $this;
  2461.     }
  2462.     public function removeProfTime(ProfTime $profTime): static
  2463.     {
  2464.         if ($this->profTimes->removeElement($profTime)) {
  2465.             // set the owning side to null (unless already changed)
  2466.             if ($profTime->getSchool() === $this) {
  2467.                 $profTime->setSchool(null);
  2468.             }
  2469.         }
  2470.         return $this;
  2471.     }
  2472.     /**
  2473.      * @return Collection<int, SchoolPlannerType>
  2474.      */
  2475.     public function getSchoolPlannerTypes(): Collection
  2476.     {
  2477.         return $this->schoolPlannerTypes;
  2478.     }
  2479.     public function addSchoolPlannerType(SchoolPlannerType $schoolPlannerType): static
  2480.     {
  2481.         if (!$this->schoolPlannerTypes->contains($schoolPlannerType)) {
  2482.             $this->schoolPlannerTypes->add($schoolPlannerType);
  2483.             $schoolPlannerType->setSchool($this);
  2484.         }
  2485.         return $this;
  2486.     }
  2487.     public function removeSchoolPlannerType(SchoolPlannerType $schoolPlannerType): static
  2488.     {
  2489.         if ($this->schoolPlannerTypes->removeElement($schoolPlannerType)) {
  2490.             // set the owning side to null (unless already changed)
  2491.             if ($schoolPlannerType->getSchool() === $this) {
  2492.                 $schoolPlannerType->setSchool(null);
  2493.             }
  2494.         }
  2495.         return $this;
  2496.     }
  2497.     /**
  2498.      * @return Collection<int, AgendaElement>
  2499.      */
  2500.     public function getAgendaElements(): Collection
  2501.     {
  2502.         return $this->agendaElements;
  2503.     }
  2504.     public function addAgendaElement(AgendaElement $agendaElement): static
  2505.     {
  2506.         if (!$this->agendaElements->contains($agendaElement)) {
  2507.             $this->agendaElements->add($agendaElement);
  2508.             $agendaElement->setSchool($this);
  2509.         }
  2510.         return $this;
  2511.     }
  2512.     public function removeAgendaElement(AgendaElement $agendaElement): static
  2513.     {
  2514.         if ($this->agendaElements->removeElement($agendaElement)) {
  2515.             // set the owning side to null (unless already changed)
  2516.             if ($agendaElement->getSchool() === $this) {
  2517.                 $agendaElement->setSchool(null);
  2518.             }
  2519.         }
  2520.         return $this;
  2521.     }
  2522. }