diff --git a/src/collections_me.c b/src/collections_me.c index 9bb2430..0e06003 100644 --- a/src/collections_me.c +++ b/src/collections_me.c @@ -136,6 +136,18 @@ ZEND_BEGIN_ARG_INFO(to_collection_arginfo, 0) ZEND_ARG_OBJ_INFO(0, destination, Collection, 0) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO(windowed_arginfo, 0) + ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, partial_windows, _IS_BOOL, 0) + ZEND_ARG_CALLABLE_INFO(0, transform, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO(zip_arginfo, 0) + ZEND_ARG_INFO(0, other) + ZEND_ARG_CALLABLE_INFO(0, transform, 0) +ZEND_END_ARG_INFO() + const zend_function_entry collection_methods[] = { PHP_ME(Collection, __construct, NULL, ZEND_ACC_PRIVATE | ZEND_ACC_CTOR) PHP_ME(Collection, addAll, elements_arginfo, ZEND_ACC_PUBLIC) @@ -240,6 +252,9 @@ const zend_function_entry collection_methods[] = { PHP_ME(Collection, toPairs, NULL, ZEND_ACC_PUBLIC) PHP_ME(Collection, union, other_arginfo, ZEND_ACC_PUBLIC) PHP_ME(Collection, values, NULL, ZEND_ACC_PUBLIC) + PHP_ME(Collection, windowed, windowed_arginfo, ZEND_ACC_PUBLIC) + PHP_ME(Collection, zip, zip_arginfo, ZEND_ACC_PUBLIC) + PHP_ME(Collection, zipWithNext, transform_arginfo, ZEND_ACC_PUBLIC) PHP_FE_END }; diff --git a/src/collections_methods.c b/src/collections_methods.c index de9d8a5..7bb6a9e 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -3263,6 +3263,21 @@ PHP_METHOD(Collection, values) RETVAL_NEW_COLLECTION(new_collection); } +PHP_METHOD(Collection, windowed) +{ + +} + +PHP_METHOD(Collection, zip) +{ + +} + +PHP_METHOD(Collection, zipWithNext) +{ + +} + PHP_METHOD(Pair, __construct) { zval* first; diff --git a/src/php_collections_me.h b/src/php_collections_me.h index c2344b5..1b32883 100644 --- a/src/php_collections_me.h +++ b/src/php_collections_me.h @@ -112,6 +112,9 @@ PHP_METHOD(Collection, toCollection); PHP_METHOD(Collection, toPairs); PHP_METHOD(Collection, union); PHP_METHOD(Collection, values); +PHP_METHOD(Collection, windowed); +PHP_METHOD(Collection, zip); +PHP_METHOD(Collection, zipWithNext); PHP_METHOD(Pair, __construct);