name = $image->getName(); $this->description = $image->getDescription(); $this->comments = $image->getComments(); $this->type = $image->getType(); $this->path = $image->getPath(); $this->revision = $image->getRevision(); $this->info = $image->getInfo(); $this->size = $image->getSize(); $this->imageFullsum = $image->getImageFullsum(); $this->status = $image->getStatus(); $this->softwareProfile = $image->getSoftwareProfile() ? new SoftwareProfileOutput($image->getSoftwareProfile()) : null; $this->imageRepository = $image->getRepository() ? new ImageRepositoryOutput($image->getRepository()) : null; $this->partitionInfo = json_decode($image->getPartitionInfo(), true); $this->remotePc = $image->isRemotePc(); $this->isGlobal = $image->isGlobal(); $this->created = $image->isCreated(); $this->createdAt = $image->getCreatedAt(); $this->createdBy = $image->getCreatedBy(); } }