<?php
namespace API\Partenaire;

/**
 * Interface pour Partenaire capable d'autocompleter certain formulaire
 */
interface IDataHinter
{
    /**
     * @param class-string $entityClass
     * @param array<string> $prompter list of field which trigger this process
     * @param array<mixed> $data Current data raw (unvalidated) input data
     * @return array<string,array<string>> Map of list of suggestion indexed by (DB) field name, or null if "silent"
     */
    public function suggest(string $entityClass, array $data, array $prompter) :?array;
}
