Add signature for windowed()
, zip()
, zipWithNext()
.
This commit is contained in:
parent
9b8df0bf01
commit
db7b116481
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Reference in New Issue
Block a user