public
|
__construct(
SyncEntityProviderInterface<TEntity> $entityProvider,
(Closure(TEntity): string)|string|null $nameProperty = null,
int-mask-of<SyncEntityFuzzyResolver::*> $flags = SyncEntityFuzzyResolver::DEFAULT_FLAGS,
array<SyncEntityFuzzyResolver::ALGORITHM_*, float>|float|null $uncertaintyThreshold = null,
(Closure(TEntity): (int|float))|string|null $weightProperty = null,
bool $requireOneMatch = false,
)
Parameters
| $nameProperty |
If null,
entity names are taken from {@see SyncEntityInterface::getName()}.
|
| $uncertaintyThreshold |
If
the uncertainty of a match for a given name is greater than or equal to
this value (between 0.0 and 1.0), the entity is not returned.
|
| $weightProperty |
If
multiple entities are equally similar to a given name, the one with the
greatest weight (highest value) is preferred.
|
|
#
|