summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 22:59:21 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 22:59:21 +0200
commit6d05c17a8d00075f1578094163237c43128e1df9 (patch)
tree1409a9d20cc8be595634ffe3a23cd8026cff1bde /common
parent43cfaa8a4730ea1fa7d9c01f58ddcf6f42b4fb46 (diff)
moved modifiers.cpp to the common directory
Diffstat (limited to 'common')
-rw-r--r--common/modifiers.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/common/modifiers.cpp b/common/modifiers.cpp
new file mode 100644
index 0000000..3720730
--- /dev/null
+++ b/common/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
+ */
+}