src/Requests/Handlers/AbstractRequestHandler.php
protected function transformResponse($response)
    {
        // TODO this needs to get out

        if ($this->entityDataKey) {
            return EntityReflector::parseAll($this->entityClass, $response->getData($this->entityDataKey));
        }

        if ($this->entityClass) {
            return EntityReflector::parse($this->entityClass, $response->getData());
        }

        return $response;
    }
protected function transformResponse($response)
    {
        // TODO this needs to get out

        if ($this->entityDataKey) {
            return EntityReflector::parseAll($this->entityClass, $response->getData($this->entityDataKey));
        }

        if ($this->entityClass) {
            return EntityReflector::parse($this->entityClass, $response->getData());
        }

        return $response;
    }
@param Response $response

@return mixed