<?php
namespace App\Entity;
use App\Repository\SchoolYearRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SchoolYearRepository::class)
*/
class SchoolYear
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="boolean")
*/
private $is_ongoing;
/**
* @ORM\Column(type="boolean")
*/
private $is_archived;
/**
* @ORM\Column(type="string", length=60)
*/
private $code;
/**
* @ORM\Column(type="string", length=128)
*/
private $label;
/**
* @ORM\Column(type="string", length=60, nullable=true)
*/
private $fiscal_year;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $created_at;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $updated_at;
/**
* @ORM\Column(type="integer")
*/
private $created_by;
/**
* @ORM\Column(type="integer")
*/
private $updated_by;
/**
* @ORM\OneToMany(targetEntity=RegistrationStudentRegistration::class, mappedBy="schoolYear")
*/
private $registrationStudentRegistrations;
/**
* @ORM\OneToMany(targetEntity=SchoolYearPeriode::class, mappedBy="schoolYear")
*/
private $schoolYearPeriodes;
/**
* @ORM\OneToMany(targetEntity=SchoolReportCard::class, mappedBy="schoolYear")
*/
private $schoolReportCards;
/**
* @ORM\OneToMany(targetEntity=SchoolAverageReportCard::class, mappedBy="schoolYear")
*/
private $schoolAverageReportCards;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessmentByClass::class, mappedBy="schoolYear")
*/
private $schoolAssessmentByClasses;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessmentByLevel::class, mappedBy="schoolYear")
*/
private $schoolAssessmentByLevels;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessmentByClassByMatter::class, mappedBy="schoolYear")
*/
private $schoolAssessmentByClassByMatters;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessmentByLevelByMatter::class, mappedBy="schoolYear")
*/
private $schoolAssessmentByLevelByMatters;
/**
* @ORM\OneToMany(targetEntity=ReportCard::class, mappedBy="schoolYear")
*/
private $reportCards;
/**
* @ORM\OneToMany(targetEntity=AccountingStudentRegistrationPayment::class, mappedBy="schoolYear")
*/
private $accountingStudentRegistrationPayments;
/**
* @ORM\OneToMany(targetEntity=TreasuryCashRegister::class, mappedBy="schoolYear")
*/
private $treasuryCashRegisters;
/**
* @ORM\OneToMany(targetEntity=TreasuryCheckout::class, mappedBy="schoolYear")
*/
private $treasuryCheckouts;
/**
* @ORM\OneToMany(targetEntity=RegistrationClassChange::class, mappedBy="schoolYear")
*/
private $registrationClassChanges;
/**
* @ORM\OneToMany(targetEntity=TreasuryPayment::class, mappedBy="schoolYear")
*/
private $treasuryPayments;
/**
* @ORM\OneToMany(targetEntity=AccountingExpense::class, mappedBy="schoolYear")
*/
private $accountingExpenses;
/**
* @ORM\OneToMany(targetEntity=RegistrationStudentPreRegistration::class, mappedBy="schoolYear")
*/
private $registrationStudentPreRegistrations;
/**
* @ORM\OneToMany(targetEntity=EntreTestReportCard::class, mappedBy="schoolYear")
*/
private $entreTestReportCards;
/**
* @ORM\OneToMany(targetEntity=PreRegistrationEntreTestReportCard::class, mappedBy="schoolYear")
*/
private $preRegistrationEntreTestReportCards;
/**
* @ORM\OneToMany(targetEntity=SettingClassroom::class, mappedBy="schoolYear")
*/
private $settingClassrooms;
/**
* @ORM\OneToMany(targetEntity=SettingFee::class, mappedBy="schoolYear")
*/
private $settingFees;
/**
* @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelay::class, mappedBy="schoolYear")
*/
private $schoolAbsenceAndDelays;
/**
* @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotification::class, mappedBy="schoolYear")
*/
private $schoolAbsenceAndDelayNotifications;
/**
* @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotificationLine::class, mappedBy="schoolYear")
*/
private $schoolAbsenceAndDelayNotificationLines;
/**
* @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotification::class, mappedBy="schoolYear")
*/
private $schoolAbsenceAndDelayReportCardNotifications;
/**
* @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotificationLine::class, mappedBy="schoolYear")
*/
private $schoolAbsenceAndDelayReportCardNotificationLines;
/**
* @ORM\OneToMany(targetEntity=CommunicationMessage::class, mappedBy="schoolYear")
*/
private $communicationMessages;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacher::class, mappedBy="schoolYear")
*/
private $schoolTeachers;
/**
* @ORM\OneToMany(targetEntity=StockProductEntry::class, mappedBy="schoolYear")
*/
private $stockProductEntries;
/**
* @ORM\OneToMany(targetEntity=StockProductEntryLine::class, mappedBy="schoolYear")
*/
private $stockProductEntryLines;
/**
* @ORM\OneToMany(targetEntity=StockProviderKitEntry::class, mappedBy="schoolYear")
*/
private $stockProviderKitEntries;
/**
* @ORM\OneToMany(targetEntity=StockProviderKitEntryLine::class, mappedBy="schoolYear")
*/
private $stockProviderKitEntryLines;
/**
* @ORM\OneToMany(targetEntity=StockStudentKitEntry::class, mappedBy="schoolYear")
*/
private $stockStudentKitEntries;
/**
* @ORM\OneToMany(targetEntity=StockStudentKitEntryLine::class, mappedBy="schoolYear")
*/
private $stockStudentKitEntryLines;
/**
* @ORM\OneToMany(targetEntity=StockKitOut::class, mappedBy="schoolYear")
*/
private $stockKitOuts;
/**
* @ORM\OneToMany(targetEntity=StockKitOutLine::class, mappedBy="schoolYear")
*/
private $stockKitOutLines;
/**
* @ORM\OneToMany(targetEntity=StockProductOut::class, mappedBy="schoolYear")
*/
private $stockProductOuts;
/**
* @ORM\OneToMany(targetEntity=AccountingCredit::class, mappedBy="schoolYear")
*/
private $accountingCredits;
/**
* @ORM\OneToMany(targetEntity=AccountingCreditLine::class, mappedBy="schoolYear")
*/
private $accountingCreditLines;
/**
* @ORM\OneToMany(targetEntity=SchoolAverage::class, mappedBy="schoolYear")
*/
private $schoolAverages;
/**
* @ORM\OneToMany(targetEntity=SchoolStudentAverage::class, mappedBy="schoolYear")
*/
private $schoolStudentAverages;
/**
* @ORM\OneToMany(targetEntity=SchoolCertificate::class, mappedBy="schoolYear")
*/
private $schoolCertificates;
/**
* @ORM\OneToMany(targetEntity=SchoolCertificateLine::class, mappedBy="schoolYear")
*/
private $schoolCertificateLines;
/**
* @ORM\OneToMany(targetEntity=NurseryTimeSheet::class, mappedBy="schoolYear")
*/
private $nurseryTimeSheets;
/**
* @ORM\OneToMany(targetEntity=SettingTimeTable::class, mappedBy="schoolYear")
*/
private $settingTimeTables;
/**
* @ORM\OneToMany(targetEntity=SchoolWorkingTime::class, mappedBy="schoolYear")
*/
private $schoolWorkingTimes;
/**
* @ORM\OneToMany(targetEntity=SchoolWorkingTimeHourLesson::class, mappedBy="schoolYear")
*/
private $schoolWorkingTimeHourLessons;
/**
* @ORM\OneToMany(targetEntity=FoundingNotification::class, mappedBy="schoolYear")
*/
private $foundingNotifications;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacherCallSheet::class, mappedBy="schoolYear")
*/
private $schoolTeacherCallSheets;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacherCallSheetLine::class, mappedBy="schoolYear")
*/
private $schoolTeacherCallSheetLines;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacherMatterClassroom::class, mappedBy="schoolYear")
*/
private $schoolTeacherMatterClassrooms;
/**
* @ORM\OneToMany(targetEntity=User::class, mappedBy="schoolYear")
*/
private $users;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacherTimeSheet::class, mappedBy="schoolYear")
*/
private $schoolTeacherTimeSheets;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessment::class, mappedBy="schoolYear")
*/
private $schoolAssessments;
/**
* @ORM\OneToMany(targetEntity=SchoolAssessment::class, mappedBy="nexSchoolYear")
*/
private $nexSchoolAssessments;
/**
* @ORM\OneToMany(targetEntity=AccountingChequeTracking::class, mappedBy="schoolYear")
*/
private $accountingChequeTrackings;
/**
* @ORM\OneToMany(targetEntity=AccountingChequeTrackingLine::class, mappedBy="schoolYear")
*/
private $accountingChequeTrackingLines;
/**
* @ORM\OneToMany(targetEntity=StockKitCategory::class, mappedBy="schoolYear")
*/
private $stockKitCategories;
/**
* @ORM\OneToMany(targetEntity=SchoolReportCardAbsence::class, mappedBy="schoolYear")
*/
private $schoolReportCardAbsences;
/**
* @ORM\OneToMany(targetEntity=WavePayment::class, mappedBy="schoolYear")
*/
private $wavePayments;
/**
* @ORM\OneToMany(targetEntity=ToxicologicalTestResult::class, mappedBy="schoolYear")
*/
private $toxicologicalTestResults;
/**
* @ORM\OneToMany(targetEntity=ToxicologicalTestResultLine::class, mappedBy="schoolYear")
*/
private $toxicologicalTestResultLines;
/**
* @ORM\OneToMany(targetEntity=SchoolTeacherAbsence::class, mappedBy="schoolYear")
*/
private $schoolTeacherAbsences;
public function __construct()
{
$this->is_archived = false;
$this->is_ongoing = false;
$this->registrationStudentRegistrations = new ArrayCollection();
$this->schoolYearPeriodes = new ArrayCollection();
$this->schoolReportCards = new ArrayCollection();
$this->schoolAverageReportCards = new ArrayCollection();
$this->schoolAssessmentByClasses = new ArrayCollection();
$this->schoolAssessmentByLevels = new ArrayCollection();
$this->schoolAssessmentByClassByMatters = new ArrayCollection();
$this->schoolAssessmentByLevelByMatters = new ArrayCollection();
$this->reportCards = new ArrayCollection();
$this->accountingStudentRegistrationPayments = new ArrayCollection();
$this->treasuryCashRegisters = new ArrayCollection();
$this->treasuryCheckouts = new ArrayCollection();
$this->registrationClassChanges = new ArrayCollection();
$this->treasuryPayments = new ArrayCollection();
$this->accountingExpenses = new ArrayCollection();
$this->registrationStudentPreRegistrations = new ArrayCollection();
$this->entreTestReportCards = new ArrayCollection();
$this->preRegistrationEntreTestReportCards = new ArrayCollection();
$this->settingClassrooms = new ArrayCollection();
$this->settingFees = new ArrayCollection();
$this->schoolAbsenceAndDelays = new ArrayCollection();
$this->schoolAbsenceAndDelayNotifications = new ArrayCollection();
$this->schoolAbsenceAndDelayNotificationLines = new ArrayCollection();
$this->schoolAbsenceAndDelayReportCardNotifications = new ArrayCollection();
$this->schoolAbsenceAndDelayReportCardNotificationLines = new ArrayCollection();
$this->communicationMessages = new ArrayCollection();
$this->schoolTeachers = new ArrayCollection();
$this->stockProductEntries = new ArrayCollection();
$this->stockProductEntryLines = new ArrayCollection();
$this->stockProviderKitEntries = new ArrayCollection();
$this->stockProviderKitEntryLines = new ArrayCollection();
$this->stockStudentKitEntries = new ArrayCollection();
$this->stockStudentKitEntryLines = new ArrayCollection();
$this->stockKitOuts = new ArrayCollection();
$this->stockKitOutLines = new ArrayCollection();
$this->stockProductOuts = new ArrayCollection();
$this->accountingCredits = new ArrayCollection();
$this->accountingCreditLines = new ArrayCollection();
$this->schoolAverages = new ArrayCollection();
$this->schoolStudentAverages = new ArrayCollection();
$this->schoolCertificates = new ArrayCollection();
$this->schoolCertificateLines = new ArrayCollection();
$this->nurseryTimeSheets = new ArrayCollection();
$this->settingTimeTables = new ArrayCollection();
$this->schoolWorkingTimes = new ArrayCollection();
$this->schoolWorkingTimeHourLessons = new ArrayCollection();
$this->foundingNotifications = new ArrayCollection();
$this->schoolTeacherCallSheets = new ArrayCollection();
$this->schoolTeacherCallSheetLines = new ArrayCollection();
$this->schoolTeacherMatterClassrooms = new ArrayCollection();
$this->users = new ArrayCollection();
$this->schoolTeacherTimeSheets = new ArrayCollection();
$this->schoolAssessments = new ArrayCollection();
$this->nexSchoolAssessments = new ArrayCollection();
$this->accountingChequeTrackings = new ArrayCollection();
$this->accountingChequeTrackingLines = new ArrayCollection();
$this->stockKitCategories = new ArrayCollection();
$this->schoolReportCardAbsences = new ArrayCollection();
$this->wavePayments = new ArrayCollection();
$this->toxicologicalTestResults = new ArrayCollection();
$this->toxicologicalTestResultLines = new ArrayCollection();
$this->schoolTeacherAbsences = new ArrayCollection();
}
public function __toString()
{
return $this->code;
}
public function getId(): ?int
{
return $this->id;
}
public function getIsOngoing(): ?bool
{
return $this->is_ongoing;
}
public function setIsOngoing(bool $is_ongoing): self
{
$this->is_ongoing = $is_ongoing;
return $this;
}
public function getIsArchived(): ?bool
{
return $this->is_archived;
}
public function setIsArchived(bool $is_archived): self
{
$this->is_archived = $is_archived;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeImmutable $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updated_at;
}
public function setUpdatedAt(\DateTimeImmutable $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->created_by;
}
public function setCreatedBy(int $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updated_by;
}
public function setUpdatedBy(int $updated_by): self
{
$this->updated_by = $updated_by;
return $this;
}
/**
* @return Collection|RegistrationStudentRegistration[]
*/
public function getRegistrationStudentRegistrations(): Collection
{
return $this->registrationStudentRegistrations;
}
public function addRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
{
if (!$this->registrationStudentRegistrations->contains($registrationStudentRegistration)) {
$this->registrationStudentRegistrations[] = $registrationStudentRegistration;
$registrationStudentRegistration->setSchoolYear($this);
}
return $this;
}
public function removeRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
{
if ($this->registrationStudentRegistrations->removeElement($registrationStudentRegistration)) {
// set the owning side to null (unless already changed)
if ($registrationStudentRegistration->getSchoolYear() === $this) {
$registrationStudentRegistration->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolYearPeriode[]
*/
public function getSchoolYearPeriodes(): Collection
{
return $this->schoolYearPeriodes;
}
public function addSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
{
if (!$this->schoolYearPeriodes->contains($schoolYearPeriode)) {
$this->schoolYearPeriodes[] = $schoolYearPeriode;
$schoolYearPeriode->setSchoolYear($this);
}
return $this;
}
public function removeSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
{
if ($this->schoolYearPeriodes->removeElement($schoolYearPeriode)) {
// set the owning side to null (unless already changed)
if ($schoolYearPeriode->getSchoolYear() === $this) {
$schoolYearPeriode->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolReportCard[]
*/
public function getSchoolReportCards(): Collection
{
return $this->schoolReportCards;
}
public function addSchoolReportCard(SchoolReportCard $schoolReportCard): self
{
if (!$this->schoolReportCards->contains($schoolReportCard)) {
$this->schoolReportCards[] = $schoolReportCard;
$schoolReportCard->setSchoolYear($this);
}
return $this;
}
public function removeSchoolReportCard(SchoolReportCard $schoolReportCard): self
{
if ($this->schoolReportCards->removeElement($schoolReportCard)) {
// set the owning side to null (unless already changed)
if ($schoolReportCard->getSchoolYear() === $this) {
$schoolReportCard->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAverageReportCard[]
*/
public function getSchoolAverageReportCards(): Collection
{
return $this->schoolAverageReportCards;
}
public function addSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
{
if (!$this->schoolAverageReportCards->contains($schoolAverageReportCard)) {
$this->schoolAverageReportCards[] = $schoolAverageReportCard;
$schoolAverageReportCard->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
{
if ($this->schoolAverageReportCards->removeElement($schoolAverageReportCard)) {
// set the owning side to null (unless already changed)
if ($schoolAverageReportCard->getSchoolYear() === $this) {
$schoolAverageReportCard->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessmentByClass[]
*/
public function getSchoolAssessmentByClasses(): Collection
{
return $this->schoolAssessmentByClasses;
}
public function addSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
{
if (!$this->schoolAssessmentByClasses->contains($schoolAssessmentByClass)) {
$this->schoolAssessmentByClasses[] = $schoolAssessmentByClass;
$schoolAssessmentByClass->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
{
if ($this->schoolAssessmentByClasses->removeElement($schoolAssessmentByClass)) {
// set the owning side to null (unless already changed)
if ($schoolAssessmentByClass->getSchoolYear() === $this) {
$schoolAssessmentByClass->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessmentByLevel[]
*/
public function getSchoolAssessmentByLevels(): Collection
{
return $this->schoolAssessmentByLevels;
}
public function addSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
{
if (!$this->schoolAssessmentByLevels->contains($schoolAssessmentByLevel)) {
$this->schoolAssessmentByLevels[] = $schoolAssessmentByLevel;
$schoolAssessmentByLevel->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
{
if ($this->schoolAssessmentByLevels->removeElement($schoolAssessmentByLevel)) {
// set the owning side to null (unless already changed)
if ($schoolAssessmentByLevel->getSchoolYear() === $this) {
$schoolAssessmentByLevel->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessmentByClassByMatter[]
*/
public function getSchoolAssessmentByClassByMatters(): Collection
{
return $this->schoolAssessmentByClassByMatters;
}
public function addSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
{
if (!$this->schoolAssessmentByClassByMatters->contains($schoolAssessmentByClassByMatter)) {
$this->schoolAssessmentByClassByMatters[] = $schoolAssessmentByClassByMatter;
$schoolAssessmentByClassByMatter->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
{
if ($this->schoolAssessmentByClassByMatters->removeElement($schoolAssessmentByClassByMatter)) {
// set the owning side to null (unless already changed)
if ($schoolAssessmentByClassByMatter->getSchoolYear() === $this) {
$schoolAssessmentByClassByMatter->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessmentByLevelByMatter[]
*/
public function getSchoolAssessmentByLevelByMatters(): Collection
{
return $this->schoolAssessmentByLevelByMatters;
}
public function addSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
{
if (!$this->schoolAssessmentByLevelByMatters->contains($schoolAssessmentByLevelByMatter)) {
$this->schoolAssessmentByLevelByMatters[] = $schoolAssessmentByLevelByMatter;
$schoolAssessmentByLevelByMatter->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
{
if ($this->schoolAssessmentByLevelByMatters->removeElement($schoolAssessmentByLevelByMatter)) {
// set the owning side to null (unless already changed)
if ($schoolAssessmentByLevelByMatter->getSchoolYear() === $this) {
$schoolAssessmentByLevelByMatter->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|ReportCard[]
*/
public function getReportCards(): Collection
{
return $this->reportCards;
}
public function addReportCard(ReportCard $reportCard): self
{
if (!$this->reportCards->contains($reportCard)) {
$this->reportCards[] = $reportCard;
$reportCard->setSchoolYear($this);
}
return $this;
}
public function removeReportCard(ReportCard $reportCard): self
{
if ($this->reportCards->removeElement($reportCard)) {
// set the owning side to null (unless already changed)
if ($reportCard->getSchoolYear() === $this) {
$reportCard->setSchoolYear(null);
}
}
return $this;
}
public function getFiscalYear(): ?string
{
return $this->fiscal_year;
}
public function setFiscalYear(?string $fiscal_year): self
{
$this->fiscal_year = $fiscal_year;
return $this;
}
/**
* @return Collection|AccountingStudentRegistrationPayment[]
*/
public function getAccountingStudentRegistrationPayments(): Collection
{
return $this->accountingStudentRegistrationPayments;
}
public function addAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
{
if (!$this->accountingStudentRegistrationPayments->contains($accountingStudentRegistrationPayment)) {
$this->accountingStudentRegistrationPayments[] = $accountingStudentRegistrationPayment;
$accountingStudentRegistrationPayment->setSchoolYear($this);
}
return $this;
}
public function removeAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
{
if ($this->accountingStudentRegistrationPayments->removeElement($accountingStudentRegistrationPayment)) {
// set the owning side to null (unless already changed)
if ($accountingStudentRegistrationPayment->getSchoolYear() === $this) {
$accountingStudentRegistrationPayment->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|TreasuryCashRegister[]
*/
public function getTreasuryCashRegisters(): Collection
{
return $this->treasuryCashRegisters;
}
public function addTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
{
if (!$this->treasuryCashRegisters->contains($treasuryCashRegister)) {
$this->treasuryCashRegisters[] = $treasuryCashRegister;
$treasuryCashRegister->setSchoolYear($this);
}
return $this;
}
public function removeTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
{
if ($this->treasuryCashRegisters->removeElement($treasuryCashRegister)) {
// set the owning side to null (unless already changed)
if ($treasuryCashRegister->getSchoolYear() === $this) {
$treasuryCashRegister->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|TreasuryCheckout[]
*/
public function getTreasuryCheckouts(): Collection
{
return $this->treasuryCheckouts;
}
public function addTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
{
if (!$this->treasuryCheckouts->contains($treasuryCheckout)) {
$this->treasuryCheckouts[] = $treasuryCheckout;
$treasuryCheckout->setSchoolYear($this);
}
return $this;
}
public function removeTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
{
if ($this->treasuryCheckouts->removeElement($treasuryCheckout)) {
// set the owning side to null (unless already changed)
if ($treasuryCheckout->getSchoolYear() === $this) {
$treasuryCheckout->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|RegistrationClassChange[]
*/
public function getRegistrationClassChanges(): Collection
{
return $this->registrationClassChanges;
}
public function addRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
{
if (!$this->registrationClassChanges->contains($registrationClassChange)) {
$this->registrationClassChanges[] = $registrationClassChange;
$registrationClassChange->setSchoolYear($this);
}
return $this;
}
public function removeRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
{
if ($this->registrationClassChanges->removeElement($registrationClassChange)) {
// set the owning side to null (unless already changed)
if ($registrationClassChange->getSchoolYear() === $this) {
$registrationClassChange->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|TreasuryPayment[]
*/
public function getTreasuryPayments(): Collection
{
return $this->treasuryPayments;
}
public function addTreasuryPayment(TreasuryPayment $treasuryPayment): self
{
if (!$this->treasuryPayments->contains($treasuryPayment)) {
$this->treasuryPayments[] = $treasuryPayment;
$treasuryPayment->setSchoolYear($this);
}
return $this;
}
public function removeTreasuryPayment(TreasuryPayment $treasuryPayment): self
{
if ($this->treasuryPayments->removeElement($treasuryPayment)) {
// set the owning side to null (unless already changed)
if ($treasuryPayment->getSchoolYear() === $this) {
$treasuryPayment->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|AccountingExpense[]
*/
public function getAccountingExpenses(): Collection
{
return $this->accountingExpenses;
}
public function addAccountingExpense(AccountingExpense $accountingExpense): self
{
if (!$this->accountingExpenses->contains($accountingExpense)) {
$this->accountingExpenses[] = $accountingExpense;
$accountingExpense->setSchoolYear($this);
}
return $this;
}
public function removeAccountingExpense(AccountingExpense $accountingExpense): self
{
if ($this->accountingExpenses->removeElement($accountingExpense)) {
// set the owning side to null (unless already changed)
if ($accountingExpense->getSchoolYear() === $this) {
$accountingExpense->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|RegistrationStudentPreRegistration[]
*/
public function getRegistrationStudentPreRegistrations(): Collection
{
return $this->registrationStudentPreRegistrations;
}
public function addRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
{
if (!$this->registrationStudentPreRegistrations->contains($registrationStudentPreRegistration)) {
$this->registrationStudentPreRegistrations[] = $registrationStudentPreRegistration;
$registrationStudentPreRegistration->setSchoolYear($this);
}
return $this;
}
public function removeRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
{
if ($this->registrationStudentPreRegistrations->removeElement($registrationStudentPreRegistration)) {
// set the owning side to null (unless already changed)
if ($registrationStudentPreRegistration->getSchoolYear() === $this) {
$registrationStudentPreRegistration->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|EntreTestReportCard[]
*/
public function getEntreTestReportCards(): Collection
{
return $this->entreTestReportCards;
}
public function addEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
{
if (!$this->entreTestReportCards->contains($entreTestReportCard)) {
$this->entreTestReportCards[] = $entreTestReportCard;
$entreTestReportCard->setSchoolYear($this);
}
return $this;
}
public function removeEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
{
if ($this->entreTestReportCards->removeElement($entreTestReportCard)) {
// set the owning side to null (unless already changed)
if ($entreTestReportCard->getSchoolYear() === $this) {
$entreTestReportCard->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|PreRegistrationEntreTestReportCard[]
*/
public function getPreRegistrationEntreTestReportCards(): Collection
{
return $this->preRegistrationEntreTestReportCards;
}
public function addPreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
{
if (!$this->preRegistrationEntreTestReportCards->contains($preRegistrationEntreTestReportCard)) {
$this->preRegistrationEntreTestReportCards[] = $preRegistrationEntreTestReportCard;
$preRegistrationEntreTestReportCard->setSchoolYear($this);
}
return $this;
}
public function removePreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
{
if ($this->preRegistrationEntreTestReportCards->removeElement($preRegistrationEntreTestReportCard)) {
// set the owning side to null (unless already changed)
if ($preRegistrationEntreTestReportCard->getSchoolYear() === $this) {
$preRegistrationEntreTestReportCard->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SettingClassroom[]
*/
public function getSettingClassrooms(): Collection
{
return $this->settingClassrooms;
}
public function addSettingClassroom(SettingClassroom $settingClassroom): self
{
if (!$this->settingClassrooms->contains($settingClassroom)) {
$this->settingClassrooms[] = $settingClassroom;
$settingClassroom->setSchoolYear($this);
}
return $this;
}
public function removeSettingClassroom(SettingClassroom $settingClassroom): self
{
if ($this->settingClassrooms->removeElement($settingClassroom)) {
// set the owning side to null (unless already changed)
if ($settingClassroom->getSchoolYear() === $this) {
$settingClassroom->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SettingFee[]
*/
public function getSettingFees(): Collection
{
return $this->settingFees;
}
public function addSettingFee(SettingFee $settingFee): self
{
if (!$this->settingFees->contains($settingFee)) {
$this->settingFees[] = $settingFee;
$settingFee->setSchoolYear($this);
}
return $this;
}
public function removeSettingFee(SettingFee $settingFee): self
{
if ($this->settingFees->removeElement($settingFee)) {
// set the owning side to null (unless already changed)
if ($settingFee->getSchoolYear() === $this) {
$settingFee->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAbsenceAndDelay[]
*/
public function getSchoolAbsenceAndDelays(): Collection
{
return $this->schoolAbsenceAndDelays;
}
public function addSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
{
if (!$this->schoolAbsenceAndDelays->contains($schoolAbsenceAndDelay)) {
$this->schoolAbsenceAndDelays[] = $schoolAbsenceAndDelay;
$schoolAbsenceAndDelay->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
{
if ($this->schoolAbsenceAndDelays->removeElement($schoolAbsenceAndDelay)) {
// set the owning side to null (unless already changed)
if ($schoolAbsenceAndDelay->getSchoolYear() === $this) {
$schoolAbsenceAndDelay->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAbsenceAndDelayNotification[]
*/
public function getSchoolAbsenceAndDelayNotifications(): Collection
{
return $this->schoolAbsenceAndDelayNotifications;
}
public function addSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
{
if (!$this->schoolAbsenceAndDelayNotifications->contains($schoolAbsenceAndDelayNotification)) {
$this->schoolAbsenceAndDelayNotifications[] = $schoolAbsenceAndDelayNotification;
$schoolAbsenceAndDelayNotification->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
{
if ($this->schoolAbsenceAndDelayNotifications->removeElement($schoolAbsenceAndDelayNotification)) {
// set the owning side to null (unless already changed)
if ($schoolAbsenceAndDelayNotification->getSchoolYear() === $this) {
$schoolAbsenceAndDelayNotification->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAbsenceAndDelayNotificationLine[]
*/
public function getSchoolAbsenceAndDelayNotificationLines(): Collection
{
return $this->schoolAbsenceAndDelayNotificationLines;
}
public function addSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
{
if (!$this->schoolAbsenceAndDelayNotificationLines->contains($schoolAbsenceAndDelayNotificationLine)) {
$this->schoolAbsenceAndDelayNotificationLines[] = $schoolAbsenceAndDelayNotificationLine;
$schoolAbsenceAndDelayNotificationLine->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
{
if ($this->schoolAbsenceAndDelayNotificationLines->removeElement($schoolAbsenceAndDelayNotificationLine)) {
// set the owning side to null (unless already changed)
if ($schoolAbsenceAndDelayNotificationLine->getSchoolYear() === $this) {
$schoolAbsenceAndDelayNotificationLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAbsenceAndDelayReportCardNotification[]
*/
public function getSchoolAbsenceAndDelayReportCardNotifications(): Collection
{
return $this->schoolAbsenceAndDelayReportCardNotifications;
}
public function addSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
{
if (!$this->schoolAbsenceAndDelayReportCardNotifications->contains($schoolAbsenceAndDelayReportCardNotification)) {
$this->schoolAbsenceAndDelayReportCardNotifications[] = $schoolAbsenceAndDelayReportCardNotification;
$schoolAbsenceAndDelayReportCardNotification->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
{
if ($this->schoolAbsenceAndDelayReportCardNotifications->removeElement($schoolAbsenceAndDelayReportCardNotification)) {
// set the owning side to null (unless already changed)
if ($schoolAbsenceAndDelayReportCardNotification->getSchoolYear() === $this) {
$schoolAbsenceAndDelayReportCardNotification->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAbsenceAndDelayReportCardNotificationLine[]
*/
public function getSchoolAbsenceAndDelayReportCardNotificationLines(): Collection
{
return $this->schoolAbsenceAndDelayReportCardNotificationLines;
}
public function addSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
{
if (!$this->schoolAbsenceAndDelayReportCardNotificationLines->contains($schoolAbsenceAndDelayReportCardNotificationLine)) {
$this->schoolAbsenceAndDelayReportCardNotificationLines[] = $schoolAbsenceAndDelayReportCardNotificationLine;
$schoolAbsenceAndDelayReportCardNotificationLine->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
{
if ($this->schoolAbsenceAndDelayReportCardNotificationLines->removeElement($schoolAbsenceAndDelayReportCardNotificationLine)) {
// set the owning side to null (unless already changed)
if ($schoolAbsenceAndDelayReportCardNotificationLine->getSchoolYear() === $this) {
$schoolAbsenceAndDelayReportCardNotificationLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|CommunicationMessage[]
*/
public function getCommunicationMessages(): Collection
{
return $this->communicationMessages;
}
public function addCommunicationMessage(CommunicationMessage $communicationMessage): self
{
if (!$this->communicationMessages->contains($communicationMessage)) {
$this->communicationMessages[] = $communicationMessage;
$communicationMessage->setSchoolYear($this);
}
return $this;
}
public function removeCommunicationMessage(CommunicationMessage $communicationMessage): self
{
if ($this->communicationMessages->removeElement($communicationMessage)) {
// set the owning side to null (unless already changed)
if ($communicationMessage->getSchoolYear() === $this) {
$communicationMessage->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacher[]
*/
public function getSchoolTeachers(): Collection
{
return $this->schoolTeachers;
}
public function addSchoolTeacher(SchoolTeacher $schoolTeacher): self
{
if (!$this->schoolTeachers->contains($schoolTeacher)) {
$this->schoolTeachers[] = $schoolTeacher;
$schoolTeacher->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacher(SchoolTeacher $schoolTeacher): self
{
if ($this->schoolTeachers->removeElement($schoolTeacher)) {
// set the owning side to null (unless already changed)
if ($schoolTeacher->getSchoolYear() === $this) {
$schoolTeacher->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockProductEntry[]
*/
public function getStockProductEntries(): Collection
{
return $this->stockProductEntries;
}
public function addStockProductEntry(StockProductEntry $stockProductEntry): self
{
if (!$this->stockProductEntries->contains($stockProductEntry)) {
$this->stockProductEntries[] = $stockProductEntry;
$stockProductEntry->setSchoolYear($this);
}
return $this;
}
public function removeStockProductEntry(StockProductEntry $stockProductEntry): self
{
if ($this->stockProductEntries->removeElement($stockProductEntry)) {
// set the owning side to null (unless already changed)
if ($stockProductEntry->getSchoolYear() === $this) {
$stockProductEntry->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockProductEntryLine[]
*/
public function getStockProductEntryLines(): Collection
{
return $this->stockProductEntryLines;
}
public function addStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
{
if (!$this->stockProductEntryLines->contains($stockProductEntryLine)) {
$this->stockProductEntryLines[] = $stockProductEntryLine;
$stockProductEntryLine->setSchoolYear($this);
}
return $this;
}
public function removeStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
{
if ($this->stockProductEntryLines->removeElement($stockProductEntryLine)) {
// set the owning side to null (unless already changed)
if ($stockProductEntryLine->getSchoolYear() === $this) {
$stockProductEntryLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockProviderKitEntry[]
*/
public function getStockProviderKitEntries(): Collection
{
return $this->stockProviderKitEntries;
}
public function addStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
{
if (!$this->stockProviderKitEntries->contains($stockProviderKitEntry)) {
$this->stockProviderKitEntries[] = $stockProviderKitEntry;
$stockProviderKitEntry->setSchoolYear($this);
}
return $this;
}
public function removeStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
{
if ($this->stockProviderKitEntries->removeElement($stockProviderKitEntry)) {
// set the owning side to null (unless already changed)
if ($stockProviderKitEntry->getSchoolYear() === $this) {
$stockProviderKitEntry->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockProviderKitEntryLine[]
*/
public function getStockProviderKitEntryLines(): Collection
{
return $this->stockProviderKitEntryLines;
}
public function addStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
{
if (!$this->stockProviderKitEntryLines->contains($stockProviderKitEntryLine)) {
$this->stockProviderKitEntryLines[] = $stockProviderKitEntryLine;
$stockProviderKitEntryLine->setSchoolYear($this);
}
return $this;
}
public function removeStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
{
if ($this->stockProviderKitEntryLines->removeElement($stockProviderKitEntryLine)) {
// set the owning side to null (unless already changed)
if ($stockProviderKitEntryLine->getSchoolYear() === $this) {
$stockProviderKitEntryLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockStudentKitEntry[]
*/
public function getStockStudentKitEntries(): Collection
{
return $this->stockStudentKitEntries;
}
public function addStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
{
if (!$this->stockStudentKitEntries->contains($stockStudentKitEntry)) {
$this->stockStudentKitEntries[] = $stockStudentKitEntry;
$stockStudentKitEntry->setSchoolYear($this);
}
return $this;
}
public function removeStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
{
if ($this->stockStudentKitEntries->removeElement($stockStudentKitEntry)) {
// set the owning side to null (unless already changed)
if ($stockStudentKitEntry->getSchoolYear() === $this) {
$stockStudentKitEntry->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockStudentKitEntryLine[]
*/
public function getStockStudentKitEntryLines(): Collection
{
return $this->stockStudentKitEntryLines;
}
public function addStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
{
if (!$this->stockStudentKitEntryLines->contains($stockStudentKitEntryLine)) {
$this->stockStudentKitEntryLines[] = $stockStudentKitEntryLine;
$stockStudentKitEntryLine->setSchoolYear($this);
}
return $this;
}
public function removeStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
{
if ($this->stockStudentKitEntryLines->removeElement($stockStudentKitEntryLine)) {
// set the owning side to null (unless already changed)
if ($stockStudentKitEntryLine->getSchoolYear() === $this) {
$stockStudentKitEntryLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockKitOut[]
*/
public function getStockKitOuts(): Collection
{
return $this->stockKitOuts;
}
public function addStockKitOut(StockKitOut $stockKitOut): self
{
if (!$this->stockKitOuts->contains($stockKitOut)) {
$this->stockKitOuts[] = $stockKitOut;
$stockKitOut->setSchoolYear($this);
}
return $this;
}
public function removeStockKitOut(StockKitOut $stockKitOut): self
{
if ($this->stockKitOuts->removeElement($stockKitOut)) {
// set the owning side to null (unless already changed)
if ($stockKitOut->getSchoolYear() === $this) {
$stockKitOut->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockKitOutLine[]
*/
public function getStockKitOutLines(): Collection
{
return $this->stockKitOutLines;
}
public function addStockKitOutLine(StockKitOutLine $stockKitOutLine): self
{
if (!$this->stockKitOutLines->contains($stockKitOutLine)) {
$this->stockKitOutLines[] = $stockKitOutLine;
$stockKitOutLine->setSchoolYear($this);
}
return $this;
}
public function removeStockKitOutLine(StockKitOutLine $stockKitOutLine): self
{
if ($this->stockKitOutLines->removeElement($stockKitOutLine)) {
// set the owning side to null (unless already changed)
if ($stockKitOutLine->getSchoolYear() === $this) {
$stockKitOutLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockProductOut[]
*/
public function getStockProductOuts(): Collection
{
return $this->stockProductOuts;
}
public function addStockProductOut(StockProductOut $stockProductOut): self
{
if (!$this->stockProductOuts->contains($stockProductOut)) {
$this->stockProductOuts[] = $stockProductOut;
$stockProductOut->setSchoolYear($this);
}
return $this;
}
public function removeStockProductOut(StockProductOut $stockProductOut): self
{
if ($this->stockProductOuts->removeElement($stockProductOut)) {
// set the owning side to null (unless already changed)
if ($stockProductOut->getSchoolYear() === $this) {
$stockProductOut->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|AccountingCredit[]
*/
public function getAccountingCredits(): Collection
{
return $this->accountingCredits;
}
public function addAccountingCredit(AccountingCredit $accountingCredit): self
{
if (!$this->accountingCredits->contains($accountingCredit)) {
$this->accountingCredits[] = $accountingCredit;
$accountingCredit->setSchoolYear($this);
}
return $this;
}
public function removeAccountingCredit(AccountingCredit $accountingCredit): self
{
if ($this->accountingCredits->removeElement($accountingCredit)) {
// set the owning side to null (unless already changed)
if ($accountingCredit->getSchoolYear() === $this) {
$accountingCredit->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|AccountingCreditLine[]
*/
public function getAccountingCreditLines(): Collection
{
return $this->accountingCreditLines;
}
public function addAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
{
if (!$this->accountingCreditLines->contains($accountingCreditLine)) {
$this->accountingCreditLines[] = $accountingCreditLine;
$accountingCreditLine->setSchoolYear($this);
}
return $this;
}
public function removeAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
{
if ($this->accountingCreditLines->removeElement($accountingCreditLine)) {
// set the owning side to null (unless already changed)
if ($accountingCreditLine->getSchoolYear() === $this) {
$accountingCreditLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAverage[]
*/
public function getSchoolAverages(): Collection
{
return $this->schoolAverages;
}
public function addSchoolAverage(SchoolAverage $schoolAverage): self
{
if (!$this->schoolAverages->contains($schoolAverage)) {
$this->schoolAverages[] = $schoolAverage;
$schoolAverage->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAverage(SchoolAverage $schoolAverage): self
{
if ($this->schoolAverages->removeElement($schoolAverage)) {
// set the owning side to null (unless already changed)
if ($schoolAverage->getSchoolYear() === $this) {
$schoolAverage->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolStudentAverage[]
*/
public function getSchoolStudentAverages(): Collection
{
return $this->schoolStudentAverages;
}
public function addSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
{
if (!$this->schoolStudentAverages->contains($schoolStudentAverage)) {
$this->schoolStudentAverages[] = $schoolStudentAverage;
$schoolStudentAverage->setSchoolYear($this);
}
return $this;
}
public function removeSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
{
if ($this->schoolStudentAverages->removeElement($schoolStudentAverage)) {
// set the owning side to null (unless already changed)
if ($schoolStudentAverage->getSchoolYear() === $this) {
$schoolStudentAverage->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolCertificate[]
*/
public function getSchoolCertificates(): Collection
{
return $this->schoolCertificates;
}
public function addSchoolCertificate(SchoolCertificate $schoolCertificate): self
{
if (!$this->schoolCertificates->contains($schoolCertificate)) {
$this->schoolCertificates[] = $schoolCertificate;
$schoolCertificate->setSchoolYear($this);
}
return $this;
}
public function removeSchoolCertificate(SchoolCertificate $schoolCertificate): self
{
if ($this->schoolCertificates->removeElement($schoolCertificate)) {
// set the owning side to null (unless already changed)
if ($schoolCertificate->getSchoolYear() === $this) {
$schoolCertificate->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolCertificateLine[]
*/
public function getSchoolCertificateLines(): Collection
{
return $this->schoolCertificateLines;
}
public function addSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
{
if (!$this->schoolCertificateLines->contains($schoolCertificateLine)) {
$this->schoolCertificateLines[] = $schoolCertificateLine;
$schoolCertificateLine->setSchoolYear($this);
}
return $this;
}
public function removeSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
{
if ($this->schoolCertificateLines->removeElement($schoolCertificateLine)) {
// set the owning side to null (unless already changed)
if ($schoolCertificateLine->getSchoolYear() === $this) {
$schoolCertificateLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|NurseryTimeSheet[]
*/
public function getNurseryTimeSheets(): Collection
{
return $this->nurseryTimeSheets;
}
public function addNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
{
if (!$this->nurseryTimeSheets->contains($nurseryTimeSheet)) {
$this->nurseryTimeSheets[] = $nurseryTimeSheet;
$nurseryTimeSheet->setSchoolYear($this);
}
return $this;
}
public function removeNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
{
if ($this->nurseryTimeSheets->removeElement($nurseryTimeSheet)) {
// set the owning side to null (unless already changed)
if ($nurseryTimeSheet->getSchoolYear() === $this) {
$nurseryTimeSheet->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SettingTimeTable[]
*/
public function getSettingTimeTables(): Collection
{
return $this->settingTimeTables;
}
public function addSettingTimeTable(SettingTimeTable $settingTimeTable): self
{
if (!$this->settingTimeTables->contains($settingTimeTable)) {
$this->settingTimeTables[] = $settingTimeTable;
$settingTimeTable->setSchoolYear($this);
}
return $this;
}
public function removeSettingTimeTable(SettingTimeTable $settingTimeTable): self
{
if ($this->settingTimeTables->removeElement($settingTimeTable)) {
// set the owning side to null (unless already changed)
if ($settingTimeTable->getSchoolYear() === $this) {
$settingTimeTable->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolWorkingTime[]
*/
public function getSchoolWorkingTimes(): Collection
{
return $this->schoolWorkingTimes;
}
public function addSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
{
if (!$this->schoolWorkingTimes->contains($schoolWorkingTime)) {
$this->schoolWorkingTimes[] = $schoolWorkingTime;
$schoolWorkingTime->setSchoolYear($this);
}
return $this;
}
public function removeSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
{
if ($this->schoolWorkingTimes->removeElement($schoolWorkingTime)) {
// set the owning side to null (unless already changed)
if ($schoolWorkingTime->getSchoolYear() === $this) {
$schoolWorkingTime->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolWorkingTimeHourLesson[]
*/
public function getSchoolWorkingTimeHourLessons(): Collection
{
return $this->schoolWorkingTimeHourLessons;
}
public function addSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
{
if (!$this->schoolWorkingTimeHourLessons->contains($schoolWorkingTimeHourLesson)) {
$this->schoolWorkingTimeHourLessons[] = $schoolWorkingTimeHourLesson;
$schoolWorkingTimeHourLesson->setSchoolYear($this);
}
return $this;
}
public function removeSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
{
if ($this->schoolWorkingTimeHourLessons->removeElement($schoolWorkingTimeHourLesson)) {
// set the owning side to null (unless already changed)
if ($schoolWorkingTimeHourLesson->getSchoolYear() === $this) {
$schoolWorkingTimeHourLesson->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|FoundingNotification[]
*/
public function getFoundingNotifications(): Collection
{
return $this->foundingNotifications;
}
public function addFoundingNotification(FoundingNotification $foundingNotification): self
{
if (!$this->foundingNotifications->contains($foundingNotification)) {
$this->foundingNotifications[] = $foundingNotification;
$foundingNotification->setSchoolYear($this);
}
return $this;
}
public function removeFoundingNotification(FoundingNotification $foundingNotification): self
{
if ($this->foundingNotifications->removeElement($foundingNotification)) {
// set the owning side to null (unless already changed)
if ($foundingNotification->getSchoolYear() === $this) {
$foundingNotification->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacherCallSheet[]
*/
public function getSchoolTeacherCallSheets(): Collection
{
return $this->schoolTeacherCallSheets;
}
public function addSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
{
if (!$this->schoolTeacherCallSheets->contains($schoolTeacherCallSheet)) {
$this->schoolTeacherCallSheets[] = $schoolTeacherCallSheet;
$schoolTeacherCallSheet->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
{
if ($this->schoolTeacherCallSheets->removeElement($schoolTeacherCallSheet)) {
// set the owning side to null (unless already changed)
if ($schoolTeacherCallSheet->getSchoolYear() === $this) {
$schoolTeacherCallSheet->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacherCallSheetLine[]
*/
public function getSchoolTeacherCallSheetLines(): Collection
{
return $this->schoolTeacherCallSheetLines;
}
public function addSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
{
if (!$this->schoolTeacherCallSheetLines->contains($schoolTeacherCallSheetLine)) {
$this->schoolTeacherCallSheetLines[] = $schoolTeacherCallSheetLine;
$schoolTeacherCallSheetLine->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
{
if ($this->schoolTeacherCallSheetLines->removeElement($schoolTeacherCallSheetLine)) {
// set the owning side to null (unless already changed)
if ($schoolTeacherCallSheetLine->getSchoolYear() === $this) {
$schoolTeacherCallSheetLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacherMatterClassroom[]
*/
public function getSchoolTeacherMatterClassrooms(): Collection
{
return $this->schoolTeacherMatterClassrooms;
}
public function addSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
{
if (!$this->schoolTeacherMatterClassrooms->contains($schoolTeacherMatterClassroom)) {
$this->schoolTeacherMatterClassrooms[] = $schoolTeacherMatterClassroom;
$schoolTeacherMatterClassroom->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
{
if ($this->schoolTeacherMatterClassrooms->removeElement($schoolTeacherMatterClassroom)) {
// set the owning side to null (unless already changed)
if ($schoolTeacherMatterClassroom->getSchoolYear() === $this) {
$schoolTeacherMatterClassroom->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|User[]
*/
public function getUsers(): Collection
{
return $this->users;
}
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
$user->setSchoolYear($this);
}
return $this;
}
public function removeUser(User $user): self
{
if ($this->users->removeElement($user)) {
// set the owning side to null (unless already changed)
if ($user->getSchoolYear() === $this) {
$user->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacherTimeSheet[]
*/
public function getSchoolTeacherTimeSheets(): Collection
{
return $this->schoolTeacherTimeSheets;
}
public function addSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
{
if (!$this->schoolTeacherTimeSheets->contains($schoolTeacherTimeSheet)) {
$this->schoolTeacherTimeSheets[] = $schoolTeacherTimeSheet;
$schoolTeacherTimeSheet->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
{
if ($this->schoolTeacherTimeSheets->removeElement($schoolTeacherTimeSheet)) {
// set the owning side to null (unless already changed)
if ($schoolTeacherTimeSheet->getSchoolYear() === $this) {
$schoolTeacherTimeSheet->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessment[]
*/
public function getSchoolAssessments(): Collection
{
return $this->schoolAssessments;
}
public function addSchoolAssessment(SchoolAssessment $schoolAssessment): self
{
if (!$this->schoolAssessments->contains($schoolAssessment)) {
$this->schoolAssessments[] = $schoolAssessment;
$schoolAssessment->setSchoolYear($this);
}
return $this;
}
public function removeSchoolAssessment(SchoolAssessment $schoolAssessment): self
{
if ($this->schoolAssessments->removeElement($schoolAssessment)) {
// set the owning side to null (unless already changed)
if ($schoolAssessment->getSchoolYear() === $this) {
$schoolAssessment->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolAssessment[]
*/
public function getNexSchoolAssessments(): Collection
{
return $this->nexSchoolAssessments;
}
public function addNexSchoolAssessment(SchoolAssessment $nexSchoolAssessment): self
{
if (!$this->nexSchoolAssessments->contains($nexSchoolAssessment)) {
$this->nexSchoolAssessments[] = $nexSchoolAssessment;
$nexSchoolAssessment->setNexSchoolYear($this);
}
return $this;
}
public function removeNexSchoolAssessment(SchoolAssessment $nexSchoolAssessment): self
{
if ($this->nexSchoolAssessments->removeElement($nexSchoolAssessment)) {
// set the owning side to null (unless already changed)
if ($nexSchoolAssessment->getNexSchoolYear() === $this) {
$nexSchoolAssessment->setNexSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|AccountingChequeTracking[]
*/
public function getAccountingChequeTrackings(): Collection
{
return $this->accountingChequeTrackings;
}
public function addAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
{
if (!$this->accountingChequeTrackings->contains($accountingChequeTracking)) {
$this->accountingChequeTrackings[] = $accountingChequeTracking;
$accountingChequeTracking->setSchoolYear($this);
}
return $this;
}
public function removeAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
{
if ($this->accountingChequeTrackings->removeElement($accountingChequeTracking)) {
// set the owning side to null (unless already changed)
if ($accountingChequeTracking->getSchoolYear() === $this) {
$accountingChequeTracking->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|AccountingChequeTrackingLine[]
*/
public function getAccountingChequeTrackingLines(): Collection
{
return $this->accountingChequeTrackingLines;
}
public function addAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
{
if (!$this->accountingChequeTrackingLines->contains($accountingChequeTrackingLine)) {
$this->accountingChequeTrackingLines[] = $accountingChequeTrackingLine;
$accountingChequeTrackingLine->setSchoolYear($this);
}
return $this;
}
public function removeAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
{
if ($this->accountingChequeTrackingLines->removeElement($accountingChequeTrackingLine)) {
// set the owning side to null (unless already changed)
if ($accountingChequeTrackingLine->getSchoolYear() === $this) {
$accountingChequeTrackingLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|StockKitCategory[]
*/
public function getStockKitCategories(): Collection
{
return $this->stockKitCategories;
}
public function addStockKitCategory(StockKitCategory $stockKitCategory): self
{
if (!$this->stockKitCategories->contains($stockKitCategory)) {
$this->stockKitCategories[] = $stockKitCategory;
$stockKitCategory->setSchoolYear($this);
}
return $this;
}
public function removeStockKitCategory(StockKitCategory $stockKitCategory): self
{
if ($this->stockKitCategories->removeElement($stockKitCategory)) {
// set the owning side to null (unless already changed)
if ($stockKitCategory->getSchoolYear() === $this) {
$stockKitCategory->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolReportCardAbsence[]
*/
public function getSchoolReportCardAbsences(): Collection
{
return $this->schoolReportCardAbsences;
}
public function addSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
{
if (!$this->schoolReportCardAbsences->contains($schoolReportCardAbsence)) {
$this->schoolReportCardAbsences[] = $schoolReportCardAbsence;
$schoolReportCardAbsence->setSchoolYear($this);
}
return $this;
}
public function removeSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
{
if ($this->schoolReportCardAbsences->removeElement($schoolReportCardAbsence)) {
// set the owning side to null (unless already changed)
if ($schoolReportCardAbsence->getSchoolYear() === $this) {
$schoolReportCardAbsence->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|WavePayment[]
*/
public function getWavePayments(): Collection
{
return $this->wavePayments;
}
public function addWavePayment(WavePayment $wavePayment): self
{
if (!$this->wavePayments->contains($wavePayment)) {
$this->wavePayments[] = $wavePayment;
$wavePayment->setSchoolYear($this);
}
return $this;
}
public function removeWavePayment(WavePayment $wavePayment): self
{
if ($this->wavePayments->removeElement($wavePayment)) {
// set the owning side to null (unless already changed)
if ($wavePayment->getSchoolYear() === $this) {
$wavePayment->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|ToxicologicalTestResult[]
*/
public function getToxicologicalTestResults(): Collection
{
return $this->toxicologicalTestResults;
}
public function addToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
{
if (!$this->toxicologicalTestResults->contains($toxicologicalTestResult)) {
$this->toxicologicalTestResults[] = $toxicologicalTestResult;
$toxicologicalTestResult->setSchoolYear($this);
}
return $this;
}
public function removeToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
{
if ($this->toxicologicalTestResults->removeElement($toxicologicalTestResult)) {
// set the owning side to null (unless already changed)
if ($toxicologicalTestResult->getSchoolYear() === $this) {
$toxicologicalTestResult->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|ToxicologicalTestResultLine[]
*/
public function getToxicologicalTestResultLines(): Collection
{
return $this->toxicologicalTestResultLines;
}
public function addToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
{
if (!$this->toxicologicalTestResultLines->contains($toxicologicalTestResultLine)) {
$this->toxicologicalTestResultLines[] = $toxicologicalTestResultLine;
$toxicologicalTestResultLine->setSchoolYear($this);
}
return $this;
}
public function removeToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
{
if ($this->toxicologicalTestResultLines->removeElement($toxicologicalTestResultLine)) {
// set the owning side to null (unless already changed)
if ($toxicologicalTestResultLine->getSchoolYear() === $this) {
$toxicologicalTestResultLine->setSchoolYear(null);
}
}
return $this;
}
/**
* @return Collection|SchoolTeacherAbsence[]
*/
public function getSchoolTeacherAbsences(): Collection
{
return $this->schoolTeacherAbsences;
}
public function addSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
{
if (!$this->schoolTeacherAbsences->contains($schoolTeacherAbsence)) {
$this->schoolTeacherAbsences[] = $schoolTeacherAbsence;
$schoolTeacherAbsence->setSchoolYear($this);
}
return $this;
}
public function removeSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
{
if ($this->schoolTeacherAbsences->removeElement($schoolTeacherAbsence)) {
// set the owning side to null (unless already changed)
if ($schoolTeacherAbsence->getSchoolYear() === $this) {
$schoolTeacherAbsence->setSchoolYear(null);
}
}
return $this;
}
}