summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h
index 93ee66e..04f0c0e 100644
--- a/include/base.h
+++ b/include/base.h
@@ -52,6 +52,28 @@ public:
{
return value()[name];
}
+
+private:
+ /**
+ * The zend_object
+ * @var zend_object
+ */
+ struct _zend_object *_object = nullptr;
+
+ /**
+ * Private method to assign the zend object
+ * @param zend_object
+ */
+ void assign(struct _zend_object *object)
+ {
+ // copy pointer
+ _object = object;
+ }
+
+ /**
+ * ClassBase has access to private data
+ */
+ friend class ClassBase;
};