summaryrefslogtreecommitdiff
path: root/include/classbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/classbase.h')
-rw-r--r--include/classbase.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/classbase.h b/include/classbase.h
index 6dba316..da027ab 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -374,6 +374,15 @@ private:
static int getClosure(struct _zval_struct *object, struct _zend_class_entry **entry, union _zend_function **func, struct _zval_struct **object_ptr);
/**
+ * Function to cast the object to a different type
+ * @param object
+ * @param retval
+ * @param type
+ * @return int
+ */
+ static int cast(struct _zval_struct *object, struct _zval_struct *retval, int type);
+
+ /**
* Name of the class
* @var string
*/