*/ class GetTvShowOptionsHandler implements HandlerInterface { public function __construct( private readonly Tmdb $tmdb, private readonly Torrentio $torrentio, ) {} public function handle(CommandInterface $command): ResultInterface { return new GetTvShowOptionsResult( media: $this->tmdb->episodeDetails($command->tmdbId, $command->season, $command->episode), season: $command->season, episode: $command->episode, results: $this->torrentio->fetchEpisodeResults( $command->imdbId, $command->season, $command->episode, ) ); } }