type = $type; $this->entityId = $entityId; $this->entityTitle = $entityTitle; $this->code = $code; $this->message = $message; } }