xref: /PHP-8.1/Zend/zend_enum_arginfo.h (revision 269c8dac)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 7092f1d4ba651f077cff37050899f090f00abf22 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_UnitEnum_cases, 0, 0, IS_ARRAY, 0)
5 ZEND_END_ARG_INFO()
6 
7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_BackedEnum_from, 0, 1, IS_STATIC, 0)
8 	ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_STRING, NULL)
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_BackedEnum_tryFrom, 0, 1, IS_STATIC, 1)
12 	ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_STRING, NULL)
13 ZEND_END_ARG_INFO()
14 
15 
16 
17 
18 static const zend_function_entry class_UnitEnum_methods[] = {
19 	ZEND_ABSTRACT_ME_WITH_FLAGS(UnitEnum, cases, arginfo_class_UnitEnum_cases, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT)
20 	ZEND_FE_END
21 };
22 
23 
24 static const zend_function_entry class_BackedEnum_methods[] = {
25 	ZEND_ABSTRACT_ME_WITH_FLAGS(BackedEnum, from, arginfo_class_BackedEnum_from, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT)
26 	ZEND_ABSTRACT_ME_WITH_FLAGS(BackedEnum, tryFrom, arginfo_class_BackedEnum_tryFrom, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT)
27 	ZEND_FE_END
28 };
29 
register_class_UnitEnum(void)30 static zend_class_entry *register_class_UnitEnum(void)
31 {
32 	zend_class_entry ce, *class_entry;
33 
34 	INIT_CLASS_ENTRY(ce, "UnitEnum", class_UnitEnum_methods);
35 	class_entry = zend_register_internal_interface(&ce);
36 
37 	return class_entry;
38 }
39 
register_class_BackedEnum(zend_class_entry * class_entry_UnitEnum)40 static zend_class_entry *register_class_BackedEnum(zend_class_entry *class_entry_UnitEnum)
41 {
42 	zend_class_entry ce, *class_entry;
43 
44 	INIT_CLASS_ENTRY(ce, "BackedEnum", class_BackedEnum_methods);
45 	class_entry = zend_register_internal_interface(&ce);
46 	zend_class_implements(class_entry, 1, class_entry_UnitEnum);
47 
48 	return class_entry;
49 }
50