src/Entity/SchoolYear.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SchoolYearRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SchoolYearRepository::class)
  9.  */
  10. class SchoolYear
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="boolean")
  20.      */
  21.     private $is_ongoing;
  22.     /**
  23.      * @ORM\Column(type="boolean")
  24.      */
  25.     private $is_archived;
  26.     /**
  27.      * @ORM\Column(type="string", length=60)
  28.      */
  29.     private $code;
  30.     /**
  31.      * @ORM\Column(type="string", length=128)
  32.      */
  33.     private $label;
  34.     /**
  35.      * @ORM\Column(type="string", length=60, nullable=true)
  36.      */
  37.     private $fiscal_year;
  38.     /**
  39.      * @ORM\Column(type="datetime_immutable")
  40.      */
  41.     private $created_at;
  42.     /**
  43.      * @ORM\Column(type="datetime_immutable")
  44.      */
  45.     private $updated_at;
  46.     /**
  47.      * @ORM\Column(type="integer")
  48.      */
  49.     private $created_by;
  50.     /**
  51.      * @ORM\Column(type="integer")
  52.      */
  53.     private $updated_by;
  54.     /**
  55.      * @ORM\OneToMany(targetEntity=RegistrationStudentRegistration::class, mappedBy="schoolYear")
  56.      */
  57.     private $registrationStudentRegistrations;
  58.     /**
  59.      * @ORM\OneToMany(targetEntity=SchoolYearPeriode::class, mappedBy="schoolYear")
  60.      */
  61.     private $schoolYearPeriodes;
  62.     /**
  63.      * @ORM\OneToMany(targetEntity=SchoolReportCard::class, mappedBy="schoolYear")
  64.      */
  65.     private $schoolReportCards;
  66.     /**
  67.      * @ORM\OneToMany(targetEntity=SchoolAverageReportCard::class, mappedBy="schoolYear")
  68.      */
  69.     private $schoolAverageReportCards;
  70.     /**
  71.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByClass::class, mappedBy="schoolYear")
  72.      */
  73.     private $schoolAssessmentByClasses;
  74.     /**
  75.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByLevel::class, mappedBy="schoolYear")
  76.      */
  77.     private $schoolAssessmentByLevels;
  78.     /**
  79.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByClassByMatter::class, mappedBy="schoolYear")
  80.      */
  81.     private $schoolAssessmentByClassByMatters;
  82.     /**
  83.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByLevelByMatter::class, mappedBy="schoolYear")
  84.      */
  85.     private $schoolAssessmentByLevelByMatters;
  86.     /**
  87.      * @ORM\OneToMany(targetEntity=ReportCard::class, mappedBy="schoolYear")
  88.      */
  89.     private $reportCards;
  90.     /**
  91.      * @ORM\OneToMany(targetEntity=AccountingStudentRegistrationPayment::class, mappedBy="schoolYear")
  92.      */
  93.     private $accountingStudentRegistrationPayments;
  94.     /**
  95.      * @ORM\OneToMany(targetEntity=TreasuryCashRegister::class, mappedBy="schoolYear")
  96.      */
  97.     private $treasuryCashRegisters;
  98.     /**
  99.      * @ORM\OneToMany(targetEntity=TreasuryCheckout::class, mappedBy="schoolYear")
  100.      */
  101.     private $treasuryCheckouts;
  102.     /**
  103.      * @ORM\OneToMany(targetEntity=RegistrationClassChange::class, mappedBy="schoolYear")
  104.      */
  105.     private $registrationClassChanges;
  106.     /**
  107.      * @ORM\OneToMany(targetEntity=TreasuryPayment::class, mappedBy="schoolYear")
  108.      */
  109.     private $treasuryPayments;
  110.     /**
  111.      * @ORM\OneToMany(targetEntity=AccountingExpense::class, mappedBy="schoolYear")
  112.      */
  113.     private $accountingExpenses;
  114.     /**
  115.      * @ORM\OneToMany(targetEntity=RegistrationStudentPreRegistration::class, mappedBy="schoolYear")
  116.      */
  117.     private $registrationStudentPreRegistrations;
  118.     /**
  119.      * @ORM\OneToMany(targetEntity=EntreTestReportCard::class, mappedBy="schoolYear")
  120.      */
  121.     private $entreTestReportCards;
  122.     /**
  123.      * @ORM\OneToMany(targetEntity=PreRegistrationEntreTestReportCard::class, mappedBy="schoolYear")
  124.      */
  125.     private $preRegistrationEntreTestReportCards;
  126.     /**
  127.      * @ORM\OneToMany(targetEntity=SettingClassroom::class, mappedBy="schoolYear")
  128.      */
  129.     private $settingClassrooms;
  130.     /**
  131.      * @ORM\OneToMany(targetEntity=SettingFee::class, mappedBy="schoolYear")
  132.      */
  133.     private $settingFees;
  134.     /**
  135.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelay::class, mappedBy="schoolYear")
  136.      */
  137.     private $schoolAbsenceAndDelays;
  138.     /**
  139.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotification::class, mappedBy="schoolYear")
  140.      */
  141.     private $schoolAbsenceAndDelayNotifications;
  142.     /**
  143.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotificationLine::class, mappedBy="schoolYear")
  144.      */
  145.     private $schoolAbsenceAndDelayNotificationLines;
  146.     /**
  147.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotification::class, mappedBy="schoolYear")
  148.      */
  149.     private $schoolAbsenceAndDelayReportCardNotifications;
  150.     /**
  151.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotificationLine::class, mappedBy="schoolYear")
  152.      */
  153.     private $schoolAbsenceAndDelayReportCardNotificationLines;
  154.     /**
  155.      * @ORM\OneToMany(targetEntity=CommunicationMessage::class, mappedBy="schoolYear")
  156.      */
  157.     private $communicationMessages;
  158.     /**
  159.      * @ORM\OneToMany(targetEntity=SchoolTeacher::class, mappedBy="schoolYear")
  160.      */
  161.     private $schoolTeachers;
  162.     /**
  163.      * @ORM\OneToMany(targetEntity=StockProductEntry::class, mappedBy="schoolYear")
  164.      */
  165.     private $stockProductEntries;
  166.     /**
  167.      * @ORM\OneToMany(targetEntity=StockProductEntryLine::class, mappedBy="schoolYear")
  168.      */
  169.     private $stockProductEntryLines;
  170.     /**
  171.      * @ORM\OneToMany(targetEntity=StockProviderKitEntry::class, mappedBy="schoolYear")
  172.      */
  173.     private $stockProviderKitEntries;
  174.     /**
  175.      * @ORM\OneToMany(targetEntity=StockProviderKitEntryLine::class, mappedBy="schoolYear")
  176.      */
  177.     private $stockProviderKitEntryLines;
  178.     /**
  179.      * @ORM\OneToMany(targetEntity=StockStudentKitEntry::class, mappedBy="schoolYear")
  180.      */
  181.     private $stockStudentKitEntries;
  182.     /**
  183.      * @ORM\OneToMany(targetEntity=StockStudentKitEntryLine::class, mappedBy="schoolYear")
  184.      */
  185.     private $stockStudentKitEntryLines;
  186.     /**
  187.      * @ORM\OneToMany(targetEntity=StockKitOut::class, mappedBy="schoolYear")
  188.      */
  189.     private $stockKitOuts;
  190.     /**
  191.      * @ORM\OneToMany(targetEntity=StockKitOutLine::class, mappedBy="schoolYear")
  192.      */
  193.     private $stockKitOutLines;
  194.     /**
  195.      * @ORM\OneToMany(targetEntity=StockProductOut::class, mappedBy="schoolYear")
  196.      */
  197.     private $stockProductOuts;
  198.     /**
  199.      * @ORM\OneToMany(targetEntity=AccountingCredit::class, mappedBy="schoolYear")
  200.      */
  201.     private $accountingCredits;
  202.     /**
  203.      * @ORM\OneToMany(targetEntity=AccountingCreditLine::class, mappedBy="schoolYear")
  204.      */
  205.     private $accountingCreditLines;
  206.     /**
  207.      * @ORM\OneToMany(targetEntity=SchoolAverage::class, mappedBy="schoolYear")
  208.      */
  209.     private $schoolAverages;
  210.     /**
  211.      * @ORM\OneToMany(targetEntity=SchoolStudentAverage::class, mappedBy="schoolYear")
  212.      */
  213.     private $schoolStudentAverages;
  214.     /**
  215.      * @ORM\OneToMany(targetEntity=SchoolCertificate::class, mappedBy="schoolYear")
  216.      */
  217.     private $schoolCertificates;
  218.     /**
  219.      * @ORM\OneToMany(targetEntity=SchoolCertificateLine::class, mappedBy="schoolYear")
  220.      */
  221.     private $schoolCertificateLines;
  222.     /**
  223.      * @ORM\OneToMany(targetEntity=NurseryTimeSheet::class, mappedBy="schoolYear")
  224.      */
  225.     private $nurseryTimeSheets;
  226.     /**
  227.      * @ORM\OneToMany(targetEntity=SettingTimeTable::class, mappedBy="schoolYear")
  228.      */
  229.     private $settingTimeTables;
  230.     /**
  231.      * @ORM\OneToMany(targetEntity=SchoolWorkingTime::class, mappedBy="schoolYear")
  232.      */
  233.     private $schoolWorkingTimes;
  234.     /**
  235.      * @ORM\OneToMany(targetEntity=SchoolWorkingTimeHourLesson::class, mappedBy="schoolYear")
  236.      */
  237.     private $schoolWorkingTimeHourLessons;
  238.     /**
  239.      * @ORM\OneToMany(targetEntity=FoundingNotification::class, mappedBy="schoolYear")
  240.      */
  241.     private $foundingNotifications;
  242.     /**
  243.      * @ORM\OneToMany(targetEntity=SchoolTeacherCallSheet::class, mappedBy="schoolYear")
  244.      */
  245.     private $schoolTeacherCallSheets;
  246.     /**
  247.      * @ORM\OneToMany(targetEntity=SchoolTeacherCallSheetLine::class, mappedBy="schoolYear")
  248.      */
  249.     private $schoolTeacherCallSheetLines;
  250.     /**
  251.      * @ORM\OneToMany(targetEntity=SchoolTeacherMatterClassroom::class, mappedBy="schoolYear")
  252.      */
  253.     private $schoolTeacherMatterClassrooms;
  254.     /**
  255.      * @ORM\OneToMany(targetEntity=User::class, mappedBy="schoolYear")
  256.      */
  257.     private $users;
  258.     /**
  259.      * @ORM\OneToMany(targetEntity=SchoolTeacherTimeSheet::class, mappedBy="schoolYear")
  260.      */
  261.     private $schoolTeacherTimeSheets;
  262.     /**
  263.      * @ORM\OneToMany(targetEntity=SchoolAssessment::class, mappedBy="schoolYear")
  264.      */
  265.     private $schoolAssessments;
  266.     /**
  267.      * @ORM\OneToMany(targetEntity=SchoolAssessment::class, mappedBy="nexSchoolYear")
  268.      */
  269.     private $nexSchoolAssessments;
  270.     /**
  271.      * @ORM\OneToMany(targetEntity=AccountingChequeTracking::class, mappedBy="schoolYear")
  272.      */
  273.     private $accountingChequeTrackings;
  274.     /**
  275.      * @ORM\OneToMany(targetEntity=AccountingChequeTrackingLine::class, mappedBy="schoolYear")
  276.      */
  277.     private $accountingChequeTrackingLines;
  278.     /**
  279.      * @ORM\OneToMany(targetEntity=StockKitCategory::class, mappedBy="schoolYear")
  280.      */
  281.     private $stockKitCategories;
  282.     /**
  283.      * @ORM\OneToMany(targetEntity=SchoolReportCardAbsence::class, mappedBy="schoolYear")
  284.      */
  285.     private $schoolReportCardAbsences;
  286.     /**
  287.      * @ORM\OneToMany(targetEntity=WavePayment::class, mappedBy="schoolYear")
  288.      */
  289.     private $wavePayments;
  290.     /**
  291.      * @ORM\OneToMany(targetEntity=ToxicologicalTestResult::class, mappedBy="schoolYear")
  292.      */
  293.     private $toxicologicalTestResults;
  294.     /**
  295.      * @ORM\OneToMany(targetEntity=ToxicologicalTestResultLine::class, mappedBy="schoolYear")
  296.      */
  297.     private $toxicologicalTestResultLines;
  298.     /**
  299.      * @ORM\OneToMany(targetEntity=SchoolTeacherAbsence::class, mappedBy="schoolYear")
  300.      */
  301.     private $schoolTeacherAbsences;
  302.     public function __construct()
  303.     {
  304.         $this->is_archived false;
  305.         $this->is_ongoing false;
  306.         $this->registrationStudentRegistrations = new ArrayCollection();
  307.         $this->schoolYearPeriodes = new ArrayCollection();
  308.         $this->schoolReportCards = new ArrayCollection();
  309.         $this->schoolAverageReportCards = new ArrayCollection();
  310.         $this->schoolAssessmentByClasses = new ArrayCollection();
  311.         $this->schoolAssessmentByLevels = new ArrayCollection();
  312.         $this->schoolAssessmentByClassByMatters = new ArrayCollection();
  313.         $this->schoolAssessmentByLevelByMatters = new ArrayCollection();
  314.         $this->reportCards = new ArrayCollection();
  315.         $this->accountingStudentRegistrationPayments = new ArrayCollection();
  316.         $this->treasuryCashRegisters = new ArrayCollection();
  317.         $this->treasuryCheckouts = new ArrayCollection();
  318.         $this->registrationClassChanges = new ArrayCollection();
  319.         $this->treasuryPayments = new ArrayCollection();
  320.         $this->accountingExpenses = new ArrayCollection();
  321.         $this->registrationStudentPreRegistrations = new ArrayCollection();
  322.         $this->entreTestReportCards = new ArrayCollection();
  323.         $this->preRegistrationEntreTestReportCards = new ArrayCollection();
  324.         $this->settingClassrooms = new ArrayCollection();
  325.         $this->settingFees = new ArrayCollection();
  326.         $this->schoolAbsenceAndDelays = new ArrayCollection();
  327.         $this->schoolAbsenceAndDelayNotifications = new ArrayCollection();
  328.         $this->schoolAbsenceAndDelayNotificationLines = new ArrayCollection();
  329.         $this->schoolAbsenceAndDelayReportCardNotifications = new ArrayCollection();
  330.         $this->schoolAbsenceAndDelayReportCardNotificationLines = new ArrayCollection();
  331.         $this->communicationMessages = new ArrayCollection();
  332.         $this->schoolTeachers = new ArrayCollection();
  333.         $this->stockProductEntries = new ArrayCollection();
  334.         $this->stockProductEntryLines = new ArrayCollection();
  335.         $this->stockProviderKitEntries = new ArrayCollection();
  336.         $this->stockProviderKitEntryLines = new ArrayCollection();
  337.         $this->stockStudentKitEntries = new ArrayCollection();
  338.         $this->stockStudentKitEntryLines = new ArrayCollection();
  339.         $this->stockKitOuts = new ArrayCollection();
  340.         $this->stockKitOutLines = new ArrayCollection();
  341.         $this->stockProductOuts = new ArrayCollection();
  342.         $this->accountingCredits = new ArrayCollection();
  343.         $this->accountingCreditLines = new ArrayCollection();
  344.         $this->schoolAverages = new ArrayCollection();
  345.         $this->schoolStudentAverages = new ArrayCollection();
  346.         $this->schoolCertificates = new ArrayCollection();
  347.         $this->schoolCertificateLines = new ArrayCollection();
  348.         $this->nurseryTimeSheets = new ArrayCollection();
  349.         $this->settingTimeTables = new ArrayCollection();
  350.         $this->schoolWorkingTimes = new ArrayCollection();
  351.         $this->schoolWorkingTimeHourLessons = new ArrayCollection();
  352.         $this->foundingNotifications = new ArrayCollection();
  353.         $this->schoolTeacherCallSheets = new ArrayCollection();
  354.         $this->schoolTeacherCallSheetLines = new ArrayCollection();
  355.         $this->schoolTeacherMatterClassrooms = new ArrayCollection();
  356.         $this->users = new ArrayCollection();
  357.         $this->schoolTeacherTimeSheets = new ArrayCollection();
  358.         $this->schoolAssessments = new ArrayCollection();
  359.         $this->nexSchoolAssessments = new ArrayCollection();
  360.         $this->accountingChequeTrackings = new ArrayCollection();
  361.         $this->accountingChequeTrackingLines = new ArrayCollection();
  362.         $this->stockKitCategories = new ArrayCollection();
  363.         $this->schoolReportCardAbsences = new ArrayCollection();
  364.         $this->wavePayments = new ArrayCollection();
  365.         $this->toxicologicalTestResults = new ArrayCollection();
  366.         $this->toxicologicalTestResultLines = new ArrayCollection();
  367.         $this->schoolTeacherAbsences = new ArrayCollection();
  368.     }
  369.     public function __toString()
  370.     {
  371.         return $this->code;
  372.     }
  373.     public function getId(): ?int
  374.     {
  375.         return $this->id;
  376.     }
  377.     public function getIsOngoing(): ?bool
  378.     {
  379.         return $this->is_ongoing;
  380.     }
  381.     public function setIsOngoing(bool $is_ongoing): self
  382.     {
  383.         $this->is_ongoing $is_ongoing;
  384.         return $this;
  385.     }
  386.     public function getIsArchived(): ?bool
  387.     {
  388.         return $this->is_archived;
  389.     }
  390.     public function setIsArchived(bool $is_archived): self
  391.     {
  392.         $this->is_archived $is_archived;
  393.         return $this;
  394.     }
  395.     public function getCode(): ?string
  396.     {
  397.         return $this->code;
  398.     }
  399.     public function setCode(string $code): self
  400.     {
  401.         $this->code $code;
  402.         return $this;
  403.     }
  404.     public function getLabel(): ?string
  405.     {
  406.         return $this->label;
  407.     }
  408.     public function setLabel(string $label): self
  409.     {
  410.         $this->label $label;
  411.         return $this;
  412.     }
  413.     public function getCreatedAt(): ?\DateTimeImmutable
  414.     {
  415.         return $this->created_at;
  416.     }
  417.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  418.     {
  419.         $this->created_at $created_at;
  420.         return $this;
  421.     }
  422.     public function getUpdatedAt(): ?\DateTimeImmutable
  423.     {
  424.         return $this->updated_at;
  425.     }
  426.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  427.     {
  428.         $this->updated_at $updated_at;
  429.         return $this;
  430.     }
  431.     public function getCreatedBy(): ?int
  432.     {
  433.         return $this->created_by;
  434.     }
  435.     public function setCreatedBy(int $created_by): self
  436.     {
  437.         $this->created_by $created_by;
  438.         return $this;
  439.     }
  440.     public function getUpdatedBy(): ?int
  441.     {
  442.         return $this->updated_by;
  443.     }
  444.     public function setUpdatedBy(int $updated_by): self
  445.     {
  446.         $this->updated_by $updated_by;
  447.         return $this;
  448.     }
  449.     /**
  450.      * @return Collection|RegistrationStudentRegistration[]
  451.      */
  452.     public function getRegistrationStudentRegistrations(): Collection
  453.     {
  454.         return $this->registrationStudentRegistrations;
  455.     }
  456.     public function addRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  457.     {
  458.         if (!$this->registrationStudentRegistrations->contains($registrationStudentRegistration)) {
  459.             $this->registrationStudentRegistrations[] = $registrationStudentRegistration;
  460.             $registrationStudentRegistration->setSchoolYear($this);
  461.         }
  462.         return $this;
  463.     }
  464.     public function removeRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  465.     {
  466.         if ($this->registrationStudentRegistrations->removeElement($registrationStudentRegistration)) {
  467.             // set the owning side to null (unless already changed)
  468.             if ($registrationStudentRegistration->getSchoolYear() === $this) {
  469.                 $registrationStudentRegistration->setSchoolYear(null);
  470.             }
  471.         }
  472.         return $this;
  473.     }
  474.     /**
  475.      * @return Collection|SchoolYearPeriode[]
  476.      */
  477.     public function getSchoolYearPeriodes(): Collection
  478.     {
  479.         return $this->schoolYearPeriodes;
  480.     }
  481.     public function addSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
  482.     {
  483.         if (!$this->schoolYearPeriodes->contains($schoolYearPeriode)) {
  484.             $this->schoolYearPeriodes[] = $schoolYearPeriode;
  485.             $schoolYearPeriode->setSchoolYear($this);
  486.         }
  487.         return $this;
  488.     }
  489.     public function removeSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
  490.     {
  491.         if ($this->schoolYearPeriodes->removeElement($schoolYearPeriode)) {
  492.             // set the owning side to null (unless already changed)
  493.             if ($schoolYearPeriode->getSchoolYear() === $this) {
  494.                 $schoolYearPeriode->setSchoolYear(null);
  495.             }
  496.         }
  497.         return $this;
  498.     }
  499.     /**
  500.      * @return Collection|SchoolReportCard[]
  501.      */
  502.     public function getSchoolReportCards(): Collection
  503.     {
  504.         return $this->schoolReportCards;
  505.     }
  506.     public function addSchoolReportCard(SchoolReportCard $schoolReportCard): self
  507.     {
  508.         if (!$this->schoolReportCards->contains($schoolReportCard)) {
  509.             $this->schoolReportCards[] = $schoolReportCard;
  510.             $schoolReportCard->setSchoolYear($this);
  511.         }
  512.         return $this;
  513.     }
  514.     public function removeSchoolReportCard(SchoolReportCard $schoolReportCard): self
  515.     {
  516.         if ($this->schoolReportCards->removeElement($schoolReportCard)) {
  517.             // set the owning side to null (unless already changed)
  518.             if ($schoolReportCard->getSchoolYear() === $this) {
  519.                 $schoolReportCard->setSchoolYear(null);
  520.             }
  521.         }
  522.         return $this;
  523.     }
  524.     /**
  525.      * @return Collection|SchoolAverageReportCard[]
  526.      */
  527.     public function getSchoolAverageReportCards(): Collection
  528.     {
  529.         return $this->schoolAverageReportCards;
  530.     }
  531.     public function addSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
  532.     {
  533.         if (!$this->schoolAverageReportCards->contains($schoolAverageReportCard)) {
  534.             $this->schoolAverageReportCards[] = $schoolAverageReportCard;
  535.             $schoolAverageReportCard->setSchoolYear($this);
  536.         }
  537.         return $this;
  538.     }
  539.     public function removeSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
  540.     {
  541.         if ($this->schoolAverageReportCards->removeElement($schoolAverageReportCard)) {
  542.             // set the owning side to null (unless already changed)
  543.             if ($schoolAverageReportCard->getSchoolYear() === $this) {
  544.                 $schoolAverageReportCard->setSchoolYear(null);
  545.             }
  546.         }
  547.         return $this;
  548.     }
  549.     /**
  550.      * @return Collection|SchoolAssessmentByClass[]
  551.      */
  552.     public function getSchoolAssessmentByClasses(): Collection
  553.     {
  554.         return $this->schoolAssessmentByClasses;
  555.     }
  556.     public function addSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
  557.     {
  558.         if (!$this->schoolAssessmentByClasses->contains($schoolAssessmentByClass)) {
  559.             $this->schoolAssessmentByClasses[] = $schoolAssessmentByClass;
  560.             $schoolAssessmentByClass->setSchoolYear($this);
  561.         }
  562.         return $this;
  563.     }
  564.     public function removeSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
  565.     {
  566.         if ($this->schoolAssessmentByClasses->removeElement($schoolAssessmentByClass)) {
  567.             // set the owning side to null (unless already changed)
  568.             if ($schoolAssessmentByClass->getSchoolYear() === $this) {
  569.                 $schoolAssessmentByClass->setSchoolYear(null);
  570.             }
  571.         }
  572.         return $this;
  573.     }
  574.     /**
  575.      * @return Collection|SchoolAssessmentByLevel[]
  576.      */
  577.     public function getSchoolAssessmentByLevels(): Collection
  578.     {
  579.         return $this->schoolAssessmentByLevels;
  580.     }
  581.     public function addSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
  582.     {
  583.         if (!$this->schoolAssessmentByLevels->contains($schoolAssessmentByLevel)) {
  584.             $this->schoolAssessmentByLevels[] = $schoolAssessmentByLevel;
  585.             $schoolAssessmentByLevel->setSchoolYear($this);
  586.         }
  587.         return $this;
  588.     }
  589.     public function removeSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
  590.     {
  591.         if ($this->schoolAssessmentByLevels->removeElement($schoolAssessmentByLevel)) {
  592.             // set the owning side to null (unless already changed)
  593.             if ($schoolAssessmentByLevel->getSchoolYear() === $this) {
  594.                 $schoolAssessmentByLevel->setSchoolYear(null);
  595.             }
  596.         }
  597.         return $this;
  598.     }
  599.     /**
  600.      * @return Collection|SchoolAssessmentByClassByMatter[]
  601.      */
  602.     public function getSchoolAssessmentByClassByMatters(): Collection
  603.     {
  604.         return $this->schoolAssessmentByClassByMatters;
  605.     }
  606.     public function addSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
  607.     {
  608.         if (!$this->schoolAssessmentByClassByMatters->contains($schoolAssessmentByClassByMatter)) {
  609.             $this->schoolAssessmentByClassByMatters[] = $schoolAssessmentByClassByMatter;
  610.             $schoolAssessmentByClassByMatter->setSchoolYear($this);
  611.         }
  612.         return $this;
  613.     }
  614.     public function removeSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
  615.     {
  616.         if ($this->schoolAssessmentByClassByMatters->removeElement($schoolAssessmentByClassByMatter)) {
  617.             // set the owning side to null (unless already changed)
  618.             if ($schoolAssessmentByClassByMatter->getSchoolYear() === $this) {
  619.                 $schoolAssessmentByClassByMatter->setSchoolYear(null);
  620.             }
  621.         }
  622.         return $this;
  623.     }
  624.     /**
  625.      * @return Collection|SchoolAssessmentByLevelByMatter[]
  626.      */
  627.     public function getSchoolAssessmentByLevelByMatters(): Collection
  628.     {
  629.         return $this->schoolAssessmentByLevelByMatters;
  630.     }
  631.     public function addSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
  632.     {
  633.         if (!$this->schoolAssessmentByLevelByMatters->contains($schoolAssessmentByLevelByMatter)) {
  634.             $this->schoolAssessmentByLevelByMatters[] = $schoolAssessmentByLevelByMatter;
  635.             $schoolAssessmentByLevelByMatter->setSchoolYear($this);
  636.         }
  637.         return $this;
  638.     }
  639.     public function removeSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
  640.     {
  641.         if ($this->schoolAssessmentByLevelByMatters->removeElement($schoolAssessmentByLevelByMatter)) {
  642.             // set the owning side to null (unless already changed)
  643.             if ($schoolAssessmentByLevelByMatter->getSchoolYear() === $this) {
  644.                 $schoolAssessmentByLevelByMatter->setSchoolYear(null);
  645.             }
  646.         }
  647.         return $this;
  648.     }
  649.     /**
  650.      * @return Collection|ReportCard[]
  651.      */
  652.     public function getReportCards(): Collection
  653.     {
  654.         return $this->reportCards;
  655.     }
  656.     public function addReportCard(ReportCard $reportCard): self
  657.     {
  658.         if (!$this->reportCards->contains($reportCard)) {
  659.             $this->reportCards[] = $reportCard;
  660.             $reportCard->setSchoolYear($this);
  661.         }
  662.         return $this;
  663.     }
  664.     public function removeReportCard(ReportCard $reportCard): self
  665.     {
  666.         if ($this->reportCards->removeElement($reportCard)) {
  667.             // set the owning side to null (unless already changed)
  668.             if ($reportCard->getSchoolYear() === $this) {
  669.                 $reportCard->setSchoolYear(null);
  670.             }
  671.         }
  672.         return $this;
  673.     }
  674.     public function getFiscalYear(): ?string
  675.     {
  676.         return $this->fiscal_year;
  677.     }
  678.     public function setFiscalYear(?string $fiscal_year): self
  679.     {
  680.         $this->fiscal_year $fiscal_year;
  681.         return $this;
  682.     }
  683.     /**
  684.      * @return Collection|AccountingStudentRegistrationPayment[]
  685.      */
  686.     public function getAccountingStudentRegistrationPayments(): Collection
  687.     {
  688.         return $this->accountingStudentRegistrationPayments;
  689.     }
  690.     public function addAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
  691.     {
  692.         if (!$this->accountingStudentRegistrationPayments->contains($accountingStudentRegistrationPayment)) {
  693.             $this->accountingStudentRegistrationPayments[] = $accountingStudentRegistrationPayment;
  694.             $accountingStudentRegistrationPayment->setSchoolYear($this);
  695.         }
  696.         return $this;
  697.     }
  698.     public function removeAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
  699.     {
  700.         if ($this->accountingStudentRegistrationPayments->removeElement($accountingStudentRegistrationPayment)) {
  701.             // set the owning side to null (unless already changed)
  702.             if ($accountingStudentRegistrationPayment->getSchoolYear() === $this) {
  703.                 $accountingStudentRegistrationPayment->setSchoolYear(null);
  704.             }
  705.         }
  706.         return $this;
  707.     }
  708.     /**
  709.      * @return Collection|TreasuryCashRegister[]
  710.      */
  711.     public function getTreasuryCashRegisters(): Collection
  712.     {
  713.         return $this->treasuryCashRegisters;
  714.     }
  715.     public function addTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
  716.     {
  717.         if (!$this->treasuryCashRegisters->contains($treasuryCashRegister)) {
  718.             $this->treasuryCashRegisters[] = $treasuryCashRegister;
  719.             $treasuryCashRegister->setSchoolYear($this);
  720.         }
  721.         return $this;
  722.     }
  723.     public function removeTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
  724.     {
  725.         if ($this->treasuryCashRegisters->removeElement($treasuryCashRegister)) {
  726.             // set the owning side to null (unless already changed)
  727.             if ($treasuryCashRegister->getSchoolYear() === $this) {
  728.                 $treasuryCashRegister->setSchoolYear(null);
  729.             }
  730.         }
  731.         return $this;
  732.     }
  733.     /**
  734.      * @return Collection|TreasuryCheckout[]
  735.      */
  736.     public function getTreasuryCheckouts(): Collection
  737.     {
  738.         return $this->treasuryCheckouts;
  739.     }
  740.     public function addTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
  741.     {
  742.         if (!$this->treasuryCheckouts->contains($treasuryCheckout)) {
  743.             $this->treasuryCheckouts[] = $treasuryCheckout;
  744.             $treasuryCheckout->setSchoolYear($this);
  745.         }
  746.         return $this;
  747.     }
  748.     public function removeTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
  749.     {
  750.         if ($this->treasuryCheckouts->removeElement($treasuryCheckout)) {
  751.             // set the owning side to null (unless already changed)
  752.             if ($treasuryCheckout->getSchoolYear() === $this) {
  753.                 $treasuryCheckout->setSchoolYear(null);
  754.             }
  755.         }
  756.         return $this;
  757.     }
  758.     /**
  759.      * @return Collection|RegistrationClassChange[]
  760.      */
  761.     public function getRegistrationClassChanges(): Collection
  762.     {
  763.         return $this->registrationClassChanges;
  764.     }
  765.     public function addRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
  766.     {
  767.         if (!$this->registrationClassChanges->contains($registrationClassChange)) {
  768.             $this->registrationClassChanges[] = $registrationClassChange;
  769.             $registrationClassChange->setSchoolYear($this);
  770.         }
  771.         return $this;
  772.     }
  773.     public function removeRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
  774.     {
  775.         if ($this->registrationClassChanges->removeElement($registrationClassChange)) {
  776.             // set the owning side to null (unless already changed)
  777.             if ($registrationClassChange->getSchoolYear() === $this) {
  778.                 $registrationClassChange->setSchoolYear(null);
  779.             }
  780.         }
  781.         return $this;
  782.     }
  783.     /**
  784.      * @return Collection|TreasuryPayment[]
  785.      */
  786.     public function getTreasuryPayments(): Collection
  787.     {
  788.         return $this->treasuryPayments;
  789.     }
  790.     public function addTreasuryPayment(TreasuryPayment $treasuryPayment): self
  791.     {
  792.         if (!$this->treasuryPayments->contains($treasuryPayment)) {
  793.             $this->treasuryPayments[] = $treasuryPayment;
  794.             $treasuryPayment->setSchoolYear($this);
  795.         }
  796.         return $this;
  797.     }
  798.     public function removeTreasuryPayment(TreasuryPayment $treasuryPayment): self
  799.     {
  800.         if ($this->treasuryPayments->removeElement($treasuryPayment)) {
  801.             // set the owning side to null (unless already changed)
  802.             if ($treasuryPayment->getSchoolYear() === $this) {
  803.                 $treasuryPayment->setSchoolYear(null);
  804.             }
  805.         }
  806.         return $this;
  807.     }
  808.     /**
  809.      * @return Collection|AccountingExpense[]
  810.      */
  811.     public function getAccountingExpenses(): Collection
  812.     {
  813.         return $this->accountingExpenses;
  814.     }
  815.     public function addAccountingExpense(AccountingExpense $accountingExpense): self
  816.     {
  817.         if (!$this->accountingExpenses->contains($accountingExpense)) {
  818.             $this->accountingExpenses[] = $accountingExpense;
  819.             $accountingExpense->setSchoolYear($this);
  820.         }
  821.         return $this;
  822.     }
  823.     public function removeAccountingExpense(AccountingExpense $accountingExpense): self
  824.     {
  825.         if ($this->accountingExpenses->removeElement($accountingExpense)) {
  826.             // set the owning side to null (unless already changed)
  827.             if ($accountingExpense->getSchoolYear() === $this) {
  828.                 $accountingExpense->setSchoolYear(null);
  829.             }
  830.         }
  831.         return $this;
  832.     }
  833.     /**
  834.      * @return Collection|RegistrationStudentPreRegistration[]
  835.      */
  836.     public function getRegistrationStudentPreRegistrations(): Collection
  837.     {
  838.         return $this->registrationStudentPreRegistrations;
  839.     }
  840.     public function addRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
  841.     {
  842.         if (!$this->registrationStudentPreRegistrations->contains($registrationStudentPreRegistration)) {
  843.             $this->registrationStudentPreRegistrations[] = $registrationStudentPreRegistration;
  844.             $registrationStudentPreRegistration->setSchoolYear($this);
  845.         }
  846.         return $this;
  847.     }
  848.     public function removeRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
  849.     {
  850.         if ($this->registrationStudentPreRegistrations->removeElement($registrationStudentPreRegistration)) {
  851.             // set the owning side to null (unless already changed)
  852.             if ($registrationStudentPreRegistration->getSchoolYear() === $this) {
  853.                 $registrationStudentPreRegistration->setSchoolYear(null);
  854.             }
  855.         }
  856.         return $this;
  857.     }
  858.     /**
  859.      * @return Collection|EntreTestReportCard[]
  860.      */
  861.     public function getEntreTestReportCards(): Collection
  862.     {
  863.         return $this->entreTestReportCards;
  864.     }
  865.     public function addEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
  866.     {
  867.         if (!$this->entreTestReportCards->contains($entreTestReportCard)) {
  868.             $this->entreTestReportCards[] = $entreTestReportCard;
  869.             $entreTestReportCard->setSchoolYear($this);
  870.         }
  871.         return $this;
  872.     }
  873.     public function removeEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
  874.     {
  875.         if ($this->entreTestReportCards->removeElement($entreTestReportCard)) {
  876.             // set the owning side to null (unless already changed)
  877.             if ($entreTestReportCard->getSchoolYear() === $this) {
  878.                 $entreTestReportCard->setSchoolYear(null);
  879.             }
  880.         }
  881.         return $this;
  882.     }
  883.     /**
  884.      * @return Collection|PreRegistrationEntreTestReportCard[]
  885.      */
  886.     public function getPreRegistrationEntreTestReportCards(): Collection
  887.     {
  888.         return $this->preRegistrationEntreTestReportCards;
  889.     }
  890.     public function addPreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  891.     {
  892.         if (!$this->preRegistrationEntreTestReportCards->contains($preRegistrationEntreTestReportCard)) {
  893.             $this->preRegistrationEntreTestReportCards[] = $preRegistrationEntreTestReportCard;
  894.             $preRegistrationEntreTestReportCard->setSchoolYear($this);
  895.         }
  896.         return $this;
  897.     }
  898.     public function removePreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  899.     {
  900.         if ($this->preRegistrationEntreTestReportCards->removeElement($preRegistrationEntreTestReportCard)) {
  901.             // set the owning side to null (unless already changed)
  902.             if ($preRegistrationEntreTestReportCard->getSchoolYear() === $this) {
  903.                 $preRegistrationEntreTestReportCard->setSchoolYear(null);
  904.             }
  905.         }
  906.         return $this;
  907.     }
  908.     /**
  909.      * @return Collection|SettingClassroom[]
  910.      */
  911.     public function getSettingClassrooms(): Collection
  912.     {
  913.         return $this->settingClassrooms;
  914.     }
  915.     public function addSettingClassroom(SettingClassroom $settingClassroom): self
  916.     {
  917.         if (!$this->settingClassrooms->contains($settingClassroom)) {
  918.             $this->settingClassrooms[] = $settingClassroom;
  919.             $settingClassroom->setSchoolYear($this);
  920.         }
  921.         return $this;
  922.     }
  923.     public function removeSettingClassroom(SettingClassroom $settingClassroom): self
  924.     {
  925.         if ($this->settingClassrooms->removeElement($settingClassroom)) {
  926.             // set the owning side to null (unless already changed)
  927.             if ($settingClassroom->getSchoolYear() === $this) {
  928.                 $settingClassroom->setSchoolYear(null);
  929.             }
  930.         }
  931.         return $this;
  932.     }
  933.     /**
  934.      * @return Collection|SettingFee[]
  935.      */
  936.     public function getSettingFees(): Collection
  937.     {
  938.         return $this->settingFees;
  939.     }
  940.     public function addSettingFee(SettingFee $settingFee): self
  941.     {
  942.         if (!$this->settingFees->contains($settingFee)) {
  943.             $this->settingFees[] = $settingFee;
  944.             $settingFee->setSchoolYear($this);
  945.         }
  946.         return $this;
  947.     }
  948.     public function removeSettingFee(SettingFee $settingFee): self
  949.     {
  950.         if ($this->settingFees->removeElement($settingFee)) {
  951.             // set the owning side to null (unless already changed)
  952.             if ($settingFee->getSchoolYear() === $this) {
  953.                 $settingFee->setSchoolYear(null);
  954.             }
  955.         }
  956.         return $this;
  957.     }
  958.     /**
  959.      * @return Collection|SchoolAbsenceAndDelay[]
  960.      */
  961.     public function getSchoolAbsenceAndDelays(): Collection
  962.     {
  963.         return $this->schoolAbsenceAndDelays;
  964.     }
  965.     public function addSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
  966.     {
  967.         if (!$this->schoolAbsenceAndDelays->contains($schoolAbsenceAndDelay)) {
  968.             $this->schoolAbsenceAndDelays[] = $schoolAbsenceAndDelay;
  969.             $schoolAbsenceAndDelay->setSchoolYear($this);
  970.         }
  971.         return $this;
  972.     }
  973.     public function removeSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
  974.     {
  975.         if ($this->schoolAbsenceAndDelays->removeElement($schoolAbsenceAndDelay)) {
  976.             // set the owning side to null (unless already changed)
  977.             if ($schoolAbsenceAndDelay->getSchoolYear() === $this) {
  978.                 $schoolAbsenceAndDelay->setSchoolYear(null);
  979.             }
  980.         }
  981.         return $this;
  982.     }
  983.     /**
  984.      * @return Collection|SchoolAbsenceAndDelayNotification[]
  985.      */
  986.     public function getSchoolAbsenceAndDelayNotifications(): Collection
  987.     {
  988.         return $this->schoolAbsenceAndDelayNotifications;
  989.     }
  990.     public function addSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
  991.     {
  992.         if (!$this->schoolAbsenceAndDelayNotifications->contains($schoolAbsenceAndDelayNotification)) {
  993.             $this->schoolAbsenceAndDelayNotifications[] = $schoolAbsenceAndDelayNotification;
  994.             $schoolAbsenceAndDelayNotification->setSchoolYear($this);
  995.         }
  996.         return $this;
  997.     }
  998.     public function removeSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
  999.     {
  1000.         if ($this->schoolAbsenceAndDelayNotifications->removeElement($schoolAbsenceAndDelayNotification)) {
  1001.             // set the owning side to null (unless already changed)
  1002.             if ($schoolAbsenceAndDelayNotification->getSchoolYear() === $this) {
  1003.                 $schoolAbsenceAndDelayNotification->setSchoolYear(null);
  1004.             }
  1005.         }
  1006.         return $this;
  1007.     }
  1008.     /**
  1009.      * @return Collection|SchoolAbsenceAndDelayNotificationLine[]
  1010.      */
  1011.     public function getSchoolAbsenceAndDelayNotificationLines(): Collection
  1012.     {
  1013.         return $this->schoolAbsenceAndDelayNotificationLines;
  1014.     }
  1015.     public function addSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
  1016.     {
  1017.         if (!$this->schoolAbsenceAndDelayNotificationLines->contains($schoolAbsenceAndDelayNotificationLine)) {
  1018.             $this->schoolAbsenceAndDelayNotificationLines[] = $schoolAbsenceAndDelayNotificationLine;
  1019.             $schoolAbsenceAndDelayNotificationLine->setSchoolYear($this);
  1020.         }
  1021.         return $this;
  1022.     }
  1023.     public function removeSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
  1024.     {
  1025.         if ($this->schoolAbsenceAndDelayNotificationLines->removeElement($schoolAbsenceAndDelayNotificationLine)) {
  1026.             // set the owning side to null (unless already changed)
  1027.             if ($schoolAbsenceAndDelayNotificationLine->getSchoolYear() === $this) {
  1028.                 $schoolAbsenceAndDelayNotificationLine->setSchoolYear(null);
  1029.             }
  1030.         }
  1031.         return $this;
  1032.     }
  1033.     /**
  1034.      * @return Collection|SchoolAbsenceAndDelayReportCardNotification[]
  1035.      */
  1036.     public function getSchoolAbsenceAndDelayReportCardNotifications(): Collection
  1037.     {
  1038.         return $this->schoolAbsenceAndDelayReportCardNotifications;
  1039.     }
  1040.     public function addSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
  1041.     {
  1042.         if (!$this->schoolAbsenceAndDelayReportCardNotifications->contains($schoolAbsenceAndDelayReportCardNotification)) {
  1043.             $this->schoolAbsenceAndDelayReportCardNotifications[] = $schoolAbsenceAndDelayReportCardNotification;
  1044.             $schoolAbsenceAndDelayReportCardNotification->setSchoolYear($this);
  1045.         }
  1046.         return $this;
  1047.     }
  1048.     public function removeSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
  1049.     {
  1050.         if ($this->schoolAbsenceAndDelayReportCardNotifications->removeElement($schoolAbsenceAndDelayReportCardNotification)) {
  1051.             // set the owning side to null (unless already changed)
  1052.             if ($schoolAbsenceAndDelayReportCardNotification->getSchoolYear() === $this) {
  1053.                 $schoolAbsenceAndDelayReportCardNotification->setSchoolYear(null);
  1054.             }
  1055.         }
  1056.         return $this;
  1057.     }
  1058.     /**
  1059.      * @return Collection|SchoolAbsenceAndDelayReportCardNotificationLine[]
  1060.      */
  1061.     public function getSchoolAbsenceAndDelayReportCardNotificationLines(): Collection
  1062.     {
  1063.         return $this->schoolAbsenceAndDelayReportCardNotificationLines;
  1064.     }
  1065.     public function addSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
  1066.     {
  1067.         if (!$this->schoolAbsenceAndDelayReportCardNotificationLines->contains($schoolAbsenceAndDelayReportCardNotificationLine)) {
  1068.             $this->schoolAbsenceAndDelayReportCardNotificationLines[] = $schoolAbsenceAndDelayReportCardNotificationLine;
  1069.             $schoolAbsenceAndDelayReportCardNotificationLine->setSchoolYear($this);
  1070.         }
  1071.         return $this;
  1072.     }
  1073.     public function removeSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
  1074.     {
  1075.         if ($this->schoolAbsenceAndDelayReportCardNotificationLines->removeElement($schoolAbsenceAndDelayReportCardNotificationLine)) {
  1076.             // set the owning side to null (unless already changed)
  1077.             if ($schoolAbsenceAndDelayReportCardNotificationLine->getSchoolYear() === $this) {
  1078.                 $schoolAbsenceAndDelayReportCardNotificationLine->setSchoolYear(null);
  1079.             }
  1080.         }
  1081.         return $this;
  1082.     }
  1083.     /**
  1084.      * @return Collection|CommunicationMessage[]
  1085.      */
  1086.     public function getCommunicationMessages(): Collection
  1087.     {
  1088.         return $this->communicationMessages;
  1089.     }
  1090.     public function addCommunicationMessage(CommunicationMessage $communicationMessage): self
  1091.     {
  1092.         if (!$this->communicationMessages->contains($communicationMessage)) {
  1093.             $this->communicationMessages[] = $communicationMessage;
  1094.             $communicationMessage->setSchoolYear($this);
  1095.         }
  1096.         return $this;
  1097.     }
  1098.     public function removeCommunicationMessage(CommunicationMessage $communicationMessage): self
  1099.     {
  1100.         if ($this->communicationMessages->removeElement($communicationMessage)) {
  1101.             // set the owning side to null (unless already changed)
  1102.             if ($communicationMessage->getSchoolYear() === $this) {
  1103.                 $communicationMessage->setSchoolYear(null);
  1104.             }
  1105.         }
  1106.         return $this;
  1107.     }
  1108.     /**
  1109.      * @return Collection|SchoolTeacher[]
  1110.      */
  1111.     public function getSchoolTeachers(): Collection
  1112.     {
  1113.         return $this->schoolTeachers;
  1114.     }
  1115.     public function addSchoolTeacher(SchoolTeacher $schoolTeacher): self
  1116.     {
  1117.         if (!$this->schoolTeachers->contains($schoolTeacher)) {
  1118.             $this->schoolTeachers[] = $schoolTeacher;
  1119.             $schoolTeacher->setSchoolYear($this);
  1120.         }
  1121.         return $this;
  1122.     }
  1123.     public function removeSchoolTeacher(SchoolTeacher $schoolTeacher): self
  1124.     {
  1125.         if ($this->schoolTeachers->removeElement($schoolTeacher)) {
  1126.             // set the owning side to null (unless already changed)
  1127.             if ($schoolTeacher->getSchoolYear() === $this) {
  1128.                 $schoolTeacher->setSchoolYear(null);
  1129.             }
  1130.         }
  1131.         return $this;
  1132.     }
  1133.     /**
  1134.      * @return Collection|StockProductEntry[]
  1135.      */
  1136.     public function getStockProductEntries(): Collection
  1137.     {
  1138.         return $this->stockProductEntries;
  1139.     }
  1140.     public function addStockProductEntry(StockProductEntry $stockProductEntry): self
  1141.     {
  1142.         if (!$this->stockProductEntries->contains($stockProductEntry)) {
  1143.             $this->stockProductEntries[] = $stockProductEntry;
  1144.             $stockProductEntry->setSchoolYear($this);
  1145.         }
  1146.         return $this;
  1147.     }
  1148.     public function removeStockProductEntry(StockProductEntry $stockProductEntry): self
  1149.     {
  1150.         if ($this->stockProductEntries->removeElement($stockProductEntry)) {
  1151.             // set the owning side to null (unless already changed)
  1152.             if ($stockProductEntry->getSchoolYear() === $this) {
  1153.                 $stockProductEntry->setSchoolYear(null);
  1154.             }
  1155.         }
  1156.         return $this;
  1157.     }
  1158.     /**
  1159.      * @return Collection|StockProductEntryLine[]
  1160.      */
  1161.     public function getStockProductEntryLines(): Collection
  1162.     {
  1163.         return $this->stockProductEntryLines;
  1164.     }
  1165.     public function addStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
  1166.     {
  1167.         if (!$this->stockProductEntryLines->contains($stockProductEntryLine)) {
  1168.             $this->stockProductEntryLines[] = $stockProductEntryLine;
  1169.             $stockProductEntryLine->setSchoolYear($this);
  1170.         }
  1171.         return $this;
  1172.     }
  1173.     public function removeStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
  1174.     {
  1175.         if ($this->stockProductEntryLines->removeElement($stockProductEntryLine)) {
  1176.             // set the owning side to null (unless already changed)
  1177.             if ($stockProductEntryLine->getSchoolYear() === $this) {
  1178.                 $stockProductEntryLine->setSchoolYear(null);
  1179.             }
  1180.         }
  1181.         return $this;
  1182.     }
  1183.     /**
  1184.      * @return Collection|StockProviderKitEntry[]
  1185.      */
  1186.     public function getStockProviderKitEntries(): Collection
  1187.     {
  1188.         return $this->stockProviderKitEntries;
  1189.     }
  1190.     public function addStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
  1191.     {
  1192.         if (!$this->stockProviderKitEntries->contains($stockProviderKitEntry)) {
  1193.             $this->stockProviderKitEntries[] = $stockProviderKitEntry;
  1194.             $stockProviderKitEntry->setSchoolYear($this);
  1195.         }
  1196.         return $this;
  1197.     }
  1198.     public function removeStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
  1199.     {
  1200.         if ($this->stockProviderKitEntries->removeElement($stockProviderKitEntry)) {
  1201.             // set the owning side to null (unless already changed)
  1202.             if ($stockProviderKitEntry->getSchoolYear() === $this) {
  1203.                 $stockProviderKitEntry->setSchoolYear(null);
  1204.             }
  1205.         }
  1206.         return $this;
  1207.     }
  1208.     /**
  1209.      * @return Collection|StockProviderKitEntryLine[]
  1210.      */
  1211.     public function getStockProviderKitEntryLines(): Collection
  1212.     {
  1213.         return $this->stockProviderKitEntryLines;
  1214.     }
  1215.     public function addStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
  1216.     {
  1217.         if (!$this->stockProviderKitEntryLines->contains($stockProviderKitEntryLine)) {
  1218.             $this->stockProviderKitEntryLines[] = $stockProviderKitEntryLine;
  1219.             $stockProviderKitEntryLine->setSchoolYear($this);
  1220.         }
  1221.         return $this;
  1222.     }
  1223.     public function removeStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
  1224.     {
  1225.         if ($this->stockProviderKitEntryLines->removeElement($stockProviderKitEntryLine)) {
  1226.             // set the owning side to null (unless already changed)
  1227.             if ($stockProviderKitEntryLine->getSchoolYear() === $this) {
  1228.                 $stockProviderKitEntryLine->setSchoolYear(null);
  1229.             }
  1230.         }
  1231.         return $this;
  1232.     }
  1233.     /**
  1234.      * @return Collection|StockStudentKitEntry[]
  1235.      */
  1236.     public function getStockStudentKitEntries(): Collection
  1237.     {
  1238.         return $this->stockStudentKitEntries;
  1239.     }
  1240.     public function addStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
  1241.     {
  1242.         if (!$this->stockStudentKitEntries->contains($stockStudentKitEntry)) {
  1243.             $this->stockStudentKitEntries[] = $stockStudentKitEntry;
  1244.             $stockStudentKitEntry->setSchoolYear($this);
  1245.         }
  1246.         return $this;
  1247.     }
  1248.     public function removeStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
  1249.     {
  1250.         if ($this->stockStudentKitEntries->removeElement($stockStudentKitEntry)) {
  1251.             // set the owning side to null (unless already changed)
  1252.             if ($stockStudentKitEntry->getSchoolYear() === $this) {
  1253.                 $stockStudentKitEntry->setSchoolYear(null);
  1254.             }
  1255.         }
  1256.         return $this;
  1257.     }
  1258.     /**
  1259.      * @return Collection|StockStudentKitEntryLine[]
  1260.      */
  1261.     public function getStockStudentKitEntryLines(): Collection
  1262.     {
  1263.         return $this->stockStudentKitEntryLines;
  1264.     }
  1265.     public function addStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
  1266.     {
  1267.         if (!$this->stockStudentKitEntryLines->contains($stockStudentKitEntryLine)) {
  1268.             $this->stockStudentKitEntryLines[] = $stockStudentKitEntryLine;
  1269.             $stockStudentKitEntryLine->setSchoolYear($this);
  1270.         }
  1271.         return $this;
  1272.     }
  1273.     public function removeStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
  1274.     {
  1275.         if ($this->stockStudentKitEntryLines->removeElement($stockStudentKitEntryLine)) {
  1276.             // set the owning side to null (unless already changed)
  1277.             if ($stockStudentKitEntryLine->getSchoolYear() === $this) {
  1278.                 $stockStudentKitEntryLine->setSchoolYear(null);
  1279.             }
  1280.         }
  1281.         return $this;
  1282.     }
  1283.     /**
  1284.      * @return Collection|StockKitOut[]
  1285.      */
  1286.     public function getStockKitOuts(): Collection
  1287.     {
  1288.         return $this->stockKitOuts;
  1289.     }
  1290.     public function addStockKitOut(StockKitOut $stockKitOut): self
  1291.     {
  1292.         if (!$this->stockKitOuts->contains($stockKitOut)) {
  1293.             $this->stockKitOuts[] = $stockKitOut;
  1294.             $stockKitOut->setSchoolYear($this);
  1295.         }
  1296.         return $this;
  1297.     }
  1298.     public function removeStockKitOut(StockKitOut $stockKitOut): self
  1299.     {
  1300.         if ($this->stockKitOuts->removeElement($stockKitOut)) {
  1301.             // set the owning side to null (unless already changed)
  1302.             if ($stockKitOut->getSchoolYear() === $this) {
  1303.                 $stockKitOut->setSchoolYear(null);
  1304.             }
  1305.         }
  1306.         return $this;
  1307.     }
  1308.     /**
  1309.      * @return Collection|StockKitOutLine[]
  1310.      */
  1311.     public function getStockKitOutLines(): Collection
  1312.     {
  1313.         return $this->stockKitOutLines;
  1314.     }
  1315.     public function addStockKitOutLine(StockKitOutLine $stockKitOutLine): self
  1316.     {
  1317.         if (!$this->stockKitOutLines->contains($stockKitOutLine)) {
  1318.             $this->stockKitOutLines[] = $stockKitOutLine;
  1319.             $stockKitOutLine->setSchoolYear($this);
  1320.         }
  1321.         return $this;
  1322.     }
  1323.     public function removeStockKitOutLine(StockKitOutLine $stockKitOutLine): self
  1324.     {
  1325.         if ($this->stockKitOutLines->removeElement($stockKitOutLine)) {
  1326.             // set the owning side to null (unless already changed)
  1327.             if ($stockKitOutLine->getSchoolYear() === $this) {
  1328.                 $stockKitOutLine->setSchoolYear(null);
  1329.             }
  1330.         }
  1331.         return $this;
  1332.     }
  1333.     /**
  1334.      * @return Collection|StockProductOut[]
  1335.      */
  1336.     public function getStockProductOuts(): Collection
  1337.     {
  1338.         return $this->stockProductOuts;
  1339.     }
  1340.     public function addStockProductOut(StockProductOut $stockProductOut): self
  1341.     {
  1342.         if (!$this->stockProductOuts->contains($stockProductOut)) {
  1343.             $this->stockProductOuts[] = $stockProductOut;
  1344.             $stockProductOut->setSchoolYear($this);
  1345.         }
  1346.         return $this;
  1347.     }
  1348.     public function removeStockProductOut(StockProductOut $stockProductOut): self
  1349.     {
  1350.         if ($this->stockProductOuts->removeElement($stockProductOut)) {
  1351.             // set the owning side to null (unless already changed)
  1352.             if ($stockProductOut->getSchoolYear() === $this) {
  1353.                 $stockProductOut->setSchoolYear(null);
  1354.             }
  1355.         }
  1356.         return $this;
  1357.     }
  1358.     /**
  1359.      * @return Collection|AccountingCredit[]
  1360.      */
  1361.     public function getAccountingCredits(): Collection
  1362.     {
  1363.         return $this->accountingCredits;
  1364.     }
  1365.     public function addAccountingCredit(AccountingCredit $accountingCredit): self
  1366.     {
  1367.         if (!$this->accountingCredits->contains($accountingCredit)) {
  1368.             $this->accountingCredits[] = $accountingCredit;
  1369.             $accountingCredit->setSchoolYear($this);
  1370.         }
  1371.         return $this;
  1372.     }
  1373.     public function removeAccountingCredit(AccountingCredit $accountingCredit): self
  1374.     {
  1375.         if ($this->accountingCredits->removeElement($accountingCredit)) {
  1376.             // set the owning side to null (unless already changed)
  1377.             if ($accountingCredit->getSchoolYear() === $this) {
  1378.                 $accountingCredit->setSchoolYear(null);
  1379.             }
  1380.         }
  1381.         return $this;
  1382.     }
  1383.     /**
  1384.      * @return Collection|AccountingCreditLine[]
  1385.      */
  1386.     public function getAccountingCreditLines(): Collection
  1387.     {
  1388.         return $this->accountingCreditLines;
  1389.     }
  1390.     public function addAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
  1391.     {
  1392.         if (!$this->accountingCreditLines->contains($accountingCreditLine)) {
  1393.             $this->accountingCreditLines[] = $accountingCreditLine;
  1394.             $accountingCreditLine->setSchoolYear($this);
  1395.         }
  1396.         return $this;
  1397.     }
  1398.     public function removeAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
  1399.     {
  1400.         if ($this->accountingCreditLines->removeElement($accountingCreditLine)) {
  1401.             // set the owning side to null (unless already changed)
  1402.             if ($accountingCreditLine->getSchoolYear() === $this) {
  1403.                 $accountingCreditLine->setSchoolYear(null);
  1404.             }
  1405.         }
  1406.         return $this;
  1407.     }
  1408.     /**
  1409.      * @return Collection|SchoolAverage[]
  1410.      */
  1411.     public function getSchoolAverages(): Collection
  1412.     {
  1413.         return $this->schoolAverages;
  1414.     }
  1415.     public function addSchoolAverage(SchoolAverage $schoolAverage): self
  1416.     {
  1417.         if (!$this->schoolAverages->contains($schoolAverage)) {
  1418.             $this->schoolAverages[] = $schoolAverage;
  1419.             $schoolAverage->setSchoolYear($this);
  1420.         }
  1421.         return $this;
  1422.     }
  1423.     public function removeSchoolAverage(SchoolAverage $schoolAverage): self
  1424.     {
  1425.         if ($this->schoolAverages->removeElement($schoolAverage)) {
  1426.             // set the owning side to null (unless already changed)
  1427.             if ($schoolAverage->getSchoolYear() === $this) {
  1428.                 $schoolAverage->setSchoolYear(null);
  1429.             }
  1430.         }
  1431.         return $this;
  1432.     }
  1433.     /**
  1434.      * @return Collection|SchoolStudentAverage[]
  1435.      */
  1436.     public function getSchoolStudentAverages(): Collection
  1437.     {
  1438.         return $this->schoolStudentAverages;
  1439.     }
  1440.     public function addSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
  1441.     {
  1442.         if (!$this->schoolStudentAverages->contains($schoolStudentAverage)) {
  1443.             $this->schoolStudentAverages[] = $schoolStudentAverage;
  1444.             $schoolStudentAverage->setSchoolYear($this);
  1445.         }
  1446.         return $this;
  1447.     }
  1448.     public function removeSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
  1449.     {
  1450.         if ($this->schoolStudentAverages->removeElement($schoolStudentAverage)) {
  1451.             // set the owning side to null (unless already changed)
  1452.             if ($schoolStudentAverage->getSchoolYear() === $this) {
  1453.                 $schoolStudentAverage->setSchoolYear(null);
  1454.             }
  1455.         }
  1456.         return $this;
  1457.     }
  1458.     /**
  1459.      * @return Collection|SchoolCertificate[]
  1460.      */
  1461.     public function getSchoolCertificates(): Collection
  1462.     {
  1463.         return $this->schoolCertificates;
  1464.     }
  1465.     public function addSchoolCertificate(SchoolCertificate $schoolCertificate): self
  1466.     {
  1467.         if (!$this->schoolCertificates->contains($schoolCertificate)) {
  1468.             $this->schoolCertificates[] = $schoolCertificate;
  1469.             $schoolCertificate->setSchoolYear($this);
  1470.         }
  1471.         return $this;
  1472.     }
  1473.     public function removeSchoolCertificate(SchoolCertificate $schoolCertificate): self
  1474.     {
  1475.         if ($this->schoolCertificates->removeElement($schoolCertificate)) {
  1476.             // set the owning side to null (unless already changed)
  1477.             if ($schoolCertificate->getSchoolYear() === $this) {
  1478.                 $schoolCertificate->setSchoolYear(null);
  1479.             }
  1480.         }
  1481.         return $this;
  1482.     }
  1483.     /**
  1484.      * @return Collection|SchoolCertificateLine[]
  1485.      */
  1486.     public function getSchoolCertificateLines(): Collection
  1487.     {
  1488.         return $this->schoolCertificateLines;
  1489.     }
  1490.     public function addSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
  1491.     {
  1492.         if (!$this->schoolCertificateLines->contains($schoolCertificateLine)) {
  1493.             $this->schoolCertificateLines[] = $schoolCertificateLine;
  1494.             $schoolCertificateLine->setSchoolYear($this);
  1495.         }
  1496.         return $this;
  1497.     }
  1498.     public function removeSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
  1499.     {
  1500.         if ($this->schoolCertificateLines->removeElement($schoolCertificateLine)) {
  1501.             // set the owning side to null (unless already changed)
  1502.             if ($schoolCertificateLine->getSchoolYear() === $this) {
  1503.                 $schoolCertificateLine->setSchoolYear(null);
  1504.             }
  1505.         }
  1506.         return $this;
  1507.     }
  1508.     /**
  1509.      * @return Collection|NurseryTimeSheet[]
  1510.      */
  1511.     public function getNurseryTimeSheets(): Collection
  1512.     {
  1513.         return $this->nurseryTimeSheets;
  1514.     }
  1515.     public function addNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
  1516.     {
  1517.         if (!$this->nurseryTimeSheets->contains($nurseryTimeSheet)) {
  1518.             $this->nurseryTimeSheets[] = $nurseryTimeSheet;
  1519.             $nurseryTimeSheet->setSchoolYear($this);
  1520.         }
  1521.         return $this;
  1522.     }
  1523.     public function removeNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
  1524.     {
  1525.         if ($this->nurseryTimeSheets->removeElement($nurseryTimeSheet)) {
  1526.             // set the owning side to null (unless already changed)
  1527.             if ($nurseryTimeSheet->getSchoolYear() === $this) {
  1528.                 $nurseryTimeSheet->setSchoolYear(null);
  1529.             }
  1530.         }
  1531.         return $this;
  1532.     }
  1533.     /**
  1534.      * @return Collection|SettingTimeTable[]
  1535.      */
  1536.     public function getSettingTimeTables(): Collection
  1537.     {
  1538.         return $this->settingTimeTables;
  1539.     }
  1540.     public function addSettingTimeTable(SettingTimeTable $settingTimeTable): self
  1541.     {
  1542.         if (!$this->settingTimeTables->contains($settingTimeTable)) {
  1543.             $this->settingTimeTables[] = $settingTimeTable;
  1544.             $settingTimeTable->setSchoolYear($this);
  1545.         }
  1546.         return $this;
  1547.     }
  1548.     public function removeSettingTimeTable(SettingTimeTable $settingTimeTable): self
  1549.     {
  1550.         if ($this->settingTimeTables->removeElement($settingTimeTable)) {
  1551.             // set the owning side to null (unless already changed)
  1552.             if ($settingTimeTable->getSchoolYear() === $this) {
  1553.                 $settingTimeTable->setSchoolYear(null);
  1554.             }
  1555.         }
  1556.         return $this;
  1557.     }
  1558.     /**
  1559.      * @return Collection|SchoolWorkingTime[]
  1560.      */
  1561.     public function getSchoolWorkingTimes(): Collection
  1562.     {
  1563.         return $this->schoolWorkingTimes;
  1564.     }
  1565.     public function addSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
  1566.     {
  1567.         if (!$this->schoolWorkingTimes->contains($schoolWorkingTime)) {
  1568.             $this->schoolWorkingTimes[] = $schoolWorkingTime;
  1569.             $schoolWorkingTime->setSchoolYear($this);
  1570.         }
  1571.         return $this;
  1572.     }
  1573.     public function removeSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
  1574.     {
  1575.         if ($this->schoolWorkingTimes->removeElement($schoolWorkingTime)) {
  1576.             // set the owning side to null (unless already changed)
  1577.             if ($schoolWorkingTime->getSchoolYear() === $this) {
  1578.                 $schoolWorkingTime->setSchoolYear(null);
  1579.             }
  1580.         }
  1581.         return $this;
  1582.     }
  1583.     /**
  1584.      * @return Collection|SchoolWorkingTimeHourLesson[]
  1585.      */
  1586.     public function getSchoolWorkingTimeHourLessons(): Collection
  1587.     {
  1588.         return $this->schoolWorkingTimeHourLessons;
  1589.     }
  1590.     public function addSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
  1591.     {
  1592.         if (!$this->schoolWorkingTimeHourLessons->contains($schoolWorkingTimeHourLesson)) {
  1593.             $this->schoolWorkingTimeHourLessons[] = $schoolWorkingTimeHourLesson;
  1594.             $schoolWorkingTimeHourLesson->setSchoolYear($this);
  1595.         }
  1596.         return $this;
  1597.     }
  1598.     public function removeSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
  1599.     {
  1600.         if ($this->schoolWorkingTimeHourLessons->removeElement($schoolWorkingTimeHourLesson)) {
  1601.             // set the owning side to null (unless already changed)
  1602.             if ($schoolWorkingTimeHourLesson->getSchoolYear() === $this) {
  1603.                 $schoolWorkingTimeHourLesson->setSchoolYear(null);
  1604.             }
  1605.         }
  1606.         return $this;
  1607.     }
  1608.     /**
  1609.      * @return Collection|FoundingNotification[]
  1610.      */
  1611.     public function getFoundingNotifications(): Collection
  1612.     {
  1613.         return $this->foundingNotifications;
  1614.     }
  1615.     public function addFoundingNotification(FoundingNotification $foundingNotification): self
  1616.     {
  1617.         if (!$this->foundingNotifications->contains($foundingNotification)) {
  1618.             $this->foundingNotifications[] = $foundingNotification;
  1619.             $foundingNotification->setSchoolYear($this);
  1620.         }
  1621.         return $this;
  1622.     }
  1623.     public function removeFoundingNotification(FoundingNotification $foundingNotification): self
  1624.     {
  1625.         if ($this->foundingNotifications->removeElement($foundingNotification)) {
  1626.             // set the owning side to null (unless already changed)
  1627.             if ($foundingNotification->getSchoolYear() === $this) {
  1628.                 $foundingNotification->setSchoolYear(null);
  1629.             }
  1630.         }
  1631.         return $this;
  1632.     }
  1633.     /**
  1634.      * @return Collection|SchoolTeacherCallSheet[]
  1635.      */
  1636.     public function getSchoolTeacherCallSheets(): Collection
  1637.     {
  1638.         return $this->schoolTeacherCallSheets;
  1639.     }
  1640.     public function addSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
  1641.     {
  1642.         if (!$this->schoolTeacherCallSheets->contains($schoolTeacherCallSheet)) {
  1643.             $this->schoolTeacherCallSheets[] = $schoolTeacherCallSheet;
  1644.             $schoolTeacherCallSheet->setSchoolYear($this);
  1645.         }
  1646.         return $this;
  1647.     }
  1648.     public function removeSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
  1649.     {
  1650.         if ($this->schoolTeacherCallSheets->removeElement($schoolTeacherCallSheet)) {
  1651.             // set the owning side to null (unless already changed)
  1652.             if ($schoolTeacherCallSheet->getSchoolYear() === $this) {
  1653.                 $schoolTeacherCallSheet->setSchoolYear(null);
  1654.             }
  1655.         }
  1656.         return $this;
  1657.     }
  1658.     /**
  1659.      * @return Collection|SchoolTeacherCallSheetLine[]
  1660.      */
  1661.     public function getSchoolTeacherCallSheetLines(): Collection
  1662.     {
  1663.         return $this->schoolTeacherCallSheetLines;
  1664.     }
  1665.     public function addSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
  1666.     {
  1667.         if (!$this->schoolTeacherCallSheetLines->contains($schoolTeacherCallSheetLine)) {
  1668.             $this->schoolTeacherCallSheetLines[] = $schoolTeacherCallSheetLine;
  1669.             $schoolTeacherCallSheetLine->setSchoolYear($this);
  1670.         }
  1671.         return $this;
  1672.     }
  1673.     public function removeSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
  1674.     {
  1675.         if ($this->schoolTeacherCallSheetLines->removeElement($schoolTeacherCallSheetLine)) {
  1676.             // set the owning side to null (unless already changed)
  1677.             if ($schoolTeacherCallSheetLine->getSchoolYear() === $this) {
  1678.                 $schoolTeacherCallSheetLine->setSchoolYear(null);
  1679.             }
  1680.         }
  1681.         return $this;
  1682.     }
  1683.     /**
  1684.      * @return Collection|SchoolTeacherMatterClassroom[]
  1685.      */
  1686.     public function getSchoolTeacherMatterClassrooms(): Collection
  1687.     {
  1688.         return $this->schoolTeacherMatterClassrooms;
  1689.     }
  1690.     public function addSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
  1691.     {
  1692.         if (!$this->schoolTeacherMatterClassrooms->contains($schoolTeacherMatterClassroom)) {
  1693.             $this->schoolTeacherMatterClassrooms[] = $schoolTeacherMatterClassroom;
  1694.             $schoolTeacherMatterClassroom->setSchoolYear($this);
  1695.         }
  1696.         return $this;
  1697.     }
  1698.     public function removeSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
  1699.     {
  1700.         if ($this->schoolTeacherMatterClassrooms->removeElement($schoolTeacherMatterClassroom)) {
  1701.             // set the owning side to null (unless already changed)
  1702.             if ($schoolTeacherMatterClassroom->getSchoolYear() === $this) {
  1703.                 $schoolTeacherMatterClassroom->setSchoolYear(null);
  1704.             }
  1705.         }
  1706.         return $this;
  1707.     }
  1708.     /**
  1709.      * @return Collection|User[]
  1710.      */
  1711.     public function getUsers(): Collection
  1712.     {
  1713.         return $this->users;
  1714.     }
  1715.     public function addUser(User $user): self
  1716.     {
  1717.         if (!$this->users->contains($user)) {
  1718.             $this->users[] = $user;
  1719.             $user->setSchoolYear($this);
  1720.         }
  1721.         return $this;
  1722.     }
  1723.     public function removeUser(User $user): self
  1724.     {
  1725.         if ($this->users->removeElement($user)) {
  1726.             // set the owning side to null (unless already changed)
  1727.             if ($user->getSchoolYear() === $this) {
  1728.                 $user->setSchoolYear(null);
  1729.             }
  1730.         }
  1731.         return $this;
  1732.     }
  1733.     /**
  1734.      * @return Collection|SchoolTeacherTimeSheet[]
  1735.      */
  1736.     public function getSchoolTeacherTimeSheets(): Collection
  1737.     {
  1738.         return $this->schoolTeacherTimeSheets;
  1739.     }
  1740.     public function addSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
  1741.     {
  1742.         if (!$this->schoolTeacherTimeSheets->contains($schoolTeacherTimeSheet)) {
  1743.             $this->schoolTeacherTimeSheets[] = $schoolTeacherTimeSheet;
  1744.             $schoolTeacherTimeSheet->setSchoolYear($this);
  1745.         }
  1746.         return $this;
  1747.     }
  1748.     public function removeSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
  1749.     {
  1750.         if ($this->schoolTeacherTimeSheets->removeElement($schoolTeacherTimeSheet)) {
  1751.             // set the owning side to null (unless already changed)
  1752.             if ($schoolTeacherTimeSheet->getSchoolYear() === $this) {
  1753.                 $schoolTeacherTimeSheet->setSchoolYear(null);
  1754.             }
  1755.         }
  1756.         return $this;
  1757.     }
  1758.     /**
  1759.      * @return Collection|SchoolAssessment[]
  1760.      */
  1761.     public function getSchoolAssessments(): Collection
  1762.     {
  1763.         return $this->schoolAssessments;
  1764.     }
  1765.     public function addSchoolAssessment(SchoolAssessment $schoolAssessment): self
  1766.     {
  1767.         if (!$this->schoolAssessments->contains($schoolAssessment)) {
  1768.             $this->schoolAssessments[] = $schoolAssessment;
  1769.             $schoolAssessment->setSchoolYear($this);
  1770.         }
  1771.         return $this;
  1772.     }
  1773.     public function removeSchoolAssessment(SchoolAssessment $schoolAssessment): self
  1774.     {
  1775.         if ($this->schoolAssessments->removeElement($schoolAssessment)) {
  1776.             // set the owning side to null (unless already changed)
  1777.             if ($schoolAssessment->getSchoolYear() === $this) {
  1778.                 $schoolAssessment->setSchoolYear(null);
  1779.             }
  1780.         }
  1781.         return $this;
  1782.     }
  1783.     /**
  1784.      * @return Collection|SchoolAssessment[]
  1785.      */
  1786.     public function getNexSchoolAssessments(): Collection
  1787.     {
  1788.         return $this->nexSchoolAssessments;
  1789.     }
  1790.     public function addNexSchoolAssessment(SchoolAssessment $nexSchoolAssessment): self
  1791.     {
  1792.         if (!$this->nexSchoolAssessments->contains($nexSchoolAssessment)) {
  1793.             $this->nexSchoolAssessments[] = $nexSchoolAssessment;
  1794.             $nexSchoolAssessment->setNexSchoolYear($this);
  1795.         }
  1796.         return $this;
  1797.     }
  1798.     public function removeNexSchoolAssessment(SchoolAssessment $nexSchoolAssessment): self
  1799.     {
  1800.         if ($this->nexSchoolAssessments->removeElement($nexSchoolAssessment)) {
  1801.             // set the owning side to null (unless already changed)
  1802.             if ($nexSchoolAssessment->getNexSchoolYear() === $this) {
  1803.                 $nexSchoolAssessment->setNexSchoolYear(null);
  1804.             }
  1805.         }
  1806.         return $this;
  1807.     }
  1808.     /**
  1809.      * @return Collection|AccountingChequeTracking[]
  1810.      */
  1811.     public function getAccountingChequeTrackings(): Collection
  1812.     {
  1813.         return $this->accountingChequeTrackings;
  1814.     }
  1815.     public function addAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
  1816.     {
  1817.         if (!$this->accountingChequeTrackings->contains($accountingChequeTracking)) {
  1818.             $this->accountingChequeTrackings[] = $accountingChequeTracking;
  1819.             $accountingChequeTracking->setSchoolYear($this);
  1820.         }
  1821.         return $this;
  1822.     }
  1823.     public function removeAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
  1824.     {
  1825.         if ($this->accountingChequeTrackings->removeElement($accountingChequeTracking)) {
  1826.             // set the owning side to null (unless already changed)
  1827.             if ($accountingChequeTracking->getSchoolYear() === $this) {
  1828.                 $accountingChequeTracking->setSchoolYear(null);
  1829.             }
  1830.         }
  1831.         return $this;
  1832.     }
  1833.     /**
  1834.      * @return Collection|AccountingChequeTrackingLine[]
  1835.      */
  1836.     public function getAccountingChequeTrackingLines(): Collection
  1837.     {
  1838.         return $this->accountingChequeTrackingLines;
  1839.     }
  1840.     public function addAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
  1841.     {
  1842.         if (!$this->accountingChequeTrackingLines->contains($accountingChequeTrackingLine)) {
  1843.             $this->accountingChequeTrackingLines[] = $accountingChequeTrackingLine;
  1844.             $accountingChequeTrackingLine->setSchoolYear($this);
  1845.         }
  1846.         return $this;
  1847.     }
  1848.     public function removeAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
  1849.     {
  1850.         if ($this->accountingChequeTrackingLines->removeElement($accountingChequeTrackingLine)) {
  1851.             // set the owning side to null (unless already changed)
  1852.             if ($accountingChequeTrackingLine->getSchoolYear() === $this) {
  1853.                 $accountingChequeTrackingLine->setSchoolYear(null);
  1854.             }
  1855.         }
  1856.         return $this;
  1857.     }
  1858.     /**
  1859.      * @return Collection|StockKitCategory[]
  1860.      */
  1861.     public function getStockKitCategories(): Collection
  1862.     {
  1863.         return $this->stockKitCategories;
  1864.     }
  1865.     public function addStockKitCategory(StockKitCategory $stockKitCategory): self
  1866.     {
  1867.         if (!$this->stockKitCategories->contains($stockKitCategory)) {
  1868.             $this->stockKitCategories[] = $stockKitCategory;
  1869.             $stockKitCategory->setSchoolYear($this);
  1870.         }
  1871.         return $this;
  1872.     }
  1873.     public function removeStockKitCategory(StockKitCategory $stockKitCategory): self
  1874.     {
  1875.         if ($this->stockKitCategories->removeElement($stockKitCategory)) {
  1876.             // set the owning side to null (unless already changed)
  1877.             if ($stockKitCategory->getSchoolYear() === $this) {
  1878.                 $stockKitCategory->setSchoolYear(null);
  1879.             }
  1880.         }
  1881.         return $this;
  1882.     }
  1883.     /**
  1884.      * @return Collection|SchoolReportCardAbsence[]
  1885.      */
  1886.     public function getSchoolReportCardAbsences(): Collection
  1887.     {
  1888.         return $this->schoolReportCardAbsences;
  1889.     }
  1890.     public function addSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
  1891.     {
  1892.         if (!$this->schoolReportCardAbsences->contains($schoolReportCardAbsence)) {
  1893.             $this->schoolReportCardAbsences[] = $schoolReportCardAbsence;
  1894.             $schoolReportCardAbsence->setSchoolYear($this);
  1895.         }
  1896.         return $this;
  1897.     }
  1898.     public function removeSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
  1899.     {
  1900.         if ($this->schoolReportCardAbsences->removeElement($schoolReportCardAbsence)) {
  1901.             // set the owning side to null (unless already changed)
  1902.             if ($schoolReportCardAbsence->getSchoolYear() === $this) {
  1903.                 $schoolReportCardAbsence->setSchoolYear(null);
  1904.             }
  1905.         }
  1906.         return $this;
  1907.     }
  1908.     /**
  1909.      * @return Collection|WavePayment[]
  1910.      */
  1911.     public function getWavePayments(): Collection
  1912.     {
  1913.         return $this->wavePayments;
  1914.     }
  1915.     public function addWavePayment(WavePayment $wavePayment): self
  1916.     {
  1917.         if (!$this->wavePayments->contains($wavePayment)) {
  1918.             $this->wavePayments[] = $wavePayment;
  1919.             $wavePayment->setSchoolYear($this);
  1920.         }
  1921.         return $this;
  1922.     }
  1923.     public function removeWavePayment(WavePayment $wavePayment): self
  1924.     {
  1925.         if ($this->wavePayments->removeElement($wavePayment)) {
  1926.             // set the owning side to null (unless already changed)
  1927.             if ($wavePayment->getSchoolYear() === $this) {
  1928.                 $wavePayment->setSchoolYear(null);
  1929.             }
  1930.         }
  1931.         return $this;
  1932.     }
  1933.     /**
  1934.      * @return Collection|ToxicologicalTestResult[]
  1935.      */
  1936.     public function getToxicologicalTestResults(): Collection
  1937.     {
  1938.         return $this->toxicologicalTestResults;
  1939.     }
  1940.     public function addToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  1941.     {
  1942.         if (!$this->toxicologicalTestResults->contains($toxicologicalTestResult)) {
  1943.             $this->toxicologicalTestResults[] = $toxicologicalTestResult;
  1944.             $toxicologicalTestResult->setSchoolYear($this);
  1945.         }
  1946.         return $this;
  1947.     }
  1948.     public function removeToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  1949.     {
  1950.         if ($this->toxicologicalTestResults->removeElement($toxicologicalTestResult)) {
  1951.             // set the owning side to null (unless already changed)
  1952.             if ($toxicologicalTestResult->getSchoolYear() === $this) {
  1953.                 $toxicologicalTestResult->setSchoolYear(null);
  1954.             }
  1955.         }
  1956.         return $this;
  1957.     }
  1958.     /**
  1959.      * @return Collection|ToxicologicalTestResultLine[]
  1960.      */
  1961.     public function getToxicologicalTestResultLines(): Collection
  1962.     {
  1963.         return $this->toxicologicalTestResultLines;
  1964.     }
  1965.     public function addToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
  1966.     {
  1967.         if (!$this->toxicologicalTestResultLines->contains($toxicologicalTestResultLine)) {
  1968.             $this->toxicologicalTestResultLines[] = $toxicologicalTestResultLine;
  1969.             $toxicologicalTestResultLine->setSchoolYear($this);
  1970.         }
  1971.         return $this;
  1972.     }
  1973.     public function removeToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
  1974.     {
  1975.         if ($this->toxicologicalTestResultLines->removeElement($toxicologicalTestResultLine)) {
  1976.             // set the owning side to null (unless already changed)
  1977.             if ($toxicologicalTestResultLine->getSchoolYear() === $this) {
  1978.                 $toxicologicalTestResultLine->setSchoolYear(null);
  1979.             }
  1980.         }
  1981.         return $this;
  1982.     }
  1983.     /**
  1984.      * @return Collection|SchoolTeacherAbsence[]
  1985.      */
  1986.     public function getSchoolTeacherAbsences(): Collection
  1987.     {
  1988.         return $this->schoolTeacherAbsences;
  1989.     }
  1990.     public function addSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
  1991.     {
  1992.         if (!$this->schoolTeacherAbsences->contains($schoolTeacherAbsence)) {
  1993.             $this->schoolTeacherAbsences[] = $schoolTeacherAbsence;
  1994.             $schoolTeacherAbsence->setSchoolYear($this);
  1995.         }
  1996.         return $this;
  1997.     }
  1998.     public function removeSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
  1999.     {
  2000.         if ($this->schoolTeacherAbsences->removeElement($schoolTeacherAbsence)) {
  2001.             // set the owning side to null (unless already changed)
  2002.             if ($schoolTeacherAbsence->getSchoolYear() === $this) {
  2003.                 $schoolTeacherAbsence->setSchoolYear(null);
  2004.             }
  2005.         }
  2006.         return $this;
  2007.     }
  2008. }