*/ #[ORM\ManyToMany(targetEntity: Hardware::class, inversedBy: 'hardwareProfiles')] private Collection $hardwareCollection; public function __construct() { parent::__construct(); $this->hardwareCollection = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): static { $this->description = $description; return $this; } public function getComments(): ?string { return $this->comments; } public function setComments(?string $comments): static { $this->comments = $comments; return $this; } public function getClient(): ?Client { return $this->client; } public function setClient(?Client $client): static { $this->client = $client; return $this; } /** * @return Collection */ public function getHardwareCollection(): Collection { return $this->hardwareCollection; } public function addHardwareCollection(Hardware $hardwareCollection): static { if (!$this->hardwareCollection->contains($hardwareCollection)) { $this->hardwareCollection->add($hardwareCollection); } return $this; } public function removeHardwareCollection(Hardware $hardwareCollection): static { $this->hardwareCollection->removeElement($hardwareCollection); return $this; } }