src/MultiLanguageWrapper/Route/SearchRouteLanguageFallback.php
public function getClosureForSearch(array $options): Closure
    {
        return function ($language) use ($options) {
            $json = $this->parent->performAPICallWithJsonResponse(
                'get',
                '/search/series',
                array_merge($options, ['headers' => ['Accept-Language' => $language]])
            );
            return DataParser::parseDataArray($json, BasicSeries::class);
        };
    }
public function getClosureForSearch(array $options): Closure
    {
        return function ($language) use ($options) {
            $json = $this->parent->performAPICallWithJsonResponse(
                'get',
                '/search/series',
                array_merge($options, ['headers' => ['Accept-Language' => $language]])
            );
            return DataParser::parseDataArray($json, BasicSeries::class);
        };
    }
public function getClosureForSearch ( array $ options ) : Closure { return function ( $ language ) use ( $ options ) { $ json = $ this -> parent -> performAPICallWithJsonResponse ( 'get' , '/search/series' , array_merge ( $ options , [ 'headers' => [ 'Accept-Language' => $ language ] ] ) ) ; return DataParser :: parseDataArray ( $ json , BasicSeries :: class ) ; } ; }
Returns the closure used to execute a search for a single language.

@param array $options The options for the search.

@return Closure
Returns the closure used to execute a search for a single language .