Nelmio\Alice\Generator\Resolver\Value\Chainable\UniqueValueResolver::__construct PHP Method

__construct() public method

public __construct ( UniqueValuesPool $pool, Nelmio\Alice\Generator\ValueResolverInterface $resolver = null, integer $limit = 150 )
$pool Nelmio\Alice\Generator\Resolver\UniqueValuesPool
$resolver Nelmio\Alice\Generator\ValueResolverInterface
$limit integer
    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;
    }