|
|
@@ -485,6 +485,22 @@ class Organization
|
|
|
return $this->accesses;
|
|
|
}
|
|
|
|
|
|
+ function addAccess(Access $access): self
|
|
|
+ {
|
|
|
+ if (!$this->access->contains($access)) {
|
|
|
+ $this->access[] = $access;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeAccess(Access $access): self
|
|
|
+ {
|
|
|
+ $this->access->removeElement($access);
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
public function getNetworkOrganizations(): Collection
|
|
|
{
|
|
|
return $this->networkOrganizations;
|
|
|
@@ -1244,28 +1260,6 @@ class Organization
|
|
|
return $this->subdomains;
|
|
|
}
|
|
|
|
|
|
- public function addAccess(Access $access): self
|
|
|
- {
|
|
|
- if (!$this->accesses->contains($access)) {
|
|
|
- $this->accesses[] = $access;
|
|
|
- $access->setOrganization($this);
|
|
|
- }
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
- public function removeAccess(Access $access): self
|
|
|
- {
|
|
|
- if ($this->accesses->removeElement($access)) {
|
|
|
- // set the owning side to null (unless already changed)
|
|
|
- if ($access->getOrganization() === $this) {
|
|
|
- $access->setOrganization(null);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return $this;
|
|
|
- }
|
|
|
-
|
|
|
public function getContactPerson(): ?Access
|
|
|
{
|
|
|
return $this->contactPerson;
|
|
|
@@ -1908,9 +1902,19 @@ class Organization
|
|
|
return $this->network;
|
|
|
}
|
|
|
|
|
|
- function setNetwork(Collection $network): self
|
|
|
+ function addNetwork(NetworkOrganization $network): self
|
|
|
+ {
|
|
|
+ if (!$this->network->contains($network)) {
|
|
|
+ $this->network[] = $network;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeNetwork(NetworkOrganization $network): self
|
|
|
{
|
|
|
- $this->network = $network;
|
|
|
+ $this->network->removeElement($network);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1919,9 +1923,19 @@ class Organization
|
|
|
return $this->networkChild;
|
|
|
}
|
|
|
|
|
|
- function setNetworkChild(Collection $networkChild): self
|
|
|
+ function addNetworkChild(NetworkOrganization $networkChild): self
|
|
|
+ {
|
|
|
+ if (!$this->networkChild->contains($networkChild)) {
|
|
|
+ $this->networkChild[] = $networkChild;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeNetworkChild(NetworkOrganization $networkChild): self
|
|
|
{
|
|
|
- $this->networkChild = $networkChild;
|
|
|
+ $this->networkChild->removeElement($networkChild);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1936,25 +1950,24 @@ class Organization
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- function getAccess(): Collection
|
|
|
+ function getMessages(): Collection
|
|
|
{
|
|
|
- return $this->access;
|
|
|
+ return $this->messages;
|
|
|
}
|
|
|
|
|
|
- function setAccess(Collection $access): self
|
|
|
+ function addMessage(mixed $message): self
|
|
|
{
|
|
|
- $this->access = $access;
|
|
|
+ if (!$this->messages->contains($message)) {
|
|
|
+ $this->messages[] = $message;
|
|
|
+ }
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- function getMessages(): Collection
|
|
|
+ function removeMessage(mixed $message): self
|
|
|
{
|
|
|
- return $this->messages;
|
|
|
- }
|
|
|
+ $this->messages->removeElement($message);
|
|
|
|
|
|
- function setMessages(Collection $messages): self
|
|
|
- {
|
|
|
- $this->messages = $messages;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1974,9 +1987,19 @@ class Organization
|
|
|
return $this->cotisationByYears;
|
|
|
}
|
|
|
|
|
|
- function setCotisationByYears(Collection $cotisationByYears): self
|
|
|
+ function addCotisationByYear(CotisationByYear $cotisationByYear): self
|
|
|
+ {
|
|
|
+ if (!$this->cotisationByYears->contains($cotisationByYear)) {
|
|
|
+ $this->cotisationByYears[] = $cotisationByYear;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeCotisationByYear(CotisationByYear $cotisationByYear): self
|
|
|
{
|
|
|
- $this->cotisationByYears = $cotisationByYears;
|
|
|
+ $this->cotisationByYears->removeElement($cotisationByYear);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1985,9 +2008,19 @@ class Organization
|
|
|
return $this->attendanceBookingReasons;
|
|
|
}
|
|
|
|
|
|
- function setAttendanceBookingReasons(Collection $attendanceBookingReasons): self
|
|
|
+ function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
|
|
|
{
|
|
|
- $this->attendanceBookingReasons = $attendanceBookingReasons;
|
|
|
+ if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
|
|
|
+ $this->attendanceBookingReasons[] = $attendanceBookingReason;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
|
|
|
+ {
|
|
|
+ $this->attendanceBookingReasons->removeElement($attendanceBookingReason);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -1996,9 +2029,19 @@ class Organization
|
|
|
return $this->educationCurriculumPacks;
|
|
|
}
|
|
|
|
|
|
- function setEducationCurriculumPacks(Collection $educationCurriculumPacks): self
|
|
|
+ function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
|
|
|
+ {
|
|
|
+ if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
|
|
|
+ $this->educationCurriculumPacks[] = $educationCurriculumPack;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
|
|
|
{
|
|
|
- $this->educationCurriculumPacks = $educationCurriculumPacks;
|
|
|
+ $this->educationCurriculumPacks->removeElement($educationCurriculumPack);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
@@ -2007,20 +2050,35 @@ class Organization
|
|
|
return $this->familyQuotientModels;
|
|
|
}
|
|
|
|
|
|
- function setFamilyQuotientModels(Collection $familyQuotientModels): self
|
|
|
+ function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
|
|
|
{
|
|
|
- $this->familyQuotientModels = $familyQuotientModels;
|
|
|
+ if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
|
|
|
+ $this->familyQuotientModels[] = $familyQuotientModel;
|
|
|
+ }
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
- function getBillSchedules(): Collection
|
|
|
+ function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
|
|
|
{
|
|
|
- return $this->billSchedules;
|
|
|
+ $this->familyQuotientModels->removeElement($familyQuotientModel);
|
|
|
+
|
|
|
+ return $this;
|
|
|
}
|
|
|
|
|
|
- function setBillSchedules(Collection $billSchedules): self
|
|
|
+ function addBillSchedule(BillSchedule $billSchedule): self
|
|
|
{
|
|
|
- $this->billSchedules = $billSchedules;
|
|
|
+ if (!$this->billSchedules->contains($billSchedule)) {
|
|
|
+ $this->billSchedules[] = $billSchedule;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ function removeBillSchedule(BillSchedule $billSchedule): self
|
|
|
+ {
|
|
|
+ $this->billSchedules->removeElement($billSchedule);
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
}
|