/** * @inheritDoc * @return \Swedbank\SPP\Response\QueryResponse */ public function parseResponse($response) { $responseClass = '\\Swedbank\\SPP\\Response\\QueryResponse' . $this->method->getCodeName(); return new $responseClass($this->type, $response); }