ApaiIO\ApaiIO::applyResponseTransformer PHP Méthode

applyResponseTransformer() protected méthode

Applies a responsetransformer.
protected applyResponseTransformer ( mixed $response ) : mixed
$response mixed The response of the request
Résultat mixed
    protected function applyResponseTransformer($response)
    {
        if (null === ($responseTransformer = $this->configuration->getResponseTransformer())) {
            return $response;
        }
        return $responseTransformer->transform($response);
    }