summaryrefslogtreecommitdiff
path: root/include/serializable.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/serializable.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/serializable.h')
-rw-r--r--include/serializable.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/serializable.h b/include/serializable.h
index ce60d91..fdcffa2 100644
--- a/include/serializable.h
+++ b/include/serializable.h
@@ -16,22 +16,22 @@ namespace Php {
/**
* Class definition
*/
-class Serializable
+class PHPCPP_EXPORT Serializable
{
public:
/**
* Method to serialize the object
*
- * This method should return a string representation of the object that
+ * This method should return a string representation of the object that
* can be passed to the serialize() method and that will revive the object
*
* @return std::string
*/
virtual std::string serialize() = 0;
-
+
/**
* Unserialize the object
- *
+ *
* This method is called as an alternative __construct() method to initialize
* the object. The passed in string parameter in in the format earlier returned
* by a call to serialize()
@@ -46,6 +46,3 @@ public:
* End namespace
*/
}
-
-
- \ No newline at end of file