description = $softwareProfile->getDescription(); $this->comments = $softwareProfile->getComments(); if($softwareProfile->getOrganizationalUnit()) { $this->organizationalUnit = new OrganizationalUnitOutput($softwareProfile->getOrganizationalUnit()); } $this->softwareCollection = $softwareProfile->getSoftwareCollection()->map( fn(Software $hardware) => new SoftwareOutput($hardware) )->toArray(); $this->createdAt = $softwareProfile->getCreatedAt(); $this->createdBy = $softwareProfile->getCreatedBy(); } }