summaryrefslogtreecommitdiff
path: root/include/classtype.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-01 23:50:27 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-01 23:50:27 +0100
commit20091783de937a72a86800f8025dd238afb139a1 (patch)
tree996a0439fb0b1d55a059cabe2b23df708b2201a7 /include/classtype.h
parent6abc8b4c062c7333a98830004da894ff81613d5b (diff)
grouped all class constants in a single file ClassType.h
to make it easier to edit in the event of future changes to the Zend API
Diffstat (limited to 'include/classtype.h')
-rw-r--r--include/classtype.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/classtype.h b/include/classtype.h
new file mode 100644
index 0000000..382a8db
--- /dev/null
+++ b/include/classtype.h
@@ -0,0 +1,36 @@
+/**
+ * ClassType.h
+ *
+ * Internal class types enumeration.
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2014 Copernica BV
+ */
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * Enumeration definition.
+ *
+ * The PHP-CPP library tries to hide the Zend engine internals completely from
+ * the user. Therefore, it does not include any of the Zend header files, nor
+ * can it refer to the constants defined in the Zend header files. The
+ * following constants have been copied from Zend. If the Zend engine ever
+ * changes (which we do not expect) we should also copy the constant values
+ * used here.
+ *
+ */
+enum class ClassType {
+ Regular = 0x00,
+ Abstract = 0x20,
+ Final = 0x40,
+ Interface = 0x80
+};
+
+/**
+ * End namespace
+ */
+}