public function __construct(UniqueValuesPool $pool, ValueResolverInterface $resolver = null, int $limit = 150)
{
$this->pool = $pool;
$this->resolver = $resolver;
if ($limit < 1) {
throw InvalidArgumentExceptionFactory::createForInvalidLimitValue($limit);
}
$this->limit = $limit;
}