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 static const zend_function_entry class_UnitEnum_methods[] = {
17 ZEND_RAW_FENTRY("cases", NULL, arginfo_class_UnitEnum_cases, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT, NULL, NULL)
18 ZEND_FE_END
19 };
20
21 static const zend_function_entry class_BackedEnum_methods[] = {
22 ZEND_RAW_FENTRY("from", NULL, arginfo_class_BackedEnum_from, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT, NULL, NULL)
23 ZEND_RAW_FENTRY("tryFrom", NULL, arginfo_class_BackedEnum_tryFrom, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_ABSTRACT, NULL, NULL)
24 ZEND_FE_END
25 };
26
register_class_UnitEnum(void)27 static zend_class_entry *register_class_UnitEnum(void)
28 {
29 zend_class_entry ce, *class_entry;
30
31 INIT_CLASS_ENTRY(ce, "UnitEnum", class_UnitEnum_methods);
32 class_entry = zend_register_internal_interface(&ce);
33
34 return class_entry;
35 }
36
register_class_BackedEnum(zend_class_entry * class_entry_UnitEnum)37 static zend_class_entry *register_class_BackedEnum(zend_class_entry *class_entry_UnitEnum)
38 {
39 zend_class_entry ce, *class_entry;
40
41 INIT_CLASS_ENTRY(ce, "BackedEnum", class_BackedEnum_methods);
42 class_entry = zend_register_internal_interface(&ce);
43 zend_class_implements(class_entry, 1, class_entry_UnitEnum);
44
45 return class_entry;
46 }
47