*/ #[ORM\ManyToMany(targetEntity: HardwareProfile::class, mappedBy: 'hardwareCollection')] private Collection $hardwareProfiles; #[ORM\ManyToOne] private ?HardwareType $type = null; public function __construct() { parent::__Construct(); $this->hardwareProfiles = 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; } /** * @return Collection */ public function getHardwareProfiles(): Collection { return $this->hardwareProfiles; } public function addHardwareProfile(HardwareProfile $hardwareProfile): static { if (!$this->hardwareProfiles->contains($hardwareProfile)) { $this->hardwareProfiles->add($hardwareProfile); $hardwareProfile->addHardwareCollection($this); } return $this; } public function removeHardwareProfile(HardwareProfile $hardwareProfile): static { if ($this->hardwareProfiles->removeElement($hardwareProfile)) { $hardwareProfile->removeHardwareCollection($this); } return $this; } public function getType(): ?HardwareType { return $this->type; } public function setType(?HardwareType $type): static { $this->type = $type; return $this; } }