xref: /PHP-8.3/ext/spl/spl_observer_arginfo.h (revision 7b355e8d)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: e2d66473e8e2436652b78abd9c237e1a50c3d0dc */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObserver_update, 0, 1, IS_VOID, 0)
5 	ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplSubject_attach, 0, 1, IS_VOID, 0)
9 	ZEND_ARG_OBJ_INFO(0, observer, SplObserver, 0)
10 ZEND_END_ARG_INFO()
11 
12 #define arginfo_class_SplSubject_detach arginfo_class_SplSubject_attach
13 
14 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplSubject_notify, 0, 0, IS_VOID, 0)
15 ZEND_END_ARG_INFO()
16 
17 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_attach, 0, 1, IS_VOID, 0)
18 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
19 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, info, IS_MIXED, 0, "null")
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_detach, 0, 1, IS_VOID, 0)
23 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_contains, 0, 1, _IS_BOOL, 0)
27 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
28 ZEND_END_ARG_INFO()
29 
30 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_addAll, 0, 1, IS_LONG, 0)
31 	ZEND_ARG_OBJ_INFO(0, storage, SplObjectStorage, 0)
32 ZEND_END_ARG_INFO()
33 
34 #define arginfo_class_SplObjectStorage_removeAll arginfo_class_SplObjectStorage_addAll
35 
36 #define arginfo_class_SplObjectStorage_removeAllExcept arginfo_class_SplObjectStorage_addAll
37 
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_getInfo, 0, 0, IS_MIXED, 0)
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_setInfo, 0, 1, IS_VOID, 0)
42 	ZEND_ARG_TYPE_INFO(0, info, IS_MIXED, 0)
43 ZEND_END_ARG_INFO()
44 
45 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_count, 0, 0, IS_LONG, 0)
46 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "COUNT_NORMAL")
47 ZEND_END_ARG_INFO()
48 
49 #define arginfo_class_SplObjectStorage_rewind arginfo_class_SplSubject_notify
50 
51 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_valid, 0, 0, _IS_BOOL, 0)
52 ZEND_END_ARG_INFO()
53 
54 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_key, 0, 0, IS_LONG, 0)
55 ZEND_END_ARG_INFO()
56 
57 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_current, 0, 0, IS_OBJECT, 0)
58 ZEND_END_ARG_INFO()
59 
60 #define arginfo_class_SplObjectStorage_next arginfo_class_SplSubject_notify
61 
62 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_unserialize, 0, 1, IS_VOID, 0)
63 	ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
64 ZEND_END_ARG_INFO()
65 
66 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_serialize, 0, 0, IS_STRING, 0)
67 ZEND_END_ARG_INFO()
68 
69 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_offsetExists, 0, 1, _IS_BOOL, 0)
70 	ZEND_ARG_INFO(0, object)
71 ZEND_END_ARG_INFO()
72 
73 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_offsetGet, 0, 1, IS_MIXED, 0)
74 	ZEND_ARG_INFO(0, object)
75 ZEND_END_ARG_INFO()
76 
77 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_offsetSet, 0, 1, IS_VOID, 0)
78 	ZEND_ARG_INFO(0, object)
79 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, info, IS_MIXED, 0, "null")
80 ZEND_END_ARG_INFO()
81 
82 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_offsetUnset, 0, 1, IS_VOID, 0)
83 	ZEND_ARG_INFO(0, object)
84 ZEND_END_ARG_INFO()
85 
86 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_getHash, 0, 1, IS_STRING, 0)
87 	ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
88 ZEND_END_ARG_INFO()
89 
90 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage___serialize, 0, 0, IS_ARRAY, 0)
91 ZEND_END_ARG_INFO()
92 
93 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage___unserialize, 0, 1, IS_VOID, 0)
94 	ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
95 ZEND_END_ARG_INFO()
96 
97 #define arginfo_class_SplObjectStorage___debugInfo arginfo_class_SplObjectStorage___serialize
98 
99 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MultipleIterator___construct, 0, 0, 0)
100 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC")
101 ZEND_END_ARG_INFO()
102 
103 #define arginfo_class_MultipleIterator_getFlags arginfo_class_SplObjectStorage_key
104 
105 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MultipleIterator_setFlags, 0, 1, IS_VOID, 0)
106 	ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
107 ZEND_END_ARG_INFO()
108 
109 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MultipleIterator_attachIterator, 0, 1, IS_VOID, 0)
110 	ZEND_ARG_OBJ_INFO(0, iterator, Iterator, 0)
111 	ZEND_ARG_TYPE_MASK(0, info, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, "null")
112 ZEND_END_ARG_INFO()
113 
114 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MultipleIterator_detachIterator, 0, 1, IS_VOID, 0)
115 	ZEND_ARG_OBJ_INFO(0, iterator, Iterator, 0)
116 ZEND_END_ARG_INFO()
117 
118 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_MultipleIterator_containsIterator, 0, 1, _IS_BOOL, 0)
119 	ZEND_ARG_OBJ_INFO(0, iterator, Iterator, 0)
120 ZEND_END_ARG_INFO()
121 
122 #define arginfo_class_MultipleIterator_countIterators arginfo_class_SplObjectStorage_key
123 
124 #define arginfo_class_MultipleIterator_rewind arginfo_class_SplSubject_notify
125 
126 #define arginfo_class_MultipleIterator_valid arginfo_class_SplObjectStorage_valid
127 
128 #define arginfo_class_MultipleIterator_key arginfo_class_SplObjectStorage___serialize
129 
130 #define arginfo_class_MultipleIterator_current arginfo_class_SplObjectStorage___serialize
131 
132 #define arginfo_class_MultipleIterator_next arginfo_class_SplSubject_notify
133 
134 #define arginfo_class_MultipleIterator___debugInfo arginfo_class_SplObjectStorage___serialize
135 
136 
137 ZEND_METHOD(SplObjectStorage, attach);
138 ZEND_METHOD(SplObjectStorage, detach);
139 ZEND_METHOD(SplObjectStorage, contains);
140 ZEND_METHOD(SplObjectStorage, addAll);
141 ZEND_METHOD(SplObjectStorage, removeAll);
142 ZEND_METHOD(SplObjectStorage, removeAllExcept);
143 ZEND_METHOD(SplObjectStorage, getInfo);
144 ZEND_METHOD(SplObjectStorage, setInfo);
145 ZEND_METHOD(SplObjectStorage, count);
146 ZEND_METHOD(SplObjectStorage, rewind);
147 ZEND_METHOD(SplObjectStorage, valid);
148 ZEND_METHOD(SplObjectStorage, key);
149 ZEND_METHOD(SplObjectStorage, current);
150 ZEND_METHOD(SplObjectStorage, next);
151 ZEND_METHOD(SplObjectStorage, unserialize);
152 ZEND_METHOD(SplObjectStorage, serialize);
153 ZEND_METHOD(SplObjectStorage, offsetGet);
154 ZEND_METHOD(SplObjectStorage, getHash);
155 ZEND_METHOD(SplObjectStorage, __serialize);
156 ZEND_METHOD(SplObjectStorage, __unserialize);
157 ZEND_METHOD(SplObjectStorage, __debugInfo);
158 ZEND_METHOD(MultipleIterator, __construct);
159 ZEND_METHOD(MultipleIterator, getFlags);
160 ZEND_METHOD(MultipleIterator, setFlags);
161 ZEND_METHOD(MultipleIterator, attachIterator);
162 ZEND_METHOD(MultipleIterator, detachIterator);
163 ZEND_METHOD(MultipleIterator, containsIterator);
164 ZEND_METHOD(MultipleIterator, countIterators);
165 ZEND_METHOD(MultipleIterator, rewind);
166 ZEND_METHOD(MultipleIterator, valid);
167 ZEND_METHOD(MultipleIterator, key);
168 ZEND_METHOD(MultipleIterator, current);
169 ZEND_METHOD(MultipleIterator, next);
170 
171 
172 static const zend_function_entry class_SplObserver_methods[] = {
173 	ZEND_ABSTRACT_ME_WITH_FLAGS(SplObserver, update, arginfo_class_SplObserver_update, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
174 	ZEND_FE_END
175 };
176 
177 
178 static const zend_function_entry class_SplSubject_methods[] = {
179 	ZEND_ABSTRACT_ME_WITH_FLAGS(SplSubject, attach, arginfo_class_SplSubject_attach, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
180 	ZEND_ABSTRACT_ME_WITH_FLAGS(SplSubject, detach, arginfo_class_SplSubject_detach, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
181 	ZEND_ABSTRACT_ME_WITH_FLAGS(SplSubject, notify, arginfo_class_SplSubject_notify, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
182 	ZEND_FE_END
183 };
184 
185 
186 static const zend_function_entry class_SplObjectStorage_methods[] = {
187 	ZEND_ME(SplObjectStorage, attach, arginfo_class_SplObjectStorage_attach, ZEND_ACC_PUBLIC)
188 	ZEND_ME(SplObjectStorage, detach, arginfo_class_SplObjectStorage_detach, ZEND_ACC_PUBLIC)
189 	ZEND_ME(SplObjectStorage, contains, arginfo_class_SplObjectStorage_contains, ZEND_ACC_PUBLIC)
190 	ZEND_ME(SplObjectStorage, addAll, arginfo_class_SplObjectStorage_addAll, ZEND_ACC_PUBLIC)
191 	ZEND_ME(SplObjectStorage, removeAll, arginfo_class_SplObjectStorage_removeAll, ZEND_ACC_PUBLIC)
192 	ZEND_ME(SplObjectStorage, removeAllExcept, arginfo_class_SplObjectStorage_removeAllExcept, ZEND_ACC_PUBLIC)
193 	ZEND_ME(SplObjectStorage, getInfo, arginfo_class_SplObjectStorage_getInfo, ZEND_ACC_PUBLIC)
194 	ZEND_ME(SplObjectStorage, setInfo, arginfo_class_SplObjectStorage_setInfo, ZEND_ACC_PUBLIC)
195 	ZEND_ME(SplObjectStorage, count, arginfo_class_SplObjectStorage_count, ZEND_ACC_PUBLIC)
196 	ZEND_ME(SplObjectStorage, rewind, arginfo_class_SplObjectStorage_rewind, ZEND_ACC_PUBLIC)
197 	ZEND_ME(SplObjectStorage, valid, arginfo_class_SplObjectStorage_valid, ZEND_ACC_PUBLIC)
198 	ZEND_ME(SplObjectStorage, key, arginfo_class_SplObjectStorage_key, ZEND_ACC_PUBLIC)
199 	ZEND_ME(SplObjectStorage, current, arginfo_class_SplObjectStorage_current, ZEND_ACC_PUBLIC)
200 	ZEND_ME(SplObjectStorage, next, arginfo_class_SplObjectStorage_next, ZEND_ACC_PUBLIC)
201 	ZEND_ME(SplObjectStorage, unserialize, arginfo_class_SplObjectStorage_unserialize, ZEND_ACC_PUBLIC)
202 	ZEND_ME(SplObjectStorage, serialize, arginfo_class_SplObjectStorage_serialize, ZEND_ACC_PUBLIC)
203 	ZEND_MALIAS(SplObjectStorage, offsetExists, contains, arginfo_class_SplObjectStorage_offsetExists, ZEND_ACC_PUBLIC)
204 	ZEND_ME(SplObjectStorage, offsetGet, arginfo_class_SplObjectStorage_offsetGet, ZEND_ACC_PUBLIC)
205 	ZEND_MALIAS(SplObjectStorage, offsetSet, attach, arginfo_class_SplObjectStorage_offsetSet, ZEND_ACC_PUBLIC)
206 	ZEND_MALIAS(SplObjectStorage, offsetUnset, detach, arginfo_class_SplObjectStorage_offsetUnset, ZEND_ACC_PUBLIC)
207 	ZEND_ME(SplObjectStorage, getHash, arginfo_class_SplObjectStorage_getHash, ZEND_ACC_PUBLIC)
208 	ZEND_ME(SplObjectStorage, __serialize, arginfo_class_SplObjectStorage___serialize, ZEND_ACC_PUBLIC)
209 	ZEND_ME(SplObjectStorage, __unserialize, arginfo_class_SplObjectStorage___unserialize, ZEND_ACC_PUBLIC)
210 	ZEND_ME(SplObjectStorage, __debugInfo, arginfo_class_SplObjectStorage___debugInfo, ZEND_ACC_PUBLIC)
211 	ZEND_FE_END
212 };
213 
214 
215 static const zend_function_entry class_MultipleIterator_methods[] = {
216 	ZEND_ME(MultipleIterator, __construct, arginfo_class_MultipleIterator___construct, ZEND_ACC_PUBLIC)
217 	ZEND_ME(MultipleIterator, getFlags, arginfo_class_MultipleIterator_getFlags, ZEND_ACC_PUBLIC)
218 	ZEND_ME(MultipleIterator, setFlags, arginfo_class_MultipleIterator_setFlags, ZEND_ACC_PUBLIC)
219 	ZEND_ME(MultipleIterator, attachIterator, arginfo_class_MultipleIterator_attachIterator, ZEND_ACC_PUBLIC)
220 	ZEND_ME(MultipleIterator, detachIterator, arginfo_class_MultipleIterator_detachIterator, ZEND_ACC_PUBLIC)
221 	ZEND_ME(MultipleIterator, containsIterator, arginfo_class_MultipleIterator_containsIterator, ZEND_ACC_PUBLIC)
222 	ZEND_ME(MultipleIterator, countIterators, arginfo_class_MultipleIterator_countIterators, ZEND_ACC_PUBLIC)
223 	ZEND_ME(MultipleIterator, rewind, arginfo_class_MultipleIterator_rewind, ZEND_ACC_PUBLIC)
224 	ZEND_ME(MultipleIterator, valid, arginfo_class_MultipleIterator_valid, ZEND_ACC_PUBLIC)
225 	ZEND_ME(MultipleIterator, key, arginfo_class_MultipleIterator_key, ZEND_ACC_PUBLIC)
226 	ZEND_ME(MultipleIterator, current, arginfo_class_MultipleIterator_current, ZEND_ACC_PUBLIC)
227 	ZEND_ME(MultipleIterator, next, arginfo_class_MultipleIterator_next, ZEND_ACC_PUBLIC)
228 	ZEND_MALIAS(SplObjectStorage, __debugInfo, __debugInfo, arginfo_class_MultipleIterator___debugInfo, ZEND_ACC_PUBLIC)
229 	ZEND_FE_END
230 };
231 
register_class_SplObserver(void)232 static zend_class_entry *register_class_SplObserver(void)
233 {
234 	zend_class_entry ce, *class_entry;
235 
236 	INIT_CLASS_ENTRY(ce, "SplObserver", class_SplObserver_methods);
237 	class_entry = zend_register_internal_interface(&ce);
238 
239 	return class_entry;
240 }
241 
register_class_SplSubject(void)242 static zend_class_entry *register_class_SplSubject(void)
243 {
244 	zend_class_entry ce, *class_entry;
245 
246 	INIT_CLASS_ENTRY(ce, "SplSubject", class_SplSubject_methods);
247 	class_entry = zend_register_internal_interface(&ce);
248 
249 	return class_entry;
250 }
251 
register_class_SplObjectStorage(zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_Iterator,zend_class_entry * class_entry_Serializable,zend_class_entry * class_entry_ArrayAccess)252 static zend_class_entry *register_class_SplObjectStorage(zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_Iterator, zend_class_entry *class_entry_Serializable, zend_class_entry *class_entry_ArrayAccess)
253 {
254 	zend_class_entry ce, *class_entry;
255 
256 	INIT_CLASS_ENTRY(ce, "SplObjectStorage", class_SplObjectStorage_methods);
257 	class_entry = zend_register_internal_class_ex(&ce, NULL);
258 	zend_class_implements(class_entry, 4, class_entry_Countable, class_entry_Iterator, class_entry_Serializable, class_entry_ArrayAccess);
259 
260 	return class_entry;
261 }
262 
register_class_MultipleIterator(zend_class_entry * class_entry_Iterator)263 static zend_class_entry *register_class_MultipleIterator(zend_class_entry *class_entry_Iterator)
264 {
265 	zend_class_entry ce, *class_entry;
266 
267 	INIT_CLASS_ENTRY(ce, "MultipleIterator", class_MultipleIterator_methods);
268 	class_entry = zend_register_internal_class_ex(&ce, NULL);
269 	zend_class_implements(class_entry, 1, class_entry_Iterator);
270 
271 	zval const_MIT_NEED_ANY_value;
272 	ZVAL_LONG(&const_MIT_NEED_ANY_value, MIT_NEED_ANY);
273 	zend_string *const_MIT_NEED_ANY_name = zend_string_init_interned("MIT_NEED_ANY", sizeof("MIT_NEED_ANY") - 1, 1);
274 	zend_declare_class_constant_ex(class_entry, const_MIT_NEED_ANY_name, &const_MIT_NEED_ANY_value, ZEND_ACC_PUBLIC, NULL);
275 	zend_string_release(const_MIT_NEED_ANY_name);
276 
277 	zval const_MIT_NEED_ALL_value;
278 	ZVAL_LONG(&const_MIT_NEED_ALL_value, MIT_NEED_ALL);
279 	zend_string *const_MIT_NEED_ALL_name = zend_string_init_interned("MIT_NEED_ALL", sizeof("MIT_NEED_ALL") - 1, 1);
280 	zend_declare_class_constant_ex(class_entry, const_MIT_NEED_ALL_name, &const_MIT_NEED_ALL_value, ZEND_ACC_PUBLIC, NULL);
281 	zend_string_release(const_MIT_NEED_ALL_name);
282 
283 	zval const_MIT_KEYS_NUMERIC_value;
284 	ZVAL_LONG(&const_MIT_KEYS_NUMERIC_value, MIT_KEYS_NUMERIC);
285 	zend_string *const_MIT_KEYS_NUMERIC_name = zend_string_init_interned("MIT_KEYS_NUMERIC", sizeof("MIT_KEYS_NUMERIC") - 1, 1);
286 	zend_declare_class_constant_ex(class_entry, const_MIT_KEYS_NUMERIC_name, &const_MIT_KEYS_NUMERIC_value, ZEND_ACC_PUBLIC, NULL);
287 	zend_string_release(const_MIT_KEYS_NUMERIC_name);
288 
289 	zval const_MIT_KEYS_ASSOC_value;
290 	ZVAL_LONG(&const_MIT_KEYS_ASSOC_value, MIT_KEYS_ASSOC);
291 	zend_string *const_MIT_KEYS_ASSOC_name = zend_string_init_interned("MIT_KEYS_ASSOC", sizeof("MIT_KEYS_ASSOC") - 1, 1);
292 	zend_declare_class_constant_ex(class_entry, const_MIT_KEYS_ASSOC_name, &const_MIT_KEYS_ASSOC_value, ZEND_ACC_PUBLIC, NULL);
293 	zend_string_release(const_MIT_KEYS_ASSOC_name);
294 
295 	return class_entry;
296 }
297