summaryrefslogtreecommitdiff
path: root/zend/constant.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-17 22:19:08 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-17 22:19:08 +0100
commit5fd8b29a1981d2d4f7c4e9925729fbe9f1c558bb (patch)
treee0738b3ebb653d1a7ae8a8c1f62f309f1895bfe5 /zend/constant.cpp
parent821e65d876cc0ce2b32471791b02d9f7cc784c99 (diff)
added initial implementation for registering constants
Diffstat (limited to 'zend/constant.cpp')
-rw-r--r--zend/constant.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/zend/constant.cpp b/zend/constant.cpp
new file mode 100644
index 0000000..a5358c6
--- /dev/null
+++ b/zend/constant.cpp
@@ -0,0 +1,28 @@
+/**
+ * Constant.cpp
+ *
+ * Implementation file for the constant class
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2015 Copernica BV
+ */
+#include "includes.h"
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * Constructor
+ * @param name Constant name
+ * @param value Constant value
+ */
+Constant::Constant(const char *name, const Value &value) :
+ _impl(new ConstantImpl(name, value)) {}
+
+/**
+ * End of namespace
+ */
+}
+