
extern zend_class_entry *phalcon_filter_validation_validator_uniqueness_ce;

ZEPHIR_INIT_CLASS(Phalcon_Filter_Validation_Validator_Uniqueness);

PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, __construct);
PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, getOption);
PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, validate);
PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, getColumnNameReal);
PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, isUniqueness);
PHP_METHOD(Phalcon_Filter_Validation_Validator_Uniqueness, isUniquenessModel);

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness___construct, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness_getoption, 0, 0, 1)
	ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
	ZEND_ARG_INFO(0, defaultValue)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness_validate, 0, 2, _IS_BOOL, 0)
	ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Filter\\Validation, 0)
	ZEND_ARG_INFO(0, field)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness_getcolumnnamereal, 0, 2, IS_STRING, 0)
	ZEND_ARG_INFO(0, record)
	ZEND_ARG_TYPE_INFO(0, field, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness_isuniqueness, 0, 2, _IS_BOOL, 0)
	ZEND_ARG_OBJ_INFO(0, validation, Phalcon\\Filter\\Validation, 0)
	ZEND_ARG_INFO(0, field)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_filter_validation_validator_uniqueness_isuniquenessmodel, 0, 0, 3)
	ZEND_ARG_INFO(0, record)
	ZEND_ARG_ARRAY_INFO(0, field, 0)
	ZEND_ARG_ARRAY_INFO(0, values, 0)
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(phalcon_filter_validation_validator_uniqueness_method_entry) {
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, __construct, arginfo_phalcon_filter_validation_validator_uniqueness___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, getOption, arginfo_phalcon_filter_validation_validator_uniqueness_getoption, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, validate, arginfo_phalcon_filter_validation_validator_uniqueness_validate, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, getColumnNameReal, arginfo_phalcon_filter_validation_validator_uniqueness_getcolumnnamereal, ZEND_ACC_PROTECTED)
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, isUniqueness, arginfo_phalcon_filter_validation_validator_uniqueness_isuniqueness, ZEND_ACC_PROTECTED)
	PHP_ME(Phalcon_Filter_Validation_Validator_Uniqueness, isUniquenessModel, arginfo_phalcon_filter_validation_validator_uniqueness_isuniquenessmodel, ZEND_ACC_PROTECTED)
	PHP_FE_END
};
