Gajus\Vlad\Validator\LengthMin::__construct PHP Method

__construct() public method

public __construct ( array $options = [] )
$options array
    public function __construct(array $options = [])
    {
        parent::__construct($options);
        $options = $this->getOptions();
        if (!isset($options['length'])) {
            throw new \Gajus\Vlad\Exception\InvalidArgumentException('"length" option is required.');
        }
        if (!ctype_digit((string) $options['length'])) {
            throw new \Gajus\Vlad\Exception\InvalidArgumentException('"length" option must be a whole number.');
        }
    }