
extern zend_class_entry *phalcon_translate_interpolator_associativearray_ce;

ZEPHIR_INIT_CLASS(Phalcon_Translate_Interpolator_AssociativeArray);

PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceholders);
PHP_METHOD(Phalcon_Translate_Interpolator_AssociativeArray, toInterpolate);

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_translate_interpolator_associativearray_replaceplaceholders, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, translation, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, placeholders, IS_ARRAY, 0, "[]")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_translate_interpolator_associativearray_tointerpolate, 0, 1, IS_STRING, 0)
	ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, context, IS_ARRAY, 0, "[]")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, left, IS_STRING, 0, "'%'")
	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, right, IS_STRING, 0, "'%'")
ZEND_END_ARG_INFO()

ZEPHIR_INIT_FUNCS(phalcon_translate_interpolator_associativearray_method_entry) {
	PHP_ME(Phalcon_Translate_Interpolator_AssociativeArray, replacePlaceholders, arginfo_phalcon_translate_interpolator_associativearray_replaceplaceholders, ZEND_ACC_PUBLIC)
	PHP_ME(Phalcon_Translate_Interpolator_AssociativeArray, toInterpolate, arginfo_phalcon_translate_interpolator_associativearray_tointerpolate, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC)
	PHP_FE_END
};
