xref: /PHP-8.2/Zend/zend_closures_arginfo.h (revision 814a9327)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: e3b480674671a698814db282c5ea34d438fe519d */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Closure___construct, 0, 0, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_bind, 0, 2, Closure, 1)
8 	ZEND_ARG_OBJ_INFO(0, closure, Closure, 0)
9 	ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 1)
10 	ZEND_ARG_TYPE_MASK(0, newScope, MAY_BE_OBJECT|MAY_BE_STRING|MAY_BE_NULL, "\"static\"")
11 ZEND_END_ARG_INFO()
12 
13 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_bindTo, 0, 1, Closure, 1)
14 	ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 1)
15 	ZEND_ARG_TYPE_MASK(0, newScope, MAY_BE_OBJECT|MAY_BE_STRING|MAY_BE_NULL, "\"static\"")
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Closure_call, 0, 1, IS_MIXED, 0)
19 	ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 0)
20 	ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
21 ZEND_END_ARG_INFO()
22 
23 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_fromCallable, 0, 1, Closure, 0)
24 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
25 ZEND_END_ARG_INFO()
26 
27 
28 ZEND_METHOD(Closure, __construct);
29 ZEND_METHOD(Closure, bind);
30 ZEND_METHOD(Closure, bindTo);
31 ZEND_METHOD(Closure, call);
32 ZEND_METHOD(Closure, fromCallable);
33 
34 
35 static const zend_function_entry class_Closure_methods[] = {
36 	ZEND_ME(Closure, __construct, arginfo_class_Closure___construct, ZEND_ACC_PRIVATE)
37 	ZEND_ME(Closure, bind, arginfo_class_Closure_bind, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
38 	ZEND_ME(Closure, bindTo, arginfo_class_Closure_bindTo, ZEND_ACC_PUBLIC)
39 	ZEND_ME(Closure, call, arginfo_class_Closure_call, ZEND_ACC_PUBLIC)
40 	ZEND_ME(Closure, fromCallable, arginfo_class_Closure_fromCallable, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
41 	ZEND_FE_END
42 };
43 
register_class_Closure(void)44 static zend_class_entry *register_class_Closure(void)
45 {
46 	zend_class_entry ce, *class_entry;
47 
48 	INIT_CLASS_ENTRY(ce, "Closure", class_Closure_methods);
49 	class_entry = zend_register_internal_class_ex(&ce, NULL);
50 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
51 
52 	return class_entry;
53 }
54