1 #ifndef DS_COLLECTION_CE_H 2 #define DS_COLLECTION_CE_H 3 4 #include "../../common.h" 5 #include "../arginfo.h" 6 7 extern zend_class_entry *collection_ce; 8 9 #define PHP_DS_COLLECTION_ME(cls, name) \ 10 PHP_ME(cls, name, arginfo_Collection_##name, ZEND_ACC_PUBLIC) 11 12 #define PHP_DS_COLLECTION_ME_LIST(cls) \ 13 PHP_DS_COLLECTION_ME(cls, clear) \ 14 PHP_DS_COLLECTION_ME(cls, copy) \ 15 PHP_DS_COLLECTION_ME(cls, count) \ 16 PHP_DS_COLLECTION_ME(cls, isEmpty) \ 17 PHP_DS_COLLECTION_ME(cls, jsonSerialize) \ 18 PHP_DS_COLLECTION_ME(cls, toArray) 19 20 ARGINFO_NONE_RETURN_DS( Collection_copy, Collection); 21 ARGINFO_NONE( Collection_clear); 22 ARGINFO_NONE_RETURN_LONG( Collection_count); 23 ARGINFO_NONE_RETURN_BOOL( Collection_isEmpty); 24 ARGINFO_NONE_RETURN_TYPE( Collection_jsonSerialize, IS_MIXED); 25 ARGINFO_NONE_RETURN_ARRAY( Collection_toArray); 26 27 void php_ds_register_collection(); 28 29 #endif 30