attributes[$type] ?? []; } public function addPartEntity(string $type, PartEntity $partEntity): void { if (!isset($this->attributes[$type])) { $this->attributes[$type] = []; } $this->attributes[$type][] = $partEntity; // $this->attributes[$type] = array_unique($this->attributes[$type], SORT_REGULAR); } }