*/ #[ORM\ManyToMany(targetEntity: SoftwareProfile::class, mappedBy: 'softwareCollection')] private Collection $softwareProfiles; public function __construct() { parent::__construct(); $this->softwareProfiles = new ArrayCollection(); } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; } /** * @return Collection */ public function getSoftwareProfiles(): Collection { return $this->softwareProfiles; } public function addSoftwareProfile(SoftwareProfile $softwareProfile): static { if (!$this->softwareProfiles->contains($softwareProfile)) { $this->softwareProfiles->add($softwareProfile); $softwareProfile->addSoftwareCollection($this); } return $this; } public function removeSoftwareProfile(SoftwareProfile $softwareProfile): static { if ($this->softwareProfiles->removeElement($softwareProfile)) { $softwareProfile->removeSoftwareCollection($this); } return $this; } }