*/ class GetMediaInfoHandler implements HandlerInterface { public function __construct( private readonly Tmdb $tmdb, ) {} public function handle(CommandInterface $command): ResultInterface { $media = $this->tmdb->mediaDetails($command->imdbId, $command->mediaType); return new GetMediaInfoResult($media); } }