xref: /PHP-8.2/Zend/zend_generators_arginfo.h (revision 814a9327)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 0af5e8985dd4645bf23490b8cec312f8fd1fee2e */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_valid, 0, 0, _IS_BOOL, 0)
8 ZEND_END_ARG_INFO()
9 
10 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_current, 0, 0, IS_MIXED, 0)
11 ZEND_END_ARG_INFO()
12 
13 #define arginfo_class_Generator_key arginfo_class_Generator_current
14 
15 #define arginfo_class_Generator_next arginfo_class_Generator_rewind
16 
17 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_send, 0, 1, IS_MIXED, 0)
18 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_throw, 0, 1, IS_MIXED, 0)
22 	ZEND_ARG_OBJ_INFO(0, exception, Throwable, 0)
23 ZEND_END_ARG_INFO()
24 
25 #define arginfo_class_Generator_getReturn arginfo_class_Generator_current
26 
27 
28 ZEND_METHOD(Generator, rewind);
29 ZEND_METHOD(Generator, valid);
30 ZEND_METHOD(Generator, current);
31 ZEND_METHOD(Generator, key);
32 ZEND_METHOD(Generator, next);
33 ZEND_METHOD(Generator, send);
34 ZEND_METHOD(Generator, throw);
35 ZEND_METHOD(Generator, getReturn);
36 
37 
38 static const zend_function_entry class_Generator_methods[] = {
39 	ZEND_ME(Generator, rewind, arginfo_class_Generator_rewind, ZEND_ACC_PUBLIC)
40 	ZEND_ME(Generator, valid, arginfo_class_Generator_valid, ZEND_ACC_PUBLIC)
41 	ZEND_ME(Generator, current, arginfo_class_Generator_current, ZEND_ACC_PUBLIC)
42 	ZEND_ME(Generator, key, arginfo_class_Generator_key, ZEND_ACC_PUBLIC)
43 	ZEND_ME(Generator, next, arginfo_class_Generator_next, ZEND_ACC_PUBLIC)
44 	ZEND_ME(Generator, send, arginfo_class_Generator_send, ZEND_ACC_PUBLIC)
45 	ZEND_ME(Generator, throw, arginfo_class_Generator_throw, ZEND_ACC_PUBLIC)
46 	ZEND_ME(Generator, getReturn, arginfo_class_Generator_getReturn, ZEND_ACC_PUBLIC)
47 	ZEND_FE_END
48 };
49 
50 
51 static const zend_function_entry class_ClosedGeneratorException_methods[] = {
52 	ZEND_FE_END
53 };
54 
register_class_Generator(zend_class_entry * class_entry_Iterator)55 static zend_class_entry *register_class_Generator(zend_class_entry *class_entry_Iterator)
56 {
57 	zend_class_entry ce, *class_entry;
58 
59 	INIT_CLASS_ENTRY(ce, "Generator", class_Generator_methods);
60 	class_entry = zend_register_internal_class_ex(&ce, NULL);
61 	class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
62 	zend_class_implements(class_entry, 1, class_entry_Iterator);
63 
64 	return class_entry;
65 }
66 
register_class_ClosedGeneratorException(zend_class_entry * class_entry_Exception)67 static zend_class_entry *register_class_ClosedGeneratorException(zend_class_entry *class_entry_Exception)
68 {
69 	zend_class_entry ce, *class_entry;
70 
71 	INIT_CLASS_ENTRY(ce, "ClosedGeneratorException", class_ClosedGeneratorException_methods);
72 	class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
73 
74 	return class_entry;
75 }
76