summaryrefslogtreecommitdiff
path: root/zend/modifiers.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:53:24 +0200
commit35fd3ccbeb4def71b4d8a59dfbb5c31201b099b9 (patch)
tree915223360aed4743aa6127fde4836aa413a260e5 /zend/modifiers.cpp
parentda4710512865e6816585ac4ab8edab2fa125e2d8 (diff)
renamed src directory to zend directory, disabled TSRM debug code
Diffstat (limited to 'zend/modifiers.cpp')
-rw-r--r--zend/modifiers.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/zend/modifiers.cpp b/zend/modifiers.cpp
new file mode 100644
index 0000000..3720730
--- /dev/null
+++ b/zend/modifiers.cpp
@@ -0,0 +1,39 @@
+/**
+ * Modifiers.cpp
+ *
+ * In this file an enumeration type is with the possible
+ * member modifiers
+ *
+ * @author Martijn Otto <martijn.otto@copernica.com>
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ *
+ * @copyright 2014 Copernica BV
+ */
+#include "includes.h"
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * The modifiers are constants
+ */
+const int Static = 0x01;
+const int Abstract = 0x02;
+const int Final = 0x04;
+const int Public = 0x100;
+const int Protected = 0x200;
+const int Private = 0x400;
+const int Const = 0;
+
+/**
+ * Modifiers that are supported for methods and properties
+ */
+const int MethodModifiers = Final | Public | Protected | Private;
+const int PropertyModifiers = Final | Public | Protected | Private | Const | Static;
+
+/**
+ * End namespace
+ */
+}