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

            return DataParser::parseDataArray($json, BasicEpisode::class);
        };
    }
public function getClosureForEpisodes(int $seriesId, array $options): Closure
    {
        return function ($language) use ($seriesId, $options) {
            $options['headers'] = ['Accept-Language' => $language];
            $json = $this->parent->performAPICallWithJsonResponse(
                'get',
                '/series/'.$seriesId.'/episodes',
                $options
            );

            return DataParser::parseDataArray($json, BasicEpisode::class);
        };
    }
public function getClosureForEpisodes ( int $ seriesId , array $ options ) : Closure { return function ( $ language ) use ( $ seriesId , $ options ) { $ options [ 'headers' ] = [ 'Accept-Language' => $ language ] ; $ json = $ this -> parent -> performAPICallWithJsonResponse ( 'get' , '/series/' . $ seriesId . '/episodes' , $ options ) ; return DataParser :: parseDataArray ( $ json , BasicEpisode :: class ) ; } ; }
Returns the closure used to retrieve a set of episodes for a series for a single language.

@param int   $seriesId The series id
@param array $options  The options (pagination, ...)

@return Closure
Returns the closure used to retrieve a set of episodes for a series for a single language .