src/MultiLanguageWrapper/Route/SeriesRouteLanguageFallback.php
public function getClosureById(int $seriesId): Closure
    {
        return function ($language) use ($seriesId) {
            $json = $this->parent->performAPICallWithJsonResponse(
                'get',
                '/series/'.$seriesId,
                [
                    'headers' => ['Accept-Language' => $language]
                ]
            );

            return DataParser::parseData($json, Series::class);
        };
    }
public function getClosureById(int $seriesId): Closure
    {
        return function ($language) use ($seriesId) {
            $json = $this->parent->performAPICallWithJsonResponse(
                'get',
                '/series/'.$seriesId,
                [
                    'headers' => ['Accept-Language' => $language]
                ]
            );

            return DataParser::parseData($json, Series::class);
        };
    }
public function getClosureById ( int $ seriesId ) : Closure { return function ( $ language ) use ( $ seriesId ) { $ json = $ this -> parent -> performAPICallWithJsonResponse ( 'get' , '/series/' . $ seriesId , [ 'headers' => [ 'Accept-Language' => $ language ] ] ) ; return DataParser :: parseData ( $ json , Series :: class ) ; } ; }
Returns the closure used to retrieve a series with a given id for a single language.

@param int $seriesId The ID of the series to retrieve.

@return Closure
Returns the closure used to retrieve a series with a given id for a single language .