*/ class SearchHandler implements HandlerInterface { public function __construct( private Tmdb $tmdb, ) {} public function handle(CommandInterface $command): ResultInterface { return new SearchResult( term: $command->term, results: $this->tmdb->search($command->term) ); } }