protected function validateOptions(array $options) {
        $validator = \CharlotteDunois\Validation\Validator::make($options, array(
            'connections.max' => 'integer|min:1',
            'connections.lazy' => 'boolean'
        ));
        
        $validator->throw(\InvalidArgumentException::class);
    }
protected function validateOptions(array $options) {
        $validator = \CharlotteDunois\Validation\Validator::make($options, array(
            'connections.max' => 'integer|min:1',
            'connections.lazy' => 'boolean'
        ));
        
        $validator->throw(\InvalidArgumentException::class);
    }
protected function validateOptions ( array $ options ) { $ validator = \ CharlotteDunois \ Validation \ Validator :: make ( $ options , array ( 'connections.max' => 'integer|min:1' , 'connections.lazy' => 'boolean' ) ) ; $ validator -> throw ( \ InvalidArgumentException :: class ) ; }
Validates the given options.
@param array  $options
@return void
@throws \InvalidArgumentException
Validates the given options .