summaryrefslogtreecommitdiff
path: root/Examples/ReturnObject/child.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ReturnObject/child.h')
-rw-r--r--Examples/ReturnObject/child.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Examples/ReturnObject/child.h b/Examples/ReturnObject/child.h
new file mode 100644
index 0000000..b9e8d9c
--- /dev/null
+++ b/Examples/ReturnObject/child.h
@@ -0,0 +1,36 @@
+/**
+ * Child.h
+ *
+ * Class that is exported to PHP space
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2015 Copernica BV
+ */
+
+/**
+ * Include guard
+ */
+#pragma once
+
+/**
+ * Class definition
+ */
+class Child : public Php::Base
+{
+public:
+ /**
+ * Constructor and destructor
+ */
+ Child() {}
+ virtual ~Child() {}
+
+ /**
+ * Cast to a string
+ * @return const char *
+ */
+ const char *__toString() const
+ {
+ return "this is the child";
+ }
+};
+