19declare(strict_types=1);
40 $this->providers[] = $provider;
45 foreach ($this->providers as $provider) {
46 $status = SearchResultStatus::INITIAL;
47 foreach ($provider as $row) {
49 $this->result->markMoreResultsAvailable();
53 $status = $this->result->addResult($row[
'login'], $row[
'firstname'], $row[
'lastname']);
@phpstan-import-type AutoCompleteUserRecord from RecipientSearchProvider
__construct(private readonly SearchResult $result)
addProvider(\Iterator $provider)