description = $softwareProfile->getDescription(); $this->comments = $softwareProfile->getComments(); if ($includeImage && $softwareProfile->getImage()) { $this->image = new ImageOutput($softwareProfile->getImage()); } if ($softwareProfile->getOperativeSystem()) { $this->operativeSystem = new OperativeSystemOutput($softwareProfile->getOperativeSystem()); } $this->softwareCollection = $softwareProfile->getSoftwareCollection()->map( fn(Software $hardware) => new SoftwareOutput($hardware) )->toArray(); $this->createdAt = $softwareProfile->getCreatedAt(); $this->createdBy = $softwareProfile->getCreatedBy(); } }