getResponse()) && ($response instanceof ResponseInterface)){ if($response->getBody()->isSeekable()){ $response->getBody()->rewind(); } $body = $response->getBody()->getContents(); $this->responseJson = json_decode($body, true); return $this->responseJson; } return []; } }