name = $hardware->getName(); $this->description = $hardware->getDescription(); $this->type = $hardware->getType() ? new HardwareTypeOutput($hardware->getType()) : null; $this->createdAt = $hardware->getCreatedAt(); $this->createdBy = $hardware->getCreatedBy(); } }