Skip to content

Commit

Permalink
Declared missing functions [#2196]
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel Pünter committed Apr 16, 2014
1 parent 8366b30 commit 0623581
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ext/annotations/adapterinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
*
Expand Down
9 changes: 9 additions & 0 deletions ext/annotations/adapterinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0623581

Please sign in to comment.