From 0623581385b4d4857787140bf1b6b442529d66a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenzel=20P=C3=BCnter?= Date: Wed, 16 Apr 2014 09:14:28 +0200 Subject: [PATCH] Declared missing functions [#2196] --- ext/annotations/adapterinterface.c | 18 ++++++++++++++++++ ext/annotations/adapterinterface.h | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/ext/annotations/adapterinterface.c b/ext/annotations/adapterinterface.c index fa3b23a4900..ce51dc722c1 100644 --- a/ext/annotations/adapterinterface.c +++ b/ext/annotations/adapterinterface.c @@ -23,6 +23,8 @@ zend_class_entry *phalcon_annotations_adapterinterface_ce; static const zend_function_entry phalcon_annotations_adapterinterface_method_entry[] = { + PHP_ABSTRACT_ME(Phalcon_Annotations_AdapterInterface, read, arginfo_phalcon_annotations_adapterinterface_read) + PHP_ABSTRACT_ME(Phalcon_Annotations_AdapterInterface, write, arginfo_phalcon_annotations_adapterinterface_write) PHP_ABSTRACT_ME(Phalcon_Annotations_AdapterInterface, setReader, arginfo_phalcon_annotations_adapterinterface_setreader) PHP_ABSTRACT_ME(Phalcon_Annotations_AdapterInterface, getReader, NULL) PHP_ABSTRACT_ME(Phalcon_Annotations_AdapterInterface, get, arginfo_phalcon_annotations_adapterinterface_get) @@ -43,6 +45,22 @@ PHALCON_INIT_CLASS(Phalcon_Annotations_AdapterInterface){ return SUCCESS; } +/** + * Read parsed annotations + * + * @param string $key + * @return Phalcon\Annotations\Reflection +*/ +PHALCON_DOC_METHOD(Phalcon_Annotations_AdapterInterface, read); + +/** + * Write parsed annotations + * + * @param string $key + * @param Phalcon\Annotations\Reflection $data +*/ +PHALCON_DOC_METHOD(Phalcon_Annotations_AdapterInterface, write); + /** * Sets the annotations parser * diff --git a/ext/annotations/adapterinterface.h b/ext/annotations/adapterinterface.h index ba69535ba1b..d886faed3cc 100644 --- a/ext/annotations/adapterinterface.h +++ b/ext/annotations/adapterinterface.h @@ -26,6 +26,15 @@ extern zend_class_entry *phalcon_annotations_adapterinterface_ce; PHALCON_INIT_CLASS(Phalcon_Annotations_AdapterInterface); +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapterinterface_read, 0, 0, 1) + ZEND_ARG_INFO(0, key) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapterinterface_write, 0, 0, 2) + ZEND_ARG_INFO(0, key) + ZEND_ARG_INFO(0, data) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_annotations_adapterinterface_setreader, 0, 0, 1) ZEND_ARG_INFO(0, reader) ZEND_END_ARG_INFO()