summaryrefslogtreecommitdiff
path: root/zend/functor.h
diff options
context:
space:
mode:
Diffstat (limited to 'zend/functor.h')
-rw-r--r--zend/functor.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/zend/functor.h b/zend/functor.h
index 7d5bef5..503a05c 100644
--- a/zend/functor.h
+++ b/zend/functor.h
@@ -46,12 +46,41 @@ public:
return _function(params);
}
+ /**
+ * Get the functor class entry
+ * @return zend_class_entry
+ */
+ static zend_class_entry *entry()
+ {
+ // get the "member"
+ return _entry;
+ }
+
+ /**
+ * Initialize the class
+ * @param tsrmls
+ */
+ static void initialize(TSRMLS_D);
+
+ /**
+ * Shutdown the class
+ * @param tsrmls
+ */
+ static void shutdown(TSRMLS_D);
+
private:
/**
* The std::function that is wrapped in PHP code
* @var std::function
*/
const std::function<Value(Parameters &params)> _function;
+
+ /**
+ * The classentry
+ * @var zend_class_entry
+ */
+ static zend_class_entry *_entry;
+
};
/**