clientHandler = new ClientHandler($clientParams); } /** * @param YopRequest $request * @return YopResponse * @throws YopClientException */ public function sendRequest(YopRequest $request) { $clientExecutionParams = new ClientExecutionParams($request, new YopRequestMarshaller(), new YopResponseUnMarshaller()); return $this->clientHandler->execute($clientExecutionParams); } /** * @param YopRequest $request * @return YosDownloadResponse * @throws YopClientException */ public function sendDownloadRequest(YopRequest $request) { $clientExecutionParams = new ClientExecutionParams($request, new YopRequestMarshaller(), new YosDownloadResponseUnMarshaller()); return $this->clientHandler->execute($clientExecutionParams); } }