summaryrefslogtreecommitdiff
path: root/include/arrayaccess.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/arrayaccess.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/arrayaccess.h')
-rw-r--r--include/arrayaccess.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/arrayaccess.h b/include/arrayaccess.h
index cf8c261..4cb936f 100644
--- a/include/arrayaccess.h
+++ b/include/arrayaccess.h
@@ -1,11 +1,11 @@
/**
* ArrayAccess.h
- *
+ *
* "Interface" that can be "implemented" by your class. If you do, you
* create your class like this:
- *
+ *
* class MyClass : public Php::Base, public Php::ArrayAccess { ... }
- *
+ *
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2014 Copernica BV
*/
@@ -14,11 +14,11 @@
* Set up namespace
*/
namespace Php {
-
+
/**
* Class definition
*/
-class ArrayAccess
+class PHPCPP_EXPORT ArrayAccess
{
public:
/**
@@ -27,30 +27,29 @@ public:
* @return bool
*/
virtual bool offsetExists(const Php::Value &key) = 0;
-
+
/**
* Set a member
* @param key
* @param value
*/
virtual void offsetSet(const Php::Value &key, const Php::Value &value) = 0;
-
+
/**
* Retrieve a member
* @param key
* @return value
*/
virtual Php::Value offsetGet(const Php::Value &key) = 0;
-
+
/**
* Remove a member
* @param key
*/
virtual void offsetUnset(const Php::Value &key) = 0;
};
-
+
/**
* End namespace
*/
}
-