equipmentComposition = new ArrayCollection(); $this->equipmentRepair = new ArrayCollection(); $this->equipmentControl = new ArrayCollection(); $this->equipmentLoan = new ArrayCollection(); $this->instrumentOrVoice = new ArrayCollection(); $this->tags = new ArrayCollection(); } public function getDiscr(): ?string { return $this->discr; } public function setDiscr(string $discr): self { $this->discr = $discr; return $this; } public function getOrganization(): ?Organization { return $this->organization; } public function setOrganization(?Organization $organization): self { $this->organization = $organization; return $this; } public function getAccess(): ?Access { return $this->access; } public function setAccess(?Access $access): self { $this->access = $access; return $this; } public function getPlaceStorage(): ?AbstractPlace { return $this->placeStorage; } public function setPlaceStorage(?AbstractPlace $placeStorage): self { $this->placeStorage = $placeStorage; return $this; } public function getRoomStorage(): ?Room { return $this->roomStorage; } public function setRoomStorage(?Room $roomStorage): self { $this->roomStorage = $roomStorage; return $this; } public function getPlaceWhereIsUsed(): ?AbstractPlace { return $this->placeWhereIsUsed; } public function setPlaceWhereIsUsed(?AbstractPlace $placeWhereIsUsed): self { $this->placeWhereIsUsed = $placeWhereIsUsed; return $this; } public function getRoomWhereIsUsed(): ?Room { return $this->roomWhereIsUsed; } public function setRoomWhereIsUsed(?Room $roomWhereIsUsed): self { $this->roomWhereIsUsed = $roomWhereIsUsed; return $this; } public function getEquipmentList(): ?EquipmentList { return $this->equipmentList; } public function setEquipmentList(?EquipmentList $equipmentList): self { $this->equipmentList = $equipmentList; return $this; } /** * @return Collection */ public function getEquipmentComposition(): Collection { return $this->equipmentComposition; } public function addEquipmentComposition(EquipmentComposition $equipmentComposition): self { if (!$this->equipmentComposition->contains($equipmentComposition)) { $this->equipmentComposition[] = $equipmentComposition; $equipmentComposition->setParent($this); } return $this; } public function removeEquipmentComposition(EquipmentComposition $equipmentComposition): self { if ($this->equipmentComposition->removeElement($equipmentComposition)) { // set the owning side to null (unless already changed) if ($equipmentComposition->getParent() === $this) { $equipmentComposition->setParent(null); } } return $this; } /** * @return Collection */ public function getEquipmentRepair(): Collection { return $this->equipmentRepair; } public function addEquipmentRepair(EquipmentRepair $equipmentRepair): self { if (!$this->equipmentRepair->contains($equipmentRepair)) { $this->equipmentRepair[] = $equipmentRepair; $equipmentRepair->setEquipment($this); } return $this; } public function removeEquipmentRepair(EquipmentRepair $equipmentRepair): self { if ($this->equipmentRepair->removeElement($equipmentRepair)) { // set the owning side to null (unless already changed) if ($equipmentRepair->getEquipment() === $this) { $equipmentRepair->setEquipment(null); } } return $this; } /** * @return Collection */ public function getEquipmentControl(): Collection { return $this->equipmentControl; } public function addEquipmentControl(EquipmentControl $equipmentControl): self { if (!$this->equipmentControl->contains($equipmentControl)) { $this->equipmentControl[] = $equipmentControl; $equipmentControl->setEquipment($this); } return $this; } public function removeEquipmentControl(EquipmentControl $equipmentControl): self { if ($this->equipmentControl->removeElement($equipmentControl)) { // set the owning side to null (unless already changed) if ($equipmentControl->getEquipment() === $this) { $equipmentControl->setEquipment(null); } } return $this; } /** * @return Collection */ public function getEquipmentLoan(): Collection { return $this->equipmentLoan; } public function addEquipmentLoan(EquipmentLoan $equipmentLoan): self { if (!$this->equipmentLoan->contains($equipmentLoan)) { $this->equipmentLoan[] = $equipmentLoan; $equipmentLoan->setEquipment($this); } return $this; } public function removeEquipmentLoan(EquipmentLoan $equipmentLoan): self { if ($this->equipmentLoan->removeElement($equipmentLoan)) { // set the owning side to null (unless already changed) if ($equipmentLoan->getEquipment() === $this) { $equipmentLoan->setEquipment(null); } } return $this; } public function getSupplier(): ?Access { return $this->supplier; } public function setSupplier(?Access $supplier): self { $this->supplier = $supplier; return $this; } public function getControlManager(): ?Access { return $this->controlManager; } public function setControlManager(?Access $controlManager): self { $this->controlManager = $controlManager; return $this; } public function getEditor(): ?Access { return $this->editor; } public function setEditor(?Access $editor): self { $this->editor = $editor; return $this; } /** * @return Collection */ public function getInstrumentOrVoice(): Collection { return $this->instrumentOrVoice; } public function addInstrumentOrVoice(EquipmentList $instrumentOrVoice): self { if (!$this->instrumentOrVoice->contains($instrumentOrVoice)) { $this->instrumentOrVoice[] = $instrumentOrVoice; } return $this; } public function removeInstrumentOrVoice(EquipmentList $instrumentOrVoice): self { $this->instrumentOrVoice->removeElement($instrumentOrVoice); return $this; } public function getManagerControl(): ?Access { return $this->managerControl; } public function setManagerControl(?Access $managerControl): self { $this->managerControl = $managerControl; return $this; } /** * @return Collection */ public function getTags(): Collection { return $this->tags; } public function addTag(Tagg $tag): self { if (!$this->tags->contains($tag)) { $this->tags[] = $tag; } return $this; } public function removeTag(Tagg $tag): self { $this->tags->removeElement($tag); return $this; } }