
extern zend_class_entry *phalcon_support_helper_json_decode_ce;

ZEPHIR_INIT_CLASS(Phalcon_Support_Helper_Json_Decode);

PHP_METHOD(Phalcon_Support_Helper_Json_Decode, __invoke);
PHP_METHOD(Phalcon_Support_Helper_Json_Decode, toDecode);

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_support_helper_json_decode___invoke, 0, 0, 1)
	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, associative, _IS_BOOL, 0, "false")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "79")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_support_helper_json_decode_todecode, 0, 0, 1)
	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, associative, _IS_BOOL, 0, "false")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "79")
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(phalcon_support_helper_json_decode_method_entry) {
	PHP_ME(Phalcon_Support_Helper_Json_Decode, __invoke, arginfo_phalcon_support_helper_json_decode___invoke, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Support_Helper_Json_Decode, toDecode, arginfo_phalcon_support_helper_json_decode_todecode, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC)
	PHP_FE_END
};
