*/ final class AnimeVideosLookupHandler extends RequestHandlerWithScraperCache { protected function resource(CachedData $results): JsonResource { return new AnimeVideosResource( $results ); } /** * @inheritDoc */ public function requestClass(): string { return AnimeVideosLookupCommand::class; } protected function getScraperData(string $requestFingerPrint, Collection $requestParams): CachedData { $id = $requestParams->get("id"); return $this->scraperService->findList( $requestFingerPrint, fn (MalClient $jikan, ?int $page = null) => $jikan->getAnimeVideos(new AnimeVideosRequest($id)) ); } }